php.ini issue - 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: php.ini issue (/thread-12676.html) |
php.ini issue - syslin - 01-15-2011 12:25 AM Hello all, I copied my phpBB3 system to my new server that running ispCP on CentOS server but I'm having trouble with PHP 5.3 and the old phpBB3 version. So after find the solution, and testing it on my development server I have to change the "request_order" parameter from GP to GPC to allow the using of old PHP session method. 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. 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. 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> But this didn't helped too, the website refuse to use it. 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. Where is the right php.ini ??? What's going on? Any idea? Please help. Thanks, Miki RE: php.ini issue - motokochan - 01-15-2011 02:13 AM (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): 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: 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? 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. RE: php.ini issue - syslin - 01-15-2011 05:36 AM Thanks for the help, I tried again but still does not resolve the issue. I edit the file: /var/www/fcgi/mydomain.com/php5/php.ini and change the line from request_order = "GP" to request_order = "GPC" save this php.ini file stop the Apache service: service httpd stop Stopping httpd: [ OK ] kill all php-cgi process: ps -ef | grep cgi root 5146 4882 0 21:34 pts/1 00:00:00 grep cgi Then start the httpd service again: service httpd start Starting httpd: [ OK ] and check what's up with php? ps -ef | grep cgi vu2011 5185 5172 10 21:35 ? 00:00:00 /usr/bin/php-cgi vu2011 5186 5185 8 21:35 ? 00:00:00 /usr/bin/php-cgi vu2011 5187 5185 2 21:35 ? 00:00:00 /usr/bin/php-cgi root 5191 4882 0 21:35 pts/1 00:00:00 grep cgi But still the phpBB system does not working as expecting. Changing the php.ini file on my development server (without ispCP) works great. Any idea? Thanks, Miki Hi again, Changing the /var/www/fcgi/master/php5/php.ini and restart the php-cgi processes didn't solve the issue too Still need some help here. Thanks, Miki RE: php.ini issue - syslin - 01-15-2011 07:59 PM So... I checked again I changed the request_order = "GPC" in the php.ini file, shutdown the Apache and start it again and now the phpinfo it's looking like this: Code: Core That mean that the parameter "request_order" is now GPC but the system still not working. Any idea? Thanks, Miki RE: php.ini issue - motokochan - 01-18-2011 01:44 PM Well, it's obviously something else then. Have you asked the phpBB folks? RE: php.ini issue - syslin - 01-19-2011 07:09 AM Hello, Yes I already post a topic on phpBB board, but as I wrote I tested the same system (files and DB) on my secondary server that running PHP 5.3 too without ispCP and it had same behavior before I changed the request_order to "GPC" in the php.ini file (on the development server). After I changed the request_order from "GP" to "GPC" on that php.ini file all is running well (on the dev. server) so I don't think it's a phpBB failure, it's something related to the PHP that running with ispCP that somehow ignore the request_order = "GPC" parameter although it complain it use it. Thanks, Miki |