php.ini not work

6 posts / 0 new
Last post
#1 Tue, 07/27/2010 - 11:16
m@sh@

php.ini not work

Hello,

I had install Virtualmin on a new server with ubuntu 10.04 with the script. All work well and very great. I had create a virtual server with my domain. But I need to change a php.ini option. I do it in the directory $home/etc/php5 but nothing change. I reload apache and no change. It use alltime the php.ini in the main etc directory of the server I think. I had try to administered using the PHP Configuration module under the Services menu and same nothing change. Why?

Thanks a lot

Tue, 07/27/2010 - 14:22
ronald
ronald's picture

look into the domain under virtualmin, go to Server Configuration and then to Website Options.
In the right pane make sure that PHP script execution mode is set to: FCGId (run as virtual server owner)
if in Apache mod_php (run as Apache's user) then switch, restart apache and try again

Wed, 07/28/2010 - 10:28
m@sh@

thanks a lot for your help but it's not that. I use FCGId. And all my configuration files look good. But I haven't a suexec.log file. May be a suexec problem?

I just see that in my phpinfo than "Server API" stay in "Apache 2.0 Handler "

Wed, 07/28/2010 - 11:03
ronald
ronald's picture

i believe there were some issues with suexec on ubuntu.
you may well want to search in the issue tracker or open a new issue (bug report) to get this resolved.

for instance this reply by Jamie:

Ok, I see the cause of this now .. Ubuntu 10 configures PHP in such as way that running via mod_php overrides CGI mode.

The fix is to edit /etc/apache2/mods-available/php5.conf and comment out the line SetHandler application/x-httpd-php , and then run apache2ctl graceful

Wed, 07/28/2010 - 11:30 (Reply to #4)
m@sh@

Thanks a lot Ronald now that work well.

Tue, 09/21/2010 - 14:06 (Reply to #5)
gwenl

Thank you for your reply. That was very helpful to me too.

Topic locked