VirtualBox での CentOS 6.4 64 ビット、最小インストール。VBox Guest Additions をインストールするための groupinstall "Development Tools" が追加されました。インストール済みの Webmin、Apache、MySQL、PHP。
「Multicraft」というプログラムを実行しようとしています。.tar.gz ファイルでダウンロードされ、実行するインストーラーが含まれています。正しくインストールされましたが、インストールを完了するには my.ip/multicraft/install.php にアクセスする必要があります。フォルダーは /var/www/html/multicraft にあります。ブラウザーからフォルダー自体、またはフォルダー内の install.php または index.php ファイルにアクセスしようとするたびに、403:Forbidden が表示され続けます。メインの my.ip にアクセスでき、「Apache HTTP Server Test Page」が表示されます
Apache は apache ユーザーと apache グループの下で実行されます。すべての権限が正しいことを確認するために、/var/www ディレクトリ内で「chown -R apache:apache *」を実行しました。- インストーラーが multicraft を実行するユーザーを尋ねてきたので、"minecraft" ユーザーを作成し、それらを "apache" グループに追加しました。- /etc/httpd/conf/httpd.conf ファイルに以下を追加しました。
#user-added directory
<Directory "/var/www/html/multicraft">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
- プログラムと共にインストールされたディレクトリ内には、.htaccess ファイルもあります。システム上のすべての .htaccess ファイルのリストは次のとおりです。
/root/multicraft/panel/.htaccess
/root/multicraft/panel/protected/.htaccess
/root/multicraft/panel/protected/yii/.htaccess
/root/multicraft/panel/protected/yii/cli/views/webapp/protected/.htaccess
/root/multicraft/panel/protected/yii/cli/views/webapp/themes/classic/views/.htaccess
/root/multicraft/panel/themes/mobile/views/.htaccess
/root/multicraft/panel/themes/simple/views/.htaccess
/var/www/html/multicraft/.htaccess
/var/www/html/multicraft/protected/.htaccess
/var/www/html/multicraft/protected/yii/.htaccess
/var/www/html/multicraft/protected/yii/cli/views/webapp/protected/.htaccess
/var/www/html/multicraft/protected/yii/cli/views/webapp/themes/classic/views/.htaccess
/var/www/html/multicraft/themes/mobile/views/.htaccess
/var/www/html/multicraft/themes/simple/views/.htaccess
-「/var/www/html/multicraft/.htaccess」ファイルは次のとおりです。
Options +FollowSymLinks
<IfModule mod_autoindex.c>
IndexIgnore */*
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .? - [S=2]
# redirect to installer if the request ends with install.php
RewriteRule /install\.php$ install.php [L]
# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
ブラウザの「my.ip/multicraft」による「/var/www/html/multicraft」アクセスのディレクトリで、この 403:Forbidden が引き続き表示されます。「my.ip/multicraft/install.php」と「my.ip/multicraft/index.php」も試しましたが、同じエラーが発生しました。
自分が何を間違えたのか理解できません。私が見逃したかもしれないステップに関するアイデア。または、私が台無しにした可能性のある構成。助けてくれてありがとう。