How to install mediawiki on raspberry pi hosted tor site using lighttpd?
by burning from LinuxQuestions.org on (#567K8)
I'm trying to setup a mediawiki installation on my headless raspberry pi running raspian OS lite (the CLI one without a GUI) on the Tor network using lighttpd. I've configured the lighttpd server as demonstrated in this guide and am successfully able to access the index.html example page I've stored in /var/www/html/my_wiki/ .
Downloading the mediawiki tarball using wget, I extracted its contents into /var/lib/mediawiki and created a symlink from /var/lib/mediawiki to /var/www/html/mediawiki as advised here after configuring the mysql server as also demonstrated in that same page. [For clarification: the /var/lib/mediawiki dir symlinks into the /var/www/html/ dir. The /var/www/html/wikimedia dir does not really exist as anything other than a symlink].
Upon trying to access the page through using the onion url in my Tor browser, the only thing that would load was the index.html page in /var/www/html/my_wiki/index.html which was the example index.html page I made to test if the site would load. I tried all of the listed variants of the url that should have worked as listed in the first link I mentioned but none of them would work to bring up the configuration page.
At this point, I noticed that at some stage, an index.html file in /var/www/html/ was created automatically. I replaced my own in /var/www/html/my_wiki/ with it and tried changing the server.document-root in /etc/lighttpd/lighttpd.conf from the original /var/www/html/ to /var/www/html/my_wiki/ and tried accessing it then after also moving the symlink from /var/lib/mediawiki to /var/www/html/my_wiki. The html.index loaded properly just like before but it said it was an apache2 default page. I don't know if it just says that because mediawiki assumes everyone uses apache but it got me worrying that at some point in my installation attempt, I might have messed up and forgot to specify somewhere not to use apache and to use lighttpd instead.
This got me to look up how to setup mediawiki using lighttpd specifically, which took me to this page but I don't understand what's gone wrong so far with my installation attempt of the standard way or what modifications I should make to those configs they recommend on my /etc/lighttpd/lighttpd.conf file seeing as I won't be able to use localhost as I'm hosting the site on the Tor network.


Downloading the mediawiki tarball using wget, I extracted its contents into /var/lib/mediawiki and created a symlink from /var/lib/mediawiki to /var/www/html/mediawiki as advised here after configuring the mysql server as also demonstrated in that same page. [For clarification: the /var/lib/mediawiki dir symlinks into the /var/www/html/ dir. The /var/www/html/wikimedia dir does not really exist as anything other than a symlink].
Upon trying to access the page through using the onion url in my Tor browser, the only thing that would load was the index.html page in /var/www/html/my_wiki/index.html which was the example index.html page I made to test if the site would load. I tried all of the listed variants of the url that should have worked as listed in the first link I mentioned but none of them would work to bring up the configuration page.
At this point, I noticed that at some stage, an index.html file in /var/www/html/ was created automatically. I replaced my own in /var/www/html/my_wiki/ with it and tried changing the server.document-root in /etc/lighttpd/lighttpd.conf from the original /var/www/html/ to /var/www/html/my_wiki/ and tried accessing it then after also moving the symlink from /var/lib/mediawiki to /var/www/html/my_wiki. The html.index loaded properly just like before but it said it was an apache2 default page. I don't know if it just says that because mediawiki assumes everyone uses apache but it got me worrying that at some point in my installation attempt, I might have messed up and forgot to specify somewhere not to use apache and to use lighttpd instead.
This got me to look up how to setup mediawiki using lighttpd specifically, which took me to this page but I don't understand what's gone wrong so far with my installation attempt of the standard way or what modifications I should make to those configs they recommend on my /etc/lighttpd/lighttpd.conf file seeing as I won't be able to use localhost as I'm hosting the site on the Tor network.