Looks like all of them. I don’t know if they were using mod_php or not…I never configured how PHP was handled. I’m also not yet sure if it is installed. It is a fresh install of Centos 5 x64…plus Virtualmin GPL
Well I migrated a bunch of sites to a new server and I’m getting all sorts of problems. I can’t get PHP to work - I get a Forbidden message whenever I try to access them. Any ideas?
This is an error related to a server side include that calls a php file:
[Fri Sep 10 18:33:43 2010] [error] [client xx.xx.xx.xx] unable to include “/scripts/xxx.php” in parsed file /home/xxx/public_html/xxx.htm, referer: http://xxxxxxxxxxxxxxxxxxx
When I try to go to a web page that is generated using php I get a direct forbidden message and no errors in the http error log. The php scripts simply aren’t being run.
I’m guessing this is related to FastCGI vs php_mod… I see some related issues online about it. Researching further.
Thanks. Is there a difference between CGI and mod_php ? Is there an easy way to enable each of these for a specific or all websites on the server? I’d like to experiment with each of them as I am having some scripts that seem to be running slower than before, while others seem to be running faster than before… Not sure if it is PHP, MySQL, cache settings, or something else…
Any answer on the last post? It seems eAccelerator does not support php-cgi. My previous sites were mod_php but Virtualmin did not migrate them properly. I suspect this is a function of how PHP is compiled? I don’t know.
How would I got about converting my php-cgi sites to mod_php ?
You can change between CGI, FCGID, and mod_php for your various sites by going into Server Configuration -> Website Options, and setting “PHP script execution mode”.
After:
Once those were removed I verified using phpinfo() that the site is now using mod_php.
eAccelerator now runs. Sites are now MUCH faster.
Finally in Virtualmin under ‘Website Options’ there are only two options for ‘PHP script execution mode’: CGI wrapper and FCGId. Neither of these options are now selected. If Virtualmin is supposed to support mod_php it isn’t in my fresh install and even broke my sites when migrating/restoring… Is this a bug ?