PHP Configuration module config

PHP Configuration module of webmin define : /etc/php5/apache/php.ini as Configuration for mod_php while the correct case is : /etc/php5/apache2/php.ini

VirtualMin installs php-cli, php-cgi, mod_php but PHP Configuration just lists php-cli and php-cgi because of this bug.

Status: 
Closed (fixed)

Comments

Hello!

The report about "apache/php.ini" vs. "apache2/php.ini" is indeed correct, but in my opinion that cannot be the reason why Server Configuration / Website Options (if you're referring to that) does not list "Apache mod_php" as option.

On my system (Ubuntu 10.04), the "apache(2)" issue is present too, but the only effect of that is that Webmin's PHP module does not list the apache2/php.ini file right away. Website Options does show the mod_php for me.

A possible reason why it is not showing for you might be that the php module is deactivated in Apache. You can check/change that in Webmin's Apache2 module, under Global configuration / Configure Apache Modules, or via the command line using

a2enmod php5
/etc/init.d/apache2 restart

EDIT: My apologies, I did not realize that this issue was filed under the "Webmin Core" project, since you spoke about "Virtualmin installs..." in your report. :) So yes, assuming you were referring just to Webmin's PHP5 module, I can confirm this issue.

Mostafa's picture
Submitted by Mostafa on Sat, 10/23/2010 - 14:29

It is not related to apache2. Just go to module config of PHP Configuration, change it from apache to apache2 and save it. it is not related to virtualmin. you can intall php-cgi, php-cgi,libapache2-mod-php5 and try it.

Thanks - the default php.ini path in that module is incorrect. I will fix this in the next Webmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.