Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

PHP as CGI script in CGI-BIN?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Change Server Name and IP Address  
Author Message
Keith

External


Since: Sep 21, 2005
Posts: 2



(Msg. 1) Posted: Wed Sep 21, 2005 12:55 pm
Post subject: PHP as CGI script in CGI-BIN?
Archived from groups: comp>lang>php, others (more info?)

All:
I am having problems trying to run some php scripts in cgi. I have Apache 2.0+ and PHP 4.3. Perl works fine
with CGI and PHP works find as an Apache module. Whenever I attempt to run the php script through a URL with the
cgi-bin, it asks if I want to open or download the file. Cgi files execute fine though. Can anyone think of anything I
might be missing in any of the conf files?
Included is an example of one of my php scripts. Thank you for any advice.

#!/usr/bin/php -q

<?php phpinfo(); ?>

 >> Stay informed about: PHP as CGI script in CGI-BIN? 
Back to top
Login to vote
cmarvel

External


Since: Sep 21, 2005
Posts: 2



(Msg. 2) Posted: Wed Sep 21, 2005 6:25 pm
Post subject: Re: PHP as CGI script in CGI-BIN? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andy:
I found what the problem was. I was using the php module rather than
the php-cgi module. Thanks!

Keith

 >> Stay informed about: PHP as CGI script in CGI-BIN? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Win 32 PUT script - I have written a java based voicemail system. Users are able to retrieve, and delete messages via a java applet. This same applet also modifies and index to theses messages via a PUT request to Apache 2.0.48 (Win32) Server. I run the exact same system...

Zombie CGI script - Hi, Since a few weeks I've been bugged with cgi scripts that have become zombie. Not a real problem, unless it occuring few times per minute and within the shortest time the server reaches the max of processes. is there a way in apache to figure out..

hide script in url, how? - Hi, is it possible to hide a script in an url that the user think that this is a normal subdirectory like http://www.server.com/exec/username instead of http://www.server.com/script.pl?username ive tried an ALIAS but then the apache looks for..

shell script as cgi - is it possible to run a shell script as cgi, like perl? #!/bin/sh echo "Content-type: text/html" echo "Hello, World!" I get Premature end of script headers..

startup script for apache with ssl - Hi there, I have just installed apache with openssl. The server works fine in ssl and nonsslmode. As long as I start it with /usr/local/apache/bin/apachectl startssl Now I found that the startup script just starts it without ssl. Does anybody know ho...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]