CloudLinux OS Blog - Alt-PHP updated
CloudLinux OS Blog

Alt-PHP updated

Alt-PHP updated

New updated Alt-PHP packages are available from our production repository. In current release broken symlink /opt/alt/phpXY/etc/php.d/ -> /etc/cl.php.d/alt-phpXY/ was removed and /opt/alt/phpXY/etc/php.d/ is a folder now. 

Please note than the following new functionality was added:

alt-php reads ini-files from /opt/alt/phpXY/link/conf

Without CageFS (outside CageFS) symlink is the following: /opt/alt/phpXY/link/conf -> /opt/alt/phpXY/etc/php.d/

Inside CageFS we have another symlink: /opt/alt/phpXY/link/conf ->  /etc/cl.php.d/alt-phpXY/

Changelog:

  • alt-php44-mariadb101-4.4.9-1
  • alt-php54-mariadb101-5.4.45-1
  • alt-php56-mariadb101-5.6.19-1
  • alt-php53-mariadb101-5.3.29-1
  • alt-php70-mariadb101-7.0.4-1
  • alt-php55-mariadb101-5.5.33-1
  • alt-php52-mariadb101-5.2.17-1
  • alt-php51-mariadb101-5.1.6-1
  • alt-php-config-1-9.2

added MariaDB 10.1 support.

  • alt-php54-5.4.45-13
  • alt-php55-5.5.33-1
  • alt-php56-5.6.19-1
  • alt-php70-7.0.4-1

added service scripts for php-fpm (for Plesk cooperation); added with-systemd options for CL7 correct work.

  • alt-php55-5.5.33-1

updated to PHP 5.5.33.

  • alt-php56-5.6.19-1

update to PHP 5.6.19.

  • alt-php70-7.0.4-1

update to PHP 7.0.4.

To install run the command: 

yum groupinstall alt-php

Beta: CageFS, LVE Manager, lve-utils and python-cl...
LVE Manager, CageFS and python-cllib updated
 

Comments 5

Guest - Marcin on Monday, 21 March 2016 19:22

After this update you broke my custom php per directory config.
As I can see, you removed php.d symlink to /etc/cl.php.d/alt-php55 and config in .htaccess like:
AddType application/x-httpd-php55 .php
is not working anymore. It is switching php version to 5.5 as in this example but modules selected in cPanel PHP Selector are not turned on.
It was your intended action or what?

After this update you broke my custom php per directory config. As I can see, you removed php.d symlink to /etc/cl.php.d/alt-php55 and config in .htaccess like: AddType application/x-httpd-php55 .php is not working anymore. It is switching php version to 5.5 as in this example but modules selected in cPanel PHP Selector are not turned on. It was your intended action or what?
Guest - Paul on Monday, 21 March 2016 23:21

After this update we find that selecting modules in PHP Selector in cPanel no longer works, many sites are down due to MySQL module not loaded.

After this update we find that selecting modules in PHP Selector in cPanel no longer works, many sites are down due to MySQL module not loaded.
Guest - Paul on Tuesday, 22 March 2016 01:57

It looks like as of this update, you need to specify in cagefs.mp the following:

@/opt/alt/php52/link,700
@/opt/alt/php53/link,700
@/opt/alt/php51/link,700
@/opt/alt/php56/link,700
@/opt/alt/php44/link,700
@/opt/alt/php54/link,700
@/opt/alt/php55/link,700
@/opt/alt/php70/link,700

It looks like as of this update, you need to specify in cagefs.mp the following: [quote]@/opt/alt/php52/link,700 @/opt/alt/php53/link,700 @/opt/alt/php51/link,700 @/opt/alt/php56/link,700 @/opt/alt/php44/link,700 @/opt/alt/php54/link,700 @/opt/alt/php55/link,700 @/opt/alt/php70/link,700[/quote]
Guest - Mike on Tuesday, 22 March 2016 13:12

CageFS enabled. Set default php version 5.2 in cpanel php selector:
[email protected] [/opt/alt]# ll php5*/link/ | grep conf
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php51/etc/php.d/
lrwxrwxrwx 1 username1 username1 23 Mar 22 16:02 conf -> /etc/cl.php.d/alt-php52/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php53/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php54/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php55/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php56/etc/php.d/

Then we set default version: 5.4
[email protected] [/opt/alt]# ll php5*/link/ | grep conf
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php51/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php52/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php53/etc/php.d/
lrwxrwxrwx 1 username1 username1 23 Mar 22 16:03 conf -> /etc/cl.php.d/alt-php54/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php55/etc/php.d/
lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php56/etc/php.d/

So synlink changes only for active, selected PHP. How can we select custom modules for each version of PHP with enabling them in .htaccess by custom handlers? Adding symlinks in cagefs.mp with futher force-update doesn't help.

CageFS enabled. Set default php version 5.2 in cpanel php selector: [email protected] [/opt/alt]# ll php5*/link/ | grep conf lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php51/etc/php.d/ lrwxrwxrwx 1 username1 username1 23 Mar 22 16:02 conf -> /etc/cl.php.d/alt-php52/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php53/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php54/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php55/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:02 conf -> /opt/alt/php56/etc/php.d/ Then we set default version: 5.4 [email protected] [/opt/alt]# ll php5*/link/ | grep conf lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php51/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php52/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php53/etc/php.d/ lrwxrwxrwx 1 username1 username1 23 Mar 22 16:03 conf -> /etc/cl.php.d/alt-php54/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php55/etc/php.d/ lrwxrwxrwx 1 username1 username1 24 Mar 22 16:03 conf -> /opt/alt/php56/etc/php.d/ So synlink changes only for active, selected PHP. How can we select custom modules for each version of PHP with enabling them in .htaccess by custom handlers? Adding symlinks in cagefs.mp with futher force-update doesn't help.
Guest - Jamshaid on Friday, 22 April 2016 10:35

Stupid that was not a broken link you removed

"New updated Alt-PHP packages are available from our production repository. In current release broken symlink /opt/alt/phpXY/etc/php.d/ -> /etc/cl.php.d/alt-phpXY/ was removed and /opt/alt/phpXY/etc/php.d/ is a folder now."

You broke the custom per user php.ini wtf

Stupid that was not a broken link you removed "New updated Alt-PHP packages are available from our production repository. In current release broken symlink /opt/alt/phpXY/etc/php.d/ -> /etc/cl.php.d/alt-phpXY/ was removed and /opt/alt/phpXY/etc/php.d/ is a folder now." You broke the custom per user php.ini wtf
Already Registered? Login Here
Guest
Saturday, 24 August 2019

Captcha Image