can't see 'run PHP as CGI' option

can't see 'run PHP as CGI' option

Posted by: frogarythm
Posted on: 2006-04-10 18:24:00

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.

Re: can't see 'run PHP as CGI' option

Posted by: bschneider55
Posted on: 2006-04-10 21:46:00

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.

Re: can't see 'run PHP as CGI' option

Posted by: anonymous2
Posted on: 2006-04-11 08:03:00

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?


Re: can't see 'run PHP as CGI' option

Posted by: kchrist
Posted on: 2006-04-11 09:24:00

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

Re: can't see 'run PHP as CGI' option

Posted by: dreamhostblogger
Posted on: 2006-04-24 01:43:00

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


Re: can't see 'run PHP as CGI' option

Posted by: secondstream
Posted on: 2006-11-14 00:58:00

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.

Re: can't see 'run PHP as CGI' option

Posted by: bjornl
Posted on: 2006-11-14 05:00:00

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

Re: can't see 'run PHP as CGI' option

Posted by: kchrist
Posted on: 2006-11-14 10:47:00

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.

Tags: cgi modedomainsphprunning