Re: php5 als cgi im Apache 2
Moin,
Am Donnerstag, 18. Januar 2007 22:37 schrieb Mathias Brodala:
> Volker Katz, 18.01.2007 22:08:
> > Am Donnerstag, 18. Januar 2007 17:18 schrieb Mathias Brodala:
> >> Volker Katz, 18.01.2007 16:52:
> >>> ich versuche gerade verzweifelt php5 als cgi im Apache laufen zu
> >>> lassen. […]
[...]
> >> Du hast ScriptAlias[0] vergessen zu setzen.
> >
> > vielen Dank für die Antwort! Aber sorry, ich verstehe das nicht! Mit
> > ScriptAlias kann ich eine URL auf das Dateisystem mappen. Also würde mein
> > Skript rpc.php nicht im DocumentRoot liegen, sondern "sonstwo", könnte
> > ich "sonstwo" mappen, richtig ?!?
>
> Du musst ja auch nicht rpc.php mappen, sondern /usr/bin:
>
> <Location /rpc.php>
> Order allow,deny
> Allow from all
>
> ScriptAlias /cgi-bin/ /usr/bin
> AddType php5-cgi .php
> Action php5-cgi /cgi-bin/php5
> </Location
ein weiteres Mal: vielen Dank! Aber es funktioniert immernoch nicht. Bei
Deinem Ansatz bekomme einen Parser-Error: ScriptAlias not allowed here
Daher habe ich das ScriptAlias außerhalb von Location stehen:
ScriptAlias /cgi-bin/ /usr/bin
<Location /rpc.php>
Order allow,deny
Allow from all
AddType php5-cgi .php
Action php5-cgi /usr/bin/php5
</Location>
Und bekomme folgenden Fehler:
The requested URL /usr/bin/php5/rpc.php was not found on this server.
Den selben Fehler bekomme ich aber auch ohne ScriptAlias.
Gruß & Danke
Volker
Reply to: