mediawiki installation - database and file permissions

From thelinuxwiki
Revision as of 13:14, 24 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


preparing a database via CLI

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+
2 rows in set (0.00 sec)
mysql> create database mediawiki_db;
Query OK, 1 row affected (0.02 sec)
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON database_name.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.01 sec)
mysql> GRANT ALL ON mediawiki_db.* TO 'mwadmin'@'localhost' IDENTIFIED BY 'abc123';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye


ownership and permissons

# chown -R apache:apache <PATH_TO_MEDIAWIKI_DIRECTORY>
# chmod 700 <path to LocalSettings.php> *** not sure of permissions