Current time: 11-27-2024, 11:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
php.ini issue
Author Message
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #2
RE: php.ini issue
(01-15-2011 12:25 AM)syslin Wrote:  I tried to to change this parameter on /var/www/fcgi/<mydomain.com>/php5/php.ini , restart the Apache server (service httpd restart) but it's look like it does not effect.

Don't just restart the service. Stop it and start it. You can also run "pkill php-cgi" as root, which should force fcgid to re-start the PHP processes.


(01-15-2011 12:25 AM)syslin Wrote:  So, I tried to to change this parameter on /var/www/fcgi/master/php5/php.ini , restart the Apache server (service httpd restart) but it's look like it does not effect.

That is correct, that file is not used for individual websites.


(01-15-2011 12:25 AM)syslin Wrote:  So, I tried to create an .htaccess file on the phpBB3 root with the following code (which work on the development server that does not running ispCP):
I tried to to change this parameter on /var/www/fcgi/<mydomain.com>/php5/php.ini , restart the Apache server (service httpd restart) but it's look like it does not effect.
Code:
<IfModule mod_php5.c>
   php_flag register_globals Off
   php_flag magic_quotes_gpc Off
   php_value request_order GPC
</IfModule>

But this didn't helped too, the website refuse to use it.

Won't work, you're not running PHP as an Apache module.


(01-15-2011 12:25 AM)syslin Wrote:  Then I add the above lines:
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_value request_order GPC

to the /etc/httpd/vhosts/ispcp.conf (restart the Apache server) but this didn't help too.

That won't work as you're not running PHP as a module.


(01-15-2011 12:25 AM)syslin Wrote:  Where is the right php.ini ??? What's going on?

Any idea? Please help.

ispCP uses PHP as a CGI process via Fcgid. This helps with security while not affecting speed considerably. In my experience, doing a simple restart of Apache often won't stop the PHP processes. You want to make sure all the PHP processes are stopped so that they are re-launched and read the updated php.ini. I have found a simple pkill command while Apache is running will solve the issue of reading the new php.ini file. The downside is that PHP has to start back up, but such would be the case with restarting the whole web service.
01-15-2011 02:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
php.ini issue - syslin - 01-15-2011, 12:25 AM
RE: php.ini issue - motokochan - 01-15-2011 02:13 AM
RE: php.ini issue - syslin - 01-15-2011, 05:36 AM
RE: php.ini issue - syslin - 01-15-2011, 07:59 PM
RE: php.ini issue - motokochan - 01-18-2011, 01:44 PM
RE: php.ini issue - syslin - 01-19-2011, 07:09 AM

Forum Jump:


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