
Ubuntu日本語フォーラム

ログインしていません。
hotohoto です。Apache2+CGIでできないです。
アドバイスをよろしくおねがいします。
##Apache2 をインストールして Webサーバーを構築開始しperlを設定しようとしてます。
aptitude -y install apache2 vi /etc/apache2/conf-enabled/security.conf # 26行目:変更 ServerTokens Prod # 37行目:変更 ServerSignature Off vi /etc/apache2/mods-enabled/dir.conf DirectoryIndex index.html index.htm vi /etc/apache2/apache2.conf # 70行目:サーバー名追記 ServerName www.servername.jpnado vi /etc/apache2/sites-enabled/000-default.conf # 11行目:管理者アドレス変更 ServerAdmin [email protected] /etc/init.d/apache2 restart ## これで ## /var/www/html/index.html ## は普通に表示されました。OK ## 次に CGI の設定を有効にしようとしました。そしてPerlスクリプトが使えるようにします。 ## Perl インストール aptitude -y install perl ## Apache2 の設定です。任意のディレクトリでCGIが使えるように設定 vi /etc/apache2/mods-enabled/dir.conf # 2行目:ディレクトリ名のみでアクセスできるファイル名を設定 DirectoryIndex index.html index.cgi vi /etc/apache2/mods-enabled/mime.conf # 219行目:コメント解除し、CGIとして扱う拡張子を設定 AddHandler cgi-script .cgi .pl vi /etc/apache2/sites-enabled/000-default.conf <Directory "/var/www/html"> AllowOverride All Options +ExecCGI Require all granted </Directory> a2enmod cgi ## これで Enabling module cgi. ## To activate the new configuration, you need to run: ## Apache2 を再開 service apache2 restart /etc/init.d/apache2 restart ## このあと CGI テストページを作成して動作確認をしましたが chmod 705 /var/www/html/index.cgi ## しかし表示はできず ページは表示さず
なぜできないかが分からずに悩んでいます。
何かが抜けているのでしょうか?
ちなみに同機に古いバージョンのUBUNTUを入れてあった時には Apache2 と CGI は作動していました。
何かヒントをいただけると幸いです。
オフライン