Re: Running as CGI when PHP is compiled as a DSO with Apache
| From: | Thomas Deliduka | Date: | Tue, 21 Nov 2000 05:22:07 +0000 |
| Subject: | Re: Running as CGI when PHP is compiled as a DSO with Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26396@lists.php.net to get a copy of this message | ||
On 11/21/00 12:08 AM this was written:
> I'm trying to run a PHP script from a telnet session rather than from
> the browser, but I believe my admin compiled PHP as an DSO with
> Apache, so I can't type something like php -q script.php to compile a
> script. Is this a problem with compiling PHP as DSO? Is there anyway
> around this?
>From what little I know. You have to get them to also install PHP as a CGI
version. It will work fine for the DSO and the CGI version to be installed
on the same machine and they can use the same .ini file.
I do this on my server and it works out well. On a server where you don't
have control I have also run into this. I needed PHP for a cron-job and I
knew that they wouldn't install the CGI version on the server so I installed
the CGI version myself within my home directory. I didn't need root
permissions to install it. It's a little devious but I made the executable
only executable by me so the security implications are limited and it
enables me to do what I need to do.
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/