View Full Version : Apache2 + PHP4 setup problem! Plz help!

10-27-2003, 02:00 AM
My OS is Win2K.
httpd.conf is included follow:

DirectoryIndex index.php index.html index.html.var

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"

<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
Options Indexes FollowSymlinks MultiViews execCGI Includes SymLinksIfOwnerMatch

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "C:/Program Files/Apache Group/PHP/php.exe"

Please help!!

Error Log:

[error] [client xxx] C:/Program Files/Apache Group/Apache2/cgi-bin/hello.php is not executable; ensure interpreted scripts have "#!" first line
[error] [client xxx] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Group/Apache2/cgi-bin/hello.php

extension_dir = "C:\Program FilesApache GroupPHPextensions"
doc_root = "C:Program FilesApache GroupApache2htdocs"

Please help!!:confused: