Не удалось загрузить example.pl из браузера
Я установил Apache веб-сервер в Ubuntu и создал example.pl
в /usr/lib/cgi-bin
,
Я также добавил ниже код для /etc/apache2/sites-enabled/000-default.conf
файл
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
От /usr/lib/cgi-bin
когда я выполню ./example.pl
Я получаю вывод, но когда я пытался загрузить Perl-скрипт из браузера, используя localhost/cgi-bin/example.pl
Я получаю эту ошибку:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
Пожалуйста, помогите мне в решении этой проблемы, я знаю, что это просто, но я не знаю, что делать, чтобы это исправить