Fórum Ubuntu CZ/SK
Ostatní => Ubuntu Server => Téma založeno: strom159 19 Května 2012, 10:55:41
-
Zdravím Vás, postupoval jsem podle tohoto návodu: http://www.ubuntugeek.com/how-to-install-apache2-webserver-with-phpcgi-and-perl-support-in-ubuntu-server.html (http://www.ubuntugeek.com/how-to-install-apache2-webserver-with-phpcgi-and-perl-support-in-ubuntu-server.html).
Konfiguraci jsem dal do /etc/apacha2/sites-available.
ScriptAlias /cgi-bin/ /home/www/cgi-bin/
<Directory /home/www/cgi-bin/>
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>
Bohužel, když jsem vytvořil testovací soubor a spustím ho, tak mi to vyhodí tuto chybu:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Nevím co by to mohlo být, www stránky fungují.
EDIT: Mám ubuntu server 11.10.
-
V /etc/apacha2/sites-available ti to bude hodně platný, chce to ještě nalinkovat do sites-enabled. A mezi tagy VirtualHost (máš to i v tom návodu).
Příště přikládej i ten log co to po tobě chce.
-
Mám to i tak, ale i tak to nefunguje v logu to pořád hlásí špatný adresář, místo /home/www/cgi-bin/ tam je /usr/lib/cgi-bin/ nevím proč.
EDIT: Teď už je tam něco jiného:
[Sat May 19 14:10:32 2012] [notice] caught SIGTERM, shutting down
[Sat May 19 14:10:33 2012] [notice] Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.$
[Sat May 19 14:10:36 2012] [error] [client 192.168.1.124] (8)Exec format error:$
[Sat May 19 14:10:36 2012] [error] [client 192.168.1.124] Premature end of scri$
[Sat May 19 14:10:37 2012] [error] [client 192.168.1.124] (8)Exec format error:$
[Sat May 19 14:10:37 2012] [error] [client 192.168.1.124] Premature end of scri$
[Sat May 19 14:14:17 2012] [error] [client 192.168.1.124] (8)Exec format error:$
[Sat May 19 14:14:17 2012] [error] [client 192.168.1.124] Premature end of scri$
[Sat May 19 14:14:18 2012] [error] [client 192.168.1.124] (8)Exec format error:$
[Sat May 19 14:14:18 2012] [error] [client 192.168.1.124] Premature end of scri$