Current time: 11-22-2024, 04:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
ISPCP and php.ini - Debian Wheezy
Author Message
Haros Offline
Junior Member
*

Posts: 36
Joined: Sep 2010
Reputation: 0
Post: #1
ISPCP and php.ini - Debian Wheezy
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.
(This post was last modified: 05-21-2013 11:35 AM by joximu.)
05-20-2013 01:25 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: ISPCP and php.ini
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
05-20-2013 05:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Haros Offline
Junior Member
*

Posts: 36
Joined: Sep 2010
Reputation: 0
Post: #3
RE: ISPCP and php.ini
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?
(This post was last modified: 05-20-2013 07:11 AM by Haros.)
05-20-2013 05:46 AM
Find all posts by this user Quote this message in a reply
Haros Offline
Junior Member
*

Posts: 36
Joined: Sep 2010
Reputation: 0
Post: #4
RE: ISPCP and php.ini
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...
05-20-2013 07:48 AM
Find all posts by this user Quote this message in a reply
Haros Offline
Junior Member
*

Posts: 36
Joined: Sep 2010
Reputation: 0
Post: #5
RE: ISPCP and php.ini
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
(This post was last modified: 05-20-2013 11:27 AM by Haros.)
05-20-2013 09:22 AM
Find all posts by this user Quote this message in a reply
Haros Offline
Junior Member
*

Posts: 36
Joined: Sep 2010
Reputation: 0
Post: #6
RE: ISPCP and php.ini
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.s...x2bin.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.
05-21-2013 04:56 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: ISPCP and php.ini - Debian Wheezy
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
05-21-2013 11:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)