[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php5 als cgi im Apache 2



Hallo Volker.

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.
>>> […]
>>>
>>> In meiner vhost-Konfiguration habe ich folgendes eingetragen:
>>> <Location /rpc.php>
>>>         Order allow,deny
>>>         Allow from all
>>>         AddType php5-cgi .php
>>>         Action php5-cgi /usr/bin/php5
>>> </Location>
>>>
>>> […]
>>>
>>> Aber der Server antwortet immer nur:
>>> The requested URL /usr/bin/php5/rpc.php was not found on this server.
>>>
>>> Also er versuche " /usr/bin/php5" als Pfad und nicht als Interpreter zu
>>> nehmen. Was mache ich denn falsch?
>> 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


Gruß, Mathias

-- 
debian/rules

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: