#12118 closed Bug/Something is broken (fixed)

Hard Error attempting to install MediaWIki

Reported by: https://id.mayfirst.org/jwokaty Owned by: https://id.mayfirst.org/jaimev
Priority: Medium Component: Tech
Keywords: Cc:
Sensitive: no


I got a hard error attempting to install mediawiki on peery for http://4sfc-members.mayfirst.org/. I understand it is related to https://support.mayfirst.org/ticket/11878. Could I ask you to remove the web application entry since I cannot delete something that is pending? Also, is there an alternative way that I can install mediawiki on my hosting order?

Change History (6)

comment:1 Changed 21 months ago by https://id.mayfirst.org/jaimev

  • Owner set to https://id.mayfirst.org/jaimev
  • Status changed from new to assigned

I've removed the hard error and the file crated by the failed automated install. I apologize for suggesting this route to you in #12089. I think the best way to go forward is a manual install of mediawiki which is actually not that bad. I can help you work through the basic steps. https://www.mediawiki.org/wiki/Manual:Installation_guide#Summary

Are you able to sftp into your new hosting order on peery?

comment:2 Changed 21 months ago by https://id.mayfirst.org/jwokaty

No problem. I appreciate your help since I need it periodically.

I was able to start and install mediawiki; however, attempting to visit the page for the first time I get an error because it wants to write to a cache. It seems to be resolvable by changing permissions, so I thought chowning group ownership to the process running php (is this root?). I am open to better strategies. Please advise.

The details of the errors are below and here is the link: http://4sfc-members.mayfirst.org/index.php

[5ad03433bbdafd3c56778b40] /index.php MWException from line 118 of /home/members/foodcoop/sites/members.4thstreetfoodcoop.org/web/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.

comment:3 Changed 21 months ago by https://id.mayfirst.org/jaimev

I don't think it's really your permissions that are the problem here. Searching the web for that error suggests it may have to do with the $wgCacheDirectory variable in your LocalSettings.php file.

comment:4 Changed 21 months ago by https://id.mayfirst.org/jaimev

Following the config files comments I've set the $wgCacheDirectory variable to your include directory which is not publicly accessible but writable by your user.

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
$wgCacheDirectory = "/home/members/foodcoop/sites/members.4thstreetfoodcoop.org/users/4sfc-members/members.4thstreetfoodcoop.org/includes/cache";

After the change I ran the command php maintenance/rebuildLocalisationCache.php

The wiki appears to be responding now.

comment:5 Changed 21 months ago by https://id.mayfirst.org/jaimev

  • Resolution set to fixed
  • Status changed from assigned to feedback

comment:6 Changed 20 months ago by automatic

  • Status changed from feedback to closed

No news is good news (we hope)! Given the lack of feedback, we think this ticket can be closed.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.