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 11:05:01
  2. # 1
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 15:05:48
  2. # 2
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 19:05:34
  2. # 3
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.
  1. 21.01.2020 05:01:26
  2. # 4
Rahat Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
Error: (XID bzukvp) The “alt-php70-php-fpm” service is not installed.
  1. 21.01.2020 11:01:43
  2. # 5
Sergey Khristich Accepted Answer
Posts: 344
Joined: 20.05.2019
0
Votes
Undo
Hello Rahat,
Thank you for reaching out! We do not provide them and you don't need to install PHP-FPM modules as they are not compatible with PHP Selector (alt-php): https://docs.cloudlinux.com/index.html?compatiblity_matrix.html
Just ignore this warning message. The error message is a little bug of cPanel that is known. Please let us know if you have any questions. Thanks in advance!
Marketing Manager
  1. 22.01.2020 05:01:33
  2. # 6
Rahat Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
----------------------------------------------Show new Error-------------------------------------------------------------------------------------
Error
The received data is wrong. Contact support for resolution. Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php52/link/conf to /opt/alt/php52/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php53/link/conf to /opt/alt/php53/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php51/link/conf to /opt/alt/php51/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php56/link/conf to /opt/alt/php56/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php44/link/conf to /opt/alt/php44/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php54/link/conf to /opt/alt/php54/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php55/link/conf to /opt/alt/php55/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php70/link/conf to /opt/alt/php70/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php71/link/conf to /etc/cl.php.d/alt-php71: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php72/link/conf to /opt/alt/php72/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php73/link/conf to /opt/alt/php73/etc/php.d: [Err code 17] File exists
Attachments (1)
  1. 22.01.2020 10:01:36
  2. # 7
Sergey Khristich Accepted Answer
Posts: 344
Joined: 20.05.2019
0
Votes
Undo

----------------------------------------------Show new Error-------------------------------------------------------------------------------------
Error
The received data is wrong. Contact support for resolution. Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php52/link/conf to /opt/alt/php52/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php53/link/conf to /opt/alt/php53/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php51/link/conf to /opt/alt/php51/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php56/link/conf to /opt/alt/php56/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php44/link/conf to /opt/alt/php44/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php54/link/conf to /opt/alt/php54/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php55/link/conf to /opt/alt/php55/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php70/link/conf to /opt/alt/php70/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php71/link/conf to /etc/cl.php.d/alt-php71: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php72/link/conf to /opt/alt/php72/etc/php.d: [Err code 17] File exists Error : failed to create symlink /home/salamenter/.cagefs/opt/alt/php73/link/conf to /opt/alt/php73/etc/php.d: [Err code 17] File exists

Hello Rahat,
Can you open a support ticket https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and we'll link this thread to it.
Thank you.
Marketing Manager
  • 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.