Welcome, Guest. [ Log In ]
Question   How do I switch my PHP between running as a CGI and an Apache module?
Search KBase


Top 5 in this Area:
1. What's the difference between PHP-CGI and PHP as an Apache module?
2. PHP Security
3. Compiling your own custom PHP
4. Can I run a phpbb forum (message board) on my site?
5. Do you support this PHP module or extension?

 
How do I switch my PHP between running as a CGI and an Apache module?
Of course you've already read all about the differences in PHP-CGI and PHP as an Apache module, right? And you know that the default set up is as PHP-CGI, which is heavily preferred, right?

If you still want to change your PHP setup, here's how!

  • Go to the "Domains > Manage Domains" area of the web panel.
  • Click the "Edit" link for the http or https service for your domain you'd like to switch PHP's type on.
  • There should be a a checkbox which says "Run PHP as a CGI?". Just uncheck (or check) that, and then submit the form.
Within about a half hour, your PHP setting will be changed for your domain.

Last updated: Jan 10, 2006.

User Post (2004-11-26 11:13:43 by ramses0)
don't forget the legacy option (if you are set as mod_php), rename foo.php to foo.pcgi to temporarily try stuff out.