DreamHost Web Hosting
Discussion Forum


Forums
   >> General Troubleshooting
*Threaded Mode

Subject can't see 'run PHP as CGI' option  
Posted byfrogarythm (DH New User )
Posted on04/10/06 06:24 PM



Hello,

Under the 'manage' tab of the domain control, I have several domains. Some of those domains, when I click on 'edit', offer me the option of running PHP as CGI. Some don't. All of these domains are fully hosted.

Does anyone know why this option isn't available?

I am looking to turn off CGI because the application I'd like to use does not run in CGI mode.

Thanks.



Subject Re: can't see 'run PHP as CGI' option new [re: frogarythm]  
Posted bybschneider55 (DH New User )
Posted on04/10/06 09:46 PM



I am very curious about this as well. I have two sites that MUST run this way, here is the reply I got:

I have to update the Wiki on that - we disabled the use of turning off
PHP as CGI as this was becoming an issue since when you turn it off, your
applications run under Apache's memory space, which then makes it hard
for us to determine who is using resources.



Subject Re: can't see 'run PHP as CGI' option new [re: bschneider55]  
Posted byanonymous2 (DH Familiar)
Posted on04/11/06 08:03 AM



In reply to:

I have to update the Wiki on that - we disabled the use of turning off
PHP as CGI as this was becoming an issue since when you turn it off, your
applications run under Apache's memory space, which then makes it hard
for us to determine who is using resources.


No information on why some domains still have the option, and some don't? I confirm seeing the same, btw.

So it's not functionally better or worse, not a security issue, doesn't actually cause using more resources... it makes it hard for us to determine who....!

This is consistent with a disturbing pattern, imho: Act first; inform and document later. I'm seeing too many of these "they took us down" for resources announcements for DH not to disclose/advertise warnings and limits more than buried in the wiki and forum, or something you find out from support, after it's too late.

> which then makes it hard for us to determine who is using resources.

What is the DH Mission Statement, anyway? We provide servers, make sure it's easy for us to track who uses their resources, and make sure nobody uses too much?

Has haste to expand become more important than their stated goal?

In reply to:

Our goal is to eventually create an environment where any sort of web hosting need can be fulfilled immediately at the best price possible within a helpful community of like-minded individuals. We believe that with our new software and open-minded approach that goal is not as far-fetched as it might sound!


It seems you can have your cake (databases, scripts, terabytes of bandwidth and storage), but you can't eat up those resources too.

When is "eventually?" In Internet time wasn't that last year?




Subject Re: can't see 'run PHP as CGI' option new [re: anonymous2]  
Posted bykchrist (DH Smarty Pants)
Posted on04/11/06 09:24 AM



This is consistent with a disturbing pattern, imho: Act first; inform and document later.

They didn't seem to have changed any existing domains though, so it really doesn't break or even affect anything you've already got up. My existing mod_php domains still show the old options; PHP-CGI and new domains show the new controls.

Disabling mod_php entirely would be a real problem, as it would surely break a lot of sites. This change, while it probably should have been announced somewhere, really isn't a big deal, IMO.

Note that you can still run mod_php by using the following in .htaccess. I tested it immediately after noticing that the mod_php option had disappeared and verified that it still works, even on new PHP-CGI domains.

AddHandler application/x-httpd-php .php


--
If you want useful replies, ask smart questions.

Subject Re: can't see 'run PHP as CGI' option new [re: anonymous2]  
Posted bydreamhostblogger (DH New User )
Posted on04/24/06 01:43 AM



Pete from DreamHost support has elaborated on DreamHost's reasons to stop offering PHP as an Apache-module in my blog.



--
Unofficial DreamHost Blog
Unofficial DreamHost Knowledge Base


Subject Re: can't see 'run PHP as CGI' option new [re: kchrist]  
Posted bysecondstream (DH New User )
Posted on11/14/06 00:58 AM



In reply to:

Note that you can still run mod_php by using the following in .htaccess. I tested it immediately after noticing that the mod_php option had disappeared and verified that it still works, even on new PHP-CGI domains.

AddHandler application/x-httpd-php .php



Note that doing so will run PHP4 and not PHP5. I tried

AddHandler application/x-httpd-php5 .php

but that did not work.

If anyone has figured how to use PHP5 and also

php_value auto_prepend_file

please let me know.



Subject Re: can't see 'run PHP as CGI' option new [re: secondstream]  
Posted bybjornl (DH Regular)
Posted on11/14/06 05:00 AM



secondstream: Are you sure that PHP 5 is installed as an Apache module and not only PHP 4?



Subject Re: can't see 'run PHP as CGI' option new [re: secondstream]  
Posted bykchrist (DH Grizzled Veteran)
Posted on11/14/06 10:47 AM



PHP 5 and mod_php are mutually exclusive, because mod_php5 is not installed. If you need PHP run as an Apache module, you have to live with PHP 4. If you need PHP 5, you have to live with CGI.

It's generally a good idea to start a new thread for stuff like this instead of resurrecting one that's seven months old for a simple question.


--
If you want useful replies, ask smart questions.



*Threaded Mode
Jump to