Hi,
I'm running Sabayon Linux (64-bit, up to date with all updates -- it's a
rolling release system to version numbers are irrelevant) and while I
managed to install MW 1.25.2 on it successfully I cannot seem to shorten
URLs properly. My MediaWiki base directory (i.e., the one with index.php,
LocalSettings.php, etc. in it) is /var/www/localhost/htdocs/w and I am
using MariaDB as my RDBMS, if relevant. To shorten my URL (from w/index.php
to wiki) I added:
AllowOverride All
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
to /etc/apache2/httpd.conf and added:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
to my LocalSettings.php file. I also ran:
systemctl restart apache2
php maintenance/update.php
after this. I then opened up
http://localhost/wiki/Linux_Wiki (my main
page) in Google Chrome and got a page with the error message:
This web page is not available
ERR_CONNECTION_REFUSED
I also tried opening up
http://localhost/w/index.php/Linux_Wiki (where my
main page was prior to the URL shortening attempt) and got a page with the
same error message. Is there anything I have missed here? Btw, I had opened
up
http://localhost/w/index.php/Linux_Wiki in Google Chrome prior to the
shortening attempt without issue, if you're wondering whether this was a
pre-existing problem. Sabayon if you are unfamiliar is a Gentoo derivative.
Thanks for your time,
Brenton