Hello,
we are just setting up a WAMP-System.
PHP is running as tested from the command line. Apache is running also.
However, our scripts need to have the shebang-line, although we declared in Windows Explorer etc. that extensions php, php3, php4 etc. should be executed using php.
Whenever we use a php-script not containing the shebang-line we get errors, mostly 500.
In our httpd.config-file, we have the line
---quote---
ScriptInterpreterSource registry
---/quote---
uncommented, as well as the following lines:
---quote--
ScriptAlias /cgi-bin/ "D:/Scripts/cgi/"
ScriptAlias /php-bin/ "D:/Scripts/php/"
#
# "C:/Programme/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "D:/Scripts">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
End of aliases.
Damit der Apache .php(3)-Dateien erkennen
kann, müssen diese Endungen hier eingetragen
werden. Alle unten angegebenen Endungen
werden nun als .php3- bzw. php4 - Dateien
behandelt.
#PHP4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
Der Action-Handler zeigt dem Apache, mittels
welcher Datei PHP(3)-Dateien behandelt
werden sollen.
#PHP4
Action application/x-httpd-php "C:/PHP/php.exe"
---/quote---
WHat is wrong here?
Thanks in advance
Andreas Koerber
Wolfgang Roehl