Installing MediaWiki 1.16.4 on a local Mac with Snow Leopard 10.6.7
** My comments are in this font..
Double check all the Requirements
- Download MediaWiki (current stable version is 1.16.4) ** Done
-
Web server such as Apache ** Check
- Local or command line access is needed for running maintenance scripts
-
PHP version 5.2.3 or later. PHP 5.3.1 is incompatible with MediaWiki due to a bug.
Due to a security issue with PHP it is strongly advised to use PHP 5.2.17+ or PHP 5.3.5+ (see here for more details).
prompt% php -v
PHP 5.3.4 (cli)
-
Database Server
- MySQL 4.0 or later (*)
-
or PostgreSQL 8.1 or later
- Requires PL/pgSQL (contained in contribs)
- Full-Text searching (Native in >=8.3, requires tsearch2 extension <=8.2)
** Check, I have MySQL 5.5.1 and phpMyAdmin
Some users find it helpful to install an additional software package such as phpMyAdmin (MySQL) or phpMyAdmin (Postgres) to help administer the database server.
For image thumbnailing and TeX-support, additional programs are required.
** Deal with those during the install.
(*) - Even though it may not be officially supported yet, MariaDB, is an alternative, a GPL fork of the MySQL code by Monty Widenius, the founder of MySQL, and can also be used by Mediawiki. Debian/Ubuntu repos.
---- Doing the actual install.
1. Create a database to use.
2. Browse to the mediawiki-1.16.4 folder. i.e. localhost/~username/mediawiki-1.16.4
3. Got the Need to Setup MediaWiki first.
MediaWiki 1.16.4 Installation
Can't write config file, aborting
In order to configure the wiki you have to make the config subdirectory writable by the web server. Once configuration is done you'll move the created LocalSettings.php to the parent directory, and for added safety you can then remove the config subdirectory entirely.
To make the directory writable on a Unix/Linux system:
prompt% cd /Users/user/Sites/mediawiki-1.16.4
prompt% sudo chmod a+w config
Afterwards retry to start the setup.
4. My environment checked out. I'm good to go.
5. Add the appropriate user and db settings and click install.
6. I got:
Move the config/LocalSettings.php file to the parent directory, then follow this link to your wiki.
You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.
In the "parent directory" = /mediawiki-1.16.4 run this command.
prompt% cp config/LocalSettings.php .
No need to worry about permissions on that file. Its a Local computer..

Recent comments
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 47 weeks ago
1 year 48 weeks ago