Page 1 of 1

Apach,PHP,Windows CGI-BIN Directory

Posted: Tue Jun 21, 2005 2:40 pm
by Andie
I need some help I’ll start by saying I’m a novice with apache and php, so onto my problem I have some php scripts in my /cgi-bin/ directory and when their called from the browser the don’t execute but instead offer you to download them and that isn’t good. I have multiple Virtual hosts setup as below but it seems that the .php extension is not being picked up to be run. PHP is installed as a module.

Can anybody help?

Code: Select all

<VirtualHost *:80>
	ServerAdmin support@somesite.com
	DocumentRoot E:/www/apache2/htdocs/somesite.com
	ServerName www.somesite.com
	ErrorLog logs/ somesite_error.log
	CustomLog logs/ somesite_access.log common
ScriptAlias /cgi-bin/ &quote;E:/www/apache2/htdocs/somesite.com/cgi-bin/&quote;
<Directory &quote;E:/www/apache2/htdocs/somesite.com/cgi-bin/&quote;>
  	AllowOverride None
    	Options None
    	Order allow,deny
    	Allow from all
</Directory>
</VirtualHost>

Posted: Tue Jun 21, 2005 3:38 pm
by timvw
Could you post us a sample script you have in cgi-bin? You've probably already found and read http://httpd.apache.org/docs/howto/cgi.html