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

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

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 "

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

Thanks a lot Ronald now that work well.

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