Current time: 05-01-2024, 09:51 AM Hello There, Guest! (LoginRegister)


Post Reply 
user php.ini file
Author Message
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #1
user php.ini file
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.
06-25-2009 05:09 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: user php.ini file
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.
06-25-2009 06:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #3
RE: user php.ini file
(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?
06-25-2009 07:43 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: user php.ini file
Look for the ServerApi info (in "phpinfo")... does it say it's using fastcgi?

Quote:Server API CGI/FastCGI
06-25-2009 06:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #5
RE: user php.ini file
Server API Apache 2.0 Handler

Is it wrong?
How can I change it?
06-25-2009 08:19 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: user php.ini file
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
06-25-2009 11:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #7
RE: user php.ini file
(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.
06-26-2009 07:43 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: user php.ini file
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...
06-26-2009 07:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #9
RE: user php.ini file
ok
thank youSmile
06-27-2009 04:25 PM
Find all posts by this user Quote this message in a reply
Macho Offline
Newbie
*

Posts: 9
Joined: Jun 2009
Reputation: 0
Post: #10
RE: user php.ini file
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
07-03-2009 03:33 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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