cancel
Showing results for 
Search instead for 
Did you mean: 

mediawiki f9 install

N/A

mediawiki f9 install

Hi,
I wish to setup mediawiki in my f9 ccgi webspace.
Can anyone advise me how to make the "config" directory writable by the web server?
The installation guide - http://meta.wikimedia.org/wiki/Installing_help - states:
Quote
A good, secure way to do this is to see what group your web server process belongs to. On Debian, for example, this is www-data. Usually the web server process is "apache" and in order to see which groups the user "apache" belongs to you can run

groups apache (or groups <your_web_server_username>)

So you need to change the group of all files to www-data, and give group write access to the config directory:

cd /var/www/mediawiki-xyz
chown -R root:www-data *
chmod -R o-rwx *
chmod -R g+rw config


Can anyone advise me how best to proceed?
Cheers,
David
8 REPLIES
N/A

mediawiki f9 install

chmod it so that The user has write access (eg 750)
N/A

mediawiki f9 install

Thanks Colin. So far so good!
What about mediawiki's advice to change group ownership of files?
Cheers,
David
N/A

mediawiki f9 install

It shouldn't be necssary.
N/A

mediawiki f9 install

I have now logged into the index.php config page and received a security warning:
Quote
# Warning: PHP's register_globals option is enabled. MediaWiki will work correctly, but this setting increases your exposure to potential security vulnerabilities in PHP-based software running on your server. You should disable it if you are able.

Is it possible to switch them off, and if so how?
Thanks for the help so far,
David
N/A

mediawiki f9 install

Unfortunately, I am fairly sure this isn't possible.
N/A

mediawiki f9 install

Unfortunately, I am fairly sure this isn't possible.
N/A

mediawiki f9 install

My MediaWiki site is now up and running - thanks for the feedback so far!

Is the command
Quote
<IfModule !mod_php4.c>
supported? A security recommendation from http://meta.wikimedia.org/wiki/Security_Checklist pointed out that if php breaks, my LocalSettings.php file my be served as a regular file, thus providing the world with my security details!
The proposed fix was given as follows:

Quote
<IfModule !mod_php4.c>
<Files ~ '\.php$'>
Order allow,deny
Deny from all
Allow from none
</Files>
<Files ~ '\.phps'>
Order deny,allow
Allow from all
</Files>
</IfModule>

However when Firefox is pointed at the home page it generates:
Quote
Parse error: parse error, unexpected '<' in /files/home3/davidc/goethe/LocalSettings.php on line 12

(This is line 1 as given above).
Apparently syntax differs with different versions of Apache and php - am I right that php is version 4 and is served by Apache 1.3?
Cheers,
David
ps Can anyone recommend an online reference for Apache/php/mysql?
N/A

mediawiki f9 install

Those commands would actually go in a .htaccess file, rather than the PHP file, but they won't work on the CGI platform.

It's on Apache 2, something or other not 1.3