Red Hat Bugzilla – Bug 480509
MediaWiki fails setup
Last modified: 2009-07-31 13:37:55 EDT
Created attachment 329292 [details]
This is the text from the setup including the error.
Description of problem: When I attempt to setup MediaWiki on a fresh install of Apache and MediaWiki I get the following error:
Warning: fopen(/var/www/wiki/config/LocalSettings.php) [function.fopen]: failed to open stream: Permission denied in /var/www/wiki/config/index.php on line 1115
Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...
Version-Release number of selected component (if applicable): mediawiki-1.13.3-42.fc10.x86_64
How reproducible: Always
Steps to Reproduce:
1. Complete the setup page.
2. Select the "Install MediaWiki" button at the bottom
3. See Failure
Actual results: Get permission error
Expected results: All works
Additional info: I tried to copy and paste the information below the error into the LocalSettings.php but the wiki either comes up blank (nothing on the page) or it tells me that I have to do the setup again.
I believe this *might* be an SE Linux problem.
As root, try:
Does it return "Enforcing", or "Permissive"? If the former (Enforcing), try running this as root:
# setenforce Permissive
Then, re-visit the config URL and try again. This worked for me, and if this is your problem, the designer needs to include an SELinux config with the package.
Let me know how you go.