サーバー内のディレクトリを少し整理したほうがいいとMediawikiを移動したところページが表示されなくなりまいました。
Apacheの設定が足りないのか、ドメインには以前のディレクトリ内容が表示されているようです。
(変更前)/var/www/html/test01
(変更後)/var/www/html/wiki/test01
▶問題点
ApacheのDocumentRootを変更し再起動しても変更前のディレクトリ内のデータが反映される。
▶ディレクトリ移動後にしたこと
・ApacheのDocumentRootの変更・再起動
<VirtualHost *:80> ServerName test.com DocumentRoot /var/www/html/wiki/test01 ErrorLog /var/log/httpd/test.com/error_log CustomLog /var/log/httpd/test.com/access_log common RewriteEngine on RewriteCond %{SERVER_NAME} =test.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] <Directory "/var/www/html/wiki/test01"> Options ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
DBを利用しているMediawikiですが紐付けるのは後ほどできるはずです、PHPとかの設定が必要ですか?
ご教示お願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。