Good Day, Using ISPConfig 3.0.5.4p8 on CentOS6.7. I followed the tutorial (like i've done successfully in the past) to add a version pf PHP 5.6.16, but it does not seem to want to change in ISPConfig? Always staying at 5.3.3 (Default CentOS version) https://www.howtoforge.com/how-to-u...pm-and-fastcgi-with-ispconfig-3-centos-6.3-p4 Just wondering if you could give me a trace as to where to look? Thanks, JP
Did you try the php-fcgi or php-fpm version? Does the compiled php version work, e.g. did yu test the compiled php binary on the shell with "--version" ?
I used the php-fcgi version. Not exactly sure how to test different versions in shell ? (of course I get the default version of CentOS install here): [root@host ~]# cd /opt/phpfcgi-5.6.16/ [root@host phpfcgi-5.6.16]# php --version PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies PHP seems to work fine. I added an alias to my .bash_profiles (alias php='/opt/phpfcgi-5.6.16/bin/php-cgi') [root@host ~]# which php alias php='/opt/phpfcgi-5.6.16/bin/php-cgi' /opt/phpfcgi-5.6.16/bin/php-cgi [root@host ~]# php --version PHP 5.6.16 (cgi-fcgi) (built: Dec 13 2015 18:37:55) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies ----- [root@host ~]# php -a Interactive mode enabled <?php echo "hi! HowToForge"; (ie: Ctrl+D used here) X-Powered-By: PHP/5.6.16 Content-type: text/html; charset=UTF-8 hi! HowToForge ----- Thanks, JP
When you run PHP --version (no matter in which directory you are) then you test always the system php and not the custom PHP. To test the PHP in the directory where you are, use the command: ./php --version so you dont have to add a alias in your bash profile then Is there anything listed in the jobqueue in the ispconfig monitor?
I'm a bit lost. We know that the 5.6.16 is working. When I go into the client's folder and launch 'version' I get this: [root@host web]# pwd /var/www/clients/client1/web1/web [root@host web]# ./php --version -bash: ./php: No such file or directory [root@host web]# php --version PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies I confirm your command (with alias removed, log off, log on) [root@host bin]# pwd /opt/phpfcgi-5.6.16/bin [root@host bin]# ./php --version PHP 5.6.16 (cli) (built: Dec 13 2015 18:37:49) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies ------------------ Jobqueue : No results. ISPConfig Log : No results. * In ISPConfig I choose fcgi / 5.6.16 and it stays at 5.3.3 (nothing seems to change). Like mentionned, I've done this successfully many times. Just doesn't work here. What specific files would this change? Thanks, JP
You hav to be in the php bin directory of the new php version, not the web directory of a site. cd /opt/phpfcgi-5.6.16/bin/ and then check hos the php binary is named with: ls and then test it either with: ./php --version or ./php-cgi --version
It's what I did last, no? It's all good. [root@host bin]# pwd /opt/phpfcgi-5.6.16/bin [root@host bin]# ./php --version PHP 5.6.16 (cli) (built: Dec 13 2015 18:37:49) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies [root@host ~]# cd /opt/phpfcgi-5.6.16/bin/ [root@host bin]# ls -l total 72348 -rwxr-xr-x 1 root root 862 Dec 13 18:38 pear -rwxr-xr-x 1 root root 883 Dec 13 18:38 peardev -rwxr-xr-x 1 root root 799 Dec 13 18:38 pecl lrwxrwxrwx 1 root root 9 Dec 13 18:38 phar -> phar.phar -rwxr-xr-x 1 root root 14838 Dec 13 18:38 phar.phar -rwxr-xr-x 1 root root 37063121 Dec 13 18:38 php -rwxr-xr-x 1 root root 36977624 Dec 13 18:38 php-cgi -rwxr-xr-x 1 root root 3223 Dec 13 18:38 php-config -rwxr-xr-x 1 root root 4549 Dec 13 18:38 phpize [root@host bin]# ./php-cgi --version PHP 5.6.16 (cgi-fcgi) (built: Dec 13 2015 18:37:55) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies [root@host bin]# ./php --version PHP 5.6.16 (cli) (built: Dec 13 2015 18:37:49) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies ISPConfig doens't redirect to it? JP
Did you add and select this new php version in the settings of the website, or did you just alter the path in the additional php version settings? Altering the path of a existing php version has no effect on sites that you created before, it will only be used for new sites.
I went in the site settings, chose 5.6.16 (like I usually do) Usually, when I run phpinfo, I get the version change. Not happening here. JP
Hmm, ok. So what you can try next is to enable debugging: http://www.faqforge.com/linux/debugging-ispconfig-3-server-actions-in-case-of-a-failure/ then change the php version back, save, and then to the mew version and click save. Then run server.sh script and check the debug output for errors.