JRA Posted December 5, 2017 Posted December 5, 2017 Hello all, Nothing essential this end, just a bit annoying. We've had an internal wiki of sorts just plain stop working. I'm not sure exactly what did it in, but probably upgrading to php7 smushed it. Or even php5. I've restored the folders of it to a fresh LAMP server, only really want to load it up again for a day or two to get all our old guides off it then bin it again, but can't get the pesty thing to spit our it's regular wiki. 777-ed the world on the folders (currently it's in /var/www/html/oracle/public_html/) and I can browse from another PC to the folder structures within eg http://tempserver/oracle/ and also to eg http://tempserver/oracle/public_html/docs/ but I cannot get to http://tempserver/oracle/public_html/ as it gives me an http 500 error. Can anyone just bodge me working perhaps maybe? Thanks in advance for any pointers!
mavhc Posted December 5, 2017 Posted December 5, 2017 What do the web server logs say? Should be in /var/log/apache or similar 1
JRA Posted December 5, 2017 Author Posted December 5, 2017 Doesn't record any errors or even anything in error.log for trying to browse to http://tempserver/oracle/public_html/, some of the folders seem to be forbidden somehow (though are all as I've mentioned 777-ed) for example http://tempserver/oracle/public_html/includes/ gets me a "Forbidden" in browser, and "access_compat:error ... client denied by server configuration" in error.log.
JackCPickup Posted December 5, 2017 Posted December 5, 2017 Have you followed the restore method for your particular wiki? Or was it something created internally and not DokuWiki or MediaWiki for example? 1
mavhc Posted December 5, 2017 Posted December 5, 2017 Is the wiki in a database? if so can you install a blank version from scratch and then replace the database? 1
jthompson Posted December 5, 2017 Posted December 5, 2017 Is the ownership of the files correct (i.e. owned by www-data and not root)? Something like this would set that right. sudo chown -R www-data:www-data /var/www/html/oracle Also check for paths to that folder being correct in any config files for the site (would depend on the wiki system in question). One of the reasons I like using DokuWiki is that there's no database involved, just text files. Makes backup and restore dead simple. 1
JRA Posted December 5, 2017 Author Posted December 5, 2017 There's some solid gold in here, thanks so so much folks. Restoring the, er, mediawiki whilst following their instructions was definitely a good 'un! I'll rummage through all these now, cheers again everybody!
mavhc Posted December 5, 2017 Posted December 5, 2017 https://www.mediawiki.org/wiki/Apache_configuration#In_Ubuntu_16.04.2_LTS 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now