Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[apache] action Direktive mit Parametern

0 views
Skip to first unread message

Bernhard Graeuler

unread,
Aug 29, 2001, 7:06:51 AM8/29/01
to
Hallo NG!

Ich möchte, daß der PHP Interpreter mit dem Parameter -s aufgerufen wird, damit
er "highlighted Sourcecode" ausgibt. Dazu habe ich folgendes in die HTTPD.conf
eingetragen:

ScriptAlias /phps/ "d:/programme/apache/cgi-bin/php4/"
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-src .phps
Action application/x-httpd-php-src "/phps/php.exe -s"

Beim Aufrufen der Datei "test.phps" kommt ein "Seite nicht gefunden" vom IE
zurück und in den Apache Logslog steht:
Access Log:
127.0.0.1 - - [29/Aug/2001:13:02:56 +0200] "GET /test.phps HTTP/1.1" 200 28
Error Log:
(2)No such file or directory: script not found or unable to stat:
d:/programme/apache/cgi-bin/php4/php.exe -s

Ohne die option "-s" in der Action Direktive wird das Skript normal
interpretiert.

Mein System: Apache 1.3 ohne Source | PHP4 CGI only version | Win2k SP2
^^^^^^^^
deswegen funktioniert die loadModule
Lösung nicht.

Hoffentlich kann mir jemand helfen.

Dankeschöin
Bernhard


Bjoern Hoehrmann

unread,
Aug 31, 2001, 9:00:11 PM8/31/01
to
* Bernhard Graeuler wrote in de.comm.infosystems.www.servers:

>Ich möchte, daß der PHP Interpreter mit dem Parameter -s aufgerufen wird, damit
>er "highlighted Sourcecode" ausgibt. Dazu habe ich folgendes in die HTTPD.conf
>eingetragen:
>
> ScriptAlias /phps/ "d:/programme/apache/cgi-bin/php4/"
> AddType application/x-httpd-php .phtml .php
> AddType application/x-httpd-php-src .phps
> Action application/x-httpd-php-src "/phps/php.exe -s"

Das funktioniert nicht. Mach das ganze als CGI-Script und benutze

#!php.exe -s

in der ersten Zeile.
--
Björn Höhrmann { mailto:bjo...@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

0 new messages