Hello wise all! I just upgraded my ISPConfig from 3.1.3 to 3.1.13p1 and noticed that Server Configuration for the server stopped opening! I.e I can got to Server Configuration page with the list of servers, but when I click on my server nothing happens. (( Before it was fine. The only reason I upgraded is the log retention configuration. Now I can't get there at all (( OS: Centos 6.9. Did anybody see this before? Thank you!! /SergeyK
That's probably an issue with a very old PHP version on your server. Which error message do you get in the global apache or nginx error.log when you try to access the server list?
Thank you for your reply! I have php-5.3.3-49.el6.x86_64 The error I get: 500: --- [12/Mar/2019:08:21:12 -0700] "GET /admin/server_config_edit.php?id=1 HTTP/1.1" 500 - "https //www domain net:8080/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15" --- and server error message is: --- [Tue Mar 12 08:21:12 2019] [warn] [client x.x.x.x] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected '[' in /usr/local/ispconfig/interface/web/admin/server_config_edit.php on line 78, referer: https //www domain net:8080/index.php --- line 78 looks legit... (the one that starts with $app->...): ---- function onShowEnd() { global $app; $app->tpl->setVar('server_name', $app->functions->htmlentities($app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id)['server_name'])); parent:nShowEnd(); } ---
Thats an issue caused by a old PHP version. You can try to update your ispconfig to git-stable branch by using ispconfig_update.sh command, we backported some code already to make it compatible with the old PHP from CentOS 6.
I just did the update yesterday and having 3.1.13p1, that's when I noticed the issue... Running it again: --- >> Update Please choose the update method. For production systems select 'stable'. WARNING: The update from GIT is only for development systems and may break your current setup. Do not use the GIT version on servers that host any live websites! Note: Update all slave server, before you update master server. Select update method (stable,git-stable,git-master) [stable]: There are no updates available for ISPConfig 3.1.13p1 --- I have php54 installed in /opt. Is there a way to make ISPconfig to use this php? Thank you again!
You have to select 'git-stable' as the update source, not 'stable'. git-stable is the code that will become the 3.1.14 version. PHP 5.4 is not new enough, you would need 5.5. But if you have 5.5 installed, then it should be possible by changing the path to the php binary in: /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter and then restarting apache.
I also had php5.6 installed . OK I made the change: --- diff -u /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter.old /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter export PHP_FCGI_CHILDREN=1 -exec /usr/bin/php-cgi \ +exec /opt/rh/rh-php56/root/usr/bin/php-cgi \ -d disable_classes= \ --- But situation worsened.. Now I have error: --- [Tue Mar 12 08:58:45 2019] [warn] [client x.x.x.x] mod_fcgid: stderr: PHP Fatal error: Call to undefined function mb_detect_encoding() in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 479 [Tue Mar 12 08:58:46 2019] [warn] [client x.x.x.x] mod_fcgid: stderr: PHP Fatal error: Call to undefined function mb_detect_encoding() in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 479, referer: https ://www domain net:8080/ --- I think if I need this functionality I better upgrade to Centos 7... Thank you for your help! If you don't need my help on troubleshooting centos6 with ISPconfig 3.1.13 I don't think we should spend more time on it. I will plan upgrading of my server to centos 7 in the nearest future. Thank you again!