ispCP - Board - Support
ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 (/thread-11825.html)



ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - edeis - 10-06-2010 09:48 AM

Wierdest thing.

I've been running ispCP for months. Just upgraded PHP from 5.3.2 to 5.3.3. When loading ispCP, all I get is a blank page! PHP upgrade works on all other websites on the server, phpmyadmin, roundcube, wordpress, etc.

Really puzzled. Can you help me quick? I need to get ispCP back up so users can administer their websites!!

I've double checked that error reporting is on.
/var/www/fcgi/master/php5/php.ini
error_reporting = E_ALL & ~E_NOTICE
display_errors = On

ispcp-lib.php
error_reporting(E_ALL);

I've even added this to /var/www/ispcp/gui/index.php
error_reporting(E_ALL ^ E_DEPRECATED);
echo ("Test");

With this change, when accessing index.php, it will output "Test" on a blank page but ispCP does not show up!!
I've put another echo after
require 'include/ispcp-lib.php';
in /var/www/ispcp/gui/index.php

and it does not show. Sounds like the problem lays with ispcp-lib.php
Testing...looks like ispcp-lib.php stops when it gets to:
require_once(INCLUDEPATH . '/ispcp-db-keys.php');

I am going to check this file and see where it stops.
Okay, here's an update.

The problem was here:
require_once(INCLUDEPATH . '/ispcp-db-keys.php');

It died at this point. Would not even display any echo commands from this file.

I noticed that it had different file permissions than all the other files (the group was not readable, only owner). chmod g+r, and bam! it works.


RE: ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - Nuxwin - 10-06-2010 10:23 AM

Hello ;

So, to resume, it's just a permissions issue on the ispcp-db-keys.php ?

Please, can you try the following:

Code:
# sh /var/www/ispcp/engine/setup/set-gui-permissions.sh

and then, check if the panel is reachable. Thanks.


RE: ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - edeis - 10-06-2010 02:31 PM

No, it was not accessible. Broken again with blank screen.

After running the script, the result was:
-r-------- 1 vu2000 vu2000 1268 Oct 5 17:19 ispcp-db-keys.php

In order to get it to work, I had to:
chown vu2000:apache ispcp-db-keys.php
chmod g+r ispcp-db-keys.php


Works now.


RE: ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - Nuxwin - 10-06-2010 04:08 PM

re ;

It's not normal behavior. Normally, vu2000 should be able to read this file. Are you sure to use fcgid or fastcgi ?


RE: ispCP Omega 1.0.6 fails after upgrading PHP to 5.3.3 from 5.3.2 - edeis - 10-07-2010 04:15 AM

Found that
/etc/httpd/vhosts/00_master.conf

was missing the following line in <IfModule mod_fcgid.c>:
Include /etc/httpd/conf.d/fcgid_ispcp.conf

It hasn't been there since I've been using the machine in production. This line is however included in client sites. Not sure if it was missing since installing ispCP, or was missing from tutorial/how to for setting up https.

Ran the script after changing 00_master.conf, now it works fine.