Hi
Bin relativ neu in diesem „Business“. Meine Frage: ich habe (auf SUSE Linux) ein Directory ~/cgi-bin/ mit cgi-scripts (*.cgi oder *.pl), die ich aus Webseiten heraus aufrufen und ausfuehren will. Sie werden nun aber nicht ausgefuehrt, sondern nur als Text angezeigt. Wie mache ich mein Directory zu einem „ausfuehraren“ Directory (ich habe auch root-access)?
PS: Mein Computer ist kein Web-Server, ich will die Scripts nur einfach bei mir ‚offline‘ testen, bevor ich sie dann auf den eigentlichen Webserver rueberkopiere.
Hi Matthias,
ich könnt’ mich ja täuschen, aber wenn Du ein cgi-Script aufrufst (im Browser) benutzt Du schon einen Webserver (apache).
Der muß natürlich schon eingerichtet werden (http.conf). Etwa so:
— cut —
ScriptAlias: This controls which directories contain server scripts.
ScriptAliases are essentially the same as Aliases, except that
documents in the realname directory are treated as applications and
run by the server when requested rather than as documents sent to the client.
The same rules about trailing „/“ apply to ScriptAlias directives as to
Alias.
ScriptAlias /cgi-bin/ „/usr/scripts/cgi-bin/“
„/usr/local/htdocs/cgi-bin“ should be changed to whatever your ScriptAliased
CGI directory exists, if you have that configured.
AllowOverride None
Options None
— cut —
Die Verzeichnisse natürlich entsprechend Deinen Vorstellungen / Wünschen.