Otrzymuję komunikat:
Kod: Zaznacz cały
[h=1]Internal Server Error[/h] 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.
Gdzieś na forum Ubuntu, ktoś napisał o podobnym problemie i napisał, że brakowało mu kilku pakietów. Niestety, nie napisał jakich pakietów mu brakuje, a było to w 2011 roku.
W pliku /var/log/apache2/error.log mam takie wpisy
Kod: Zaznacz cały
[Mon Oct 28 11:08:48 2013] [error] [client 192.168.50.56] (13)Permission denied: exec of '/usr/lib/cgi-bin/makwww.exe' failed
[Mon Oct 28 11:08:48 2013] [error] [client 192.168.50.56] Premature end of script headers: makwww.exe
Moja konfiguracja z pliku /etc/apache2/sites-enabled/000-default:
Kod: Zaznacz cały
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
AuthType Basic
AuthName "Zaloguj sie"
AuthUserFile /media/zasoby/haslaapache/.htpassword
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AddHandler cgi-script .exe
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>