ispCP - Board - Support
ISPCP and php.ini - Debian Wheezy - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: ISPCP and php.ini - Debian Wheezy (/thread-16543.html)



ISPCP and php.ini - Debian Wheezy - Haros - 05-20-2013 01:25 AM

Hello,

after a dist-upgrade (squeeze -> wheezy) php got updated. So some settings need to be remade regarding php.

I know that ispcp uses a different php.ini for each domain.
eg. /var/www/fcgi/domain.tld/php5/php.ini

With the new php installation some config was updated so php loads the default php.ini and not the individual php.inis.

Also I believe something is need to be done with fastcgi configuration... It seems that fcgid module is ingored (it is loaded however)

I need to make it like it was before. Could you help?

Thanks.


*my modules

Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
mime_module (shared)
negotiation_module (shared)
php5_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_http_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
xsendfile_module (shared)
Syntax OK

btw the php_module is there temporarily. If I disable it the php pages are shown as source code.


RE: ISPCP and php.ini - joximu - 05-20-2013 05:26 AM

just an idea:
if only one php.ini (default) is loaded, then your php runs via mod-php and not fastcgi/fcgid mechanism.

And you see this in the list of the loaded apache modules...
remove/deactivate etc "php5_module (shared)" and then try again.

/J


RE: ISPCP and php.ini - Haros - 05-20-2013 05:46 AM

Like I have written, the php_module is temporarily loaded. If I unload it php pages don't get interpreted, their source code is shown. That means that still the fcgid_module doesn't work.

Thanks for the reply. Any thoughts are welcome.


*Adding some extra info. From the apache error log

[Sun May 19 23:08:45 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun May 19 23:08:45 2013] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6 PHP/5.4.4-14 configured -- resuming normal operations
[Sun May 19 23:08:59 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sun May 19 23:09:00 2013] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6 configured -- resuming normal operations

This seems to load the mod_fcgid correct. So what's wrong?


RE: ISPCP and php.ini - Haros - 05-20-2013 07:48 AM

Ok. Updating the post in case someone has the same problem.

The solution is not only to disable php5_module but also php5_cgi

You didn't see it in my list? Neither did I... but somehow it was enabled...


RE: ISPCP and php.ini - Haros - 05-20-2013 09:22 AM

Sorry for the continuous posting. While everything seems to be working I have a problem only with one website. I get an error 500.

The apache default error log:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers: index.php

my suexec log seems to be ok:
[2013-05-20 01:27:14]: uid: (2005/vu2005) gid: (2005/vu2005) cmd: php5-fcgi-starter
[2013-05-20 01:27:33]: uid: (2035/vu2035) gid: (2035/vu2035) cmd: php5-fcgi-starter
[2013-05-20 01:27:52]: uid: (2030/vu2030) gid: (2030/vu2030) cmd: php5-fcgi-starter
[2013-05-20 01:27:58]: uid: (2041/vu2041) gid: (2041/vu2041) cmd: php5-fcgi-starter
[2013-05-20 01:28:05]: uid: (2029/vu2029) gid: (2029/vu2029) cmd: php5-fcgi-starter
[2013-05-20 01:28:12]: uid: (2005/vu2005) gid: (2005/vu2005) cmd: php5-fcgi-starter
[2013-05-20 01:28:30]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2013-05-20 01:28:41]: uid: (2029/vu2029) gid: (2029/vu2029) cmd: php5-fcgi-starter


RE: ISPCP and php.ini - Haros - 05-21-2013 04:56 AM

Ok my problems seem to be solved.
There was one more error with squirrelmail -> blank page. That was because the squirrelmail version was old and there was a fatal error on one of the functions. The solution can be found here:

http://jadawin-freebsd.morpheushosting.sk/2012/07/squirrelmail-cannot-redeclare-hex2bin.html

For any admin. You can change my thread title to "ISPCP on debian wheezy" or something so it can be more accurate. Maybe it can be helpful to someone facing the same problems.


RE: ISPCP and php.ini - Debian Wheezy - joximu - 05-21-2013 11:38 AM

Hi Haros

hm - php5-cgi is not a apache module... And I thought it's needed for fastcgi/fcgid... but well... I do not use wheezy so far... :-)

Hope some will find this helpfull... many admins will move to a newer panel (there are two forks that are still developped..)

/Joxi