Cloudlinux components installing order and PHP Selector becoming obsolete
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Havri
  2. Wednesday, 03 May 2017
  3.  Subscribe via email
Hello,

I have some questions about the integration of different components of cPanel and Cloudlinux.

1. Is there a correct order of installing CageFS, LVE Manager, Lve stats and so on? Could a different install order affect some of the features/components, like CageFS for example?

I've had yesterday an issue where from the command line "cagefsctl -l" would show me that the users are in CageFS, but when trying to access cPanel -> PHP Selector, the cPanel error_log would say that the user is not in CageFS.


2. Do you recommend installing CageFS, lvemanager, lve-stats, etc. packages from the cloudlinux-updates-testing repo? Are they stable? I saw a post a long time ago where the Beta is considered production ready.


3. What is the approximate time of PHP Selector becoming obsolete? I saw another forum post about this:

https://www.cloudlinux.com/forum/forum11/is-it-necessary-to-install-php-selector

Also, the blog post about EA4 says that MultiPHP from cPanel with most likely replace PHP Selector:

https://www.cloudlinux.com/cloudlinux-os-blog/entry/cloudlinux-os-feature-review-out-with-the-old-in-with-the-new


4. If I installed Hardened PHP from the Imunify plugin interface, it installed the ea-php* packages from the Cloudlinux repo. If this is installed, then there is no need to install PHP Selector, right?. CageFS would be used only for caging the user in its own "virtual" filesystem. Correct me if I'm wrong.


5. After installing the Hardened PHP from the Imunify plugin, it installed all versions of PHP available to it, but also two handlers instead of one (cgi and suphp). Would uninstalling the suphp rpm from the WHM -> easyapache 4 break any functionality or the EA profile? I use only cgi handler, so suphp is unneeded. Or should I just leave it be and just change the handlers from WHM -> MultiPHP Manager -> PHP Handlers?

```
[[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf --current
DEFAULT PHP: ea-php56
ea-php53 SAPI: suphp
ea-php54 SAPI: suphp
ea-php55 SAPI: suphp
ea-php56 SAPI: cgi
ea-php70 SAPI: suphp
ea-php71 SAPI: suphp

[[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf --available
ea-php53: cgi none suphp
ea-php54: cgi none suphp
ea-php55: cgi none suphp
ea-php56: cgi none suphp
ea-php70: cgi none suphp
ea-php71: cgi none suphp
```


Thank you.
Rate this post:
  1. 03.05.2017 10:05:57
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Hello,

1. Actually yes, better to install our packages as latest so post-install scripts could configure services properly:
- install cPanel > install lvemanager > install cagefs > install other tools.

2. Better to use packages from stable repos. Indeed beta packages are also good, just not so safe.

3. There is no ETA on that, and for sure there will be transparent migration when we decide to do it. We really like our PHP-Selector and recommend using it.

4. Some contradictory information here. Hardened PHP means alt-php packages, not ea-php .
But overall that is correct, CageFS works with any of them.

5. I am sure you can remove ea-apache24-mod_suphp package as long as cgi is used.
  1. 03.05.2017 11:05:01
  2. # 2
Havri Accepted Answer
Posts: 26
Joined: 30.07.2015
0
Votes
Undo
Hello,

Hardenen PHP from the Imunify360 plugin installed the ea-php* packages and not the alt-php packages. Here's a part of the yum log from last night:

May 02 22:39:30 Installed: 1:ea-php55-build-5.5.38-1.el7.cloudlinux.x86_64
May 02 22:39:30 Installed: 1:ea-php71-build-7.1.4-1.el7.cloudlinux.x86_64
May 02 22:39:30 Installed: 1:ea-php56-build-5.6.30-1.el7.cloudlinux.1.x86_64
May 02 22:39:30 Installed: 1:ea-php54-build-5.4.45-15.el7.cloudlinux.x86_64
May 02 22:39:30 Installed: 1:ea-php53-build-5.3.29-1.el7.cloudlinux.x86_64
May 02 22:39:30 Installed: 1:ea-php55-php-imap-5.5.38-11.el7.cloudlinux.2.x86_64
May 02 22:39:30 Installed: 1:ea-php55-5.5.38-1.el7.cloudlinux.x86_64
May 02 22:39:30 Installed: 1:ea-php55-php-fpm-5.5.38-11.el7.cloudlinux.2.x86_64
May 02 22:39:30 Installed: 1:ea-php54-php-imap-5.4.45-28.el7.cloudlinux.2.x86_64
May 02 22:39:31 Installed: 1:ea-php54-5.4.45-15.el7.cloudlinux.x86_64
May 02 22:39:31 Installed: 1:ea-php54-php-fpm-5.4.45-28.el7.cloudlinux.2.x86_64
May 02 22:39:31 Installed: 1:ea-php53-5.3.29-1.el7.cloudlinux.x86_64

After I uninstalled PHP selector cause I couldn't get it running inside CageFS and the cPanel plugin wasn't showing, I installed the Hardened PHP from the Imunify360 plugin -> Settings -> Install Hardened-PHP button. The PHP packages currently installed on the server are the ones in this pastebin. Let me know if it works:

https://pastebin.com/8fy7wKDE


I also thought that the Hardened PHP was the alt-php* form and not ea-php*. Either way, you guys at Cloudlinux are maintaining these packages:

[[email protected] ~]# rpm -qi ea-php71-php-posix-7.1.4-1.el7.cloudlinux.1.x86_64
Name : ea-php71-php-posix
Epoch : 1
Version : 7.1.4
Release : 1.el7.cloudlinux.1
Architecture: x86_64
Install Date: Tue 02 May 2017 10:39:22 PM EEST
Group : Development/Languages
Size : 32971
License : PHP
Signature : DSA/SHA1, Wed 19 Apr 2017 04:25:45 PM EEST, Key ID 8c55a6628608cb71
Source RPM : ea-php71-php-7.1.4-1.el7.cloudlinux.1.src.rpm
Build Date : Wed 19 Apr 2017 03:45:50 PM EEST
Build Host : build.cloudlinux.com
Relocations : (not relocatable)
Packager : CloudLinux Packaging Team <[email protected]>
Vendor : CloudLinux
URL : http://www.php.net/
Summary : Modules for PHP scripts that need access to POSIX functions
Description :
The php-posix package adds a PHP interface to those functions defined
in the IEEE 1003.1 (POSIX.1) standards document which are not
accessible through other means.




Also, isn't CageFS supposed to be installed before any other Cloudlinux component? I get an error "ERROR: CageFS not installed." while installing lvemanager. Please see the next pastebin.

https://pastebin.com/pQ00m9kG

The CloudLinux LVE Manager in WHM isn't showing any data either, if CageFS is not installed.

Shouldn't the install order be CageFS -> lvemanager -> alt-php -> others etc.

Let me know if you need any other info.

Thank you.
  1. 04.05.2017 12:05:04
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
I have clarified this situation with our developers and I was originally wrong. Hardened PHP is not only alt-php, we also patch ea-php51/52 packages so call them "hardened". All Ok here.

About "ERROR: CageFS not installed." messages - CageFS is not required before lvemanager, while this error message has been fixed in beta release already. Nothing to worry about.

The install order CageFS<->lvemanager does not matter. But yes they should be installed before alt-php etc.
  1. 04.05.2017 15:05:48
  2. # 4
Havri Accepted Answer
Posts: 26
Joined: 30.07.2015
0
Votes
Undo
Hello,

So to recap all of this, I can do the installations in the following order:

1. Install lvemanager
2. Install CageFS + initialize CageFS + put users inside CageFS
3. Install Hardened PHP from the Imunify 360 plugin (this will install ea-php*).
4. Install Litespeed.
5. Run cagefsctl --force-update

Let me know if this is correct.


Also, after I install the Hardened PHP from the Imunify360 plugin interface, can I also install alt-php to have PHP Selector? Will the alt-php packages conflict with ea-php packages or are they interchangeable (depending on the client's choice)? I'm thinking that maybe PHP Selector can be used especially for the ffmpeg codec.

Thank you.
  1. 04.05.2017 18:05:27
  2. # 5
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Above steps to install services are correct.

Yes, both ea-php and alt-php can work together. You can safely install our packages with 'yum groupinstall alt-php' .

Few links for better understanding selectors: http://kb.cloudlinux.com/2017/01/cloudlinux-php-selector-and-cpanel-multiple-php-manager-from-ea4-explained/
and
http://docs.cloudlinux.com/index.html?php_selector_cpanel.html
  1. 04.05.2017 19:05:34
  2. # 6
Havri Accepted Answer
Posts: 26
Joined: 30.07.2015
0
Votes
Undo
Hello,

Thank you for the links.

I've just installed the alt-php packages like you said, with "yum groupinstall alt-php" and I'll see which one I'll keep for our clients.

Thank you.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.