ispCP - Board - Support
user php.ini file - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: user php.ini file (/thread-7048.html)



user php.ini file - Macho - 06-25-2009 05:09 AM

Hello,

I have a problem.
I use fcgid. All users have their own php.ini file.
When I change users php.ini file and restart apache, there are no changesSad
Changes are only applied when I change global php.ibi file.
Pleas ehelp.

thanks.


RE: user php.ini file - kilburn - 06-25-2009 06:46 AM

You either don't use fcgid or you're not chaning the proper file. Where are your "user php.ini" files located, and which is the path of your "global php.ini" file?

You can also check which .ini files are used through the "phpinfo()" helper on any specific domain.


RE: user php.ini file - Macho - 06-25-2009 07:43 AM

(06-25-2009 06:46 AM)kilburn Wrote:  You either don't use fcgid or you're not chaning the proper file. Where are your "user php.ini" files located, and which is the path of your "global php.ini" file?

You can also check which .ini files are used through the "phpinfo()" helper on any specific domain.

user php.ini files are at: /var/www/fcgi/'domain-name'/php5/php.ini
global php.ini file is at: /etc/php.ini

There is output from phpinfo():

Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini

Any idea?


RE: user php.ini file - kilburn - 06-25-2009 06:02 PM

Look for the ServerApi info (in "phpinfo")... does it say it's using fastcgi?

Quote:Server API CGI/FastCGI



RE: user php.ini file - Macho - 06-25-2009 08:19 PM

Server API Apache 2.0 Handler

Is it wrong?
How can I change it?


RE: user php.ini file - kilburn - 06-25-2009 11:28 PM

Yeah, it's wrong... you're using mod_php instead of fastcgi/fcgid. If you're on debian (lenny) I recommend fcgid, which you can enable like this (accept to remove packages if necessary):
Code:
a2dismod php5
apt-get install libapache2-mod-fcgid libapache2-mpm-worker
a2dismod fastcgi
a2dismod fastcgi_ispcp
a2dismod fcgid
a2enmod fcgid_ispcp
/etc/init.d/apache2 restart

Re-check the php information to see if the changes went well Smile


RE: user php.ini file - Macho - 06-26-2009 07:43 PM

(06-25-2009 11:28 PM)kilburn Wrote:  Yeah, it's wrong... you're using mod_php instead of fastcgi/fcgid. If you're on debian (lenny) I recommend fcgid, which you can enable like this (accept to remove packages if necessary):
Code:
a2dismod php5
apt-get install libapache2-mod-fcgid libapache2-mpm-worker
a2dismod fastcgi
a2dismod fastcgi_ispcp
a2dismod fcgid
a2enmod fcgid_ispcp
/etc/init.d/apache2 restart

Re-check the php information to see if the changes went well Smile
Hi

Thanks for your reply.
I have CentOS installed, so I have no a2dismod commond.
Could you tell you to enable fcgid in CentOS.
Thanks.


RE: user php.ini file - kilburn - 06-26-2009 07:58 PM

I'm sorry, I hate anything rpm-based so I don't have the slightest idea of which would be the equivalent to this in centos world...


RE: user php.ini file - Macho - 06-27-2009 04:25 PM

ok
thank youSmile


RE: user php.ini file - Macho - 07-03-2009 03:33 AM

Hi.

I have solved the problem.
If someone have the same probem see solution below.

In /etc/httpd/conf.d/php.conf file you need to comment out "AddHandler php5-script .php" and all other entries.

Thanks to everyoneSmile