Topic on Project:Support desk

How to install MediaWiki on subfolder in Centos 7

2
Mattlcass (talkcontribs)

I am currently trying to install MediaWiki to the subdirectory, /var/www/html/w/ in Centos 7 alongside Wordpress (in the root), but am receiving a 500 error when trying to access any pages in /var/www/html/w/. Prior to installing MediaWiki to the directory I was able to access a test index.php file with no trouble. My error log does not show anything, other subdirectories work correctly, and I have an .htaccess file with the following...

RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

I've also set ownership of the /var/www/html/w/ directories recursively to apache:apache, and the permissions to 755.

Do you know why I can't install, and get the 500 error? Thank you.

Wargo (talkcontribs)

It was existing installation and the moved to subdirectory? Set proper path in localsettings.php

Reply to "How to install MediaWiki on subfolder in Centos 7"