Mediawiki/Installing
From r00tedvw.com wiki
(Difference between revisions)
Line 10: | Line 10: | ||
==install php & mysql== | ==install php & mysql== | ||
~$ sudo yum install php php-mysql php-gd mysql-server php-xml mysql | ~$ sudo yum install php php-mysql php-gd mysql-server php-xml mysql | ||
+ | |||
+ | ==setup mysql== | ||
+ | make sure mysql is started | ||
+ | ~$ sudo service mysqld status | ||
+ | or | ||
+ | ~$ sudo service mysqld start | ||
+ | setup the basics | ||
+ | ~$ sudo mysql_secure_installation | ||
+ | Set root password? [Y/n] y | ||
+ | Remove anonymous users? [Y/n] y | ||
+ | Disallow root login remotely? [Y/n] y | ||
+ | Remove test database and access to it? [Y/n] y | ||
+ | Reload privilege tables now? [Y/n] y | ||
+ | login to db | ||
+ | ~$ mysql -u root -p | ||
+ | Create mysql wiki user | ||
+ | ~$ mysql> CREATE USER 'wiki'@'localhost' IDENTIFIED BY 'THISpasswordSHOULDbeCHANGED'; |
Revision as of 12:03, 28 April 2014
install apache2
find the package name and install
~$ sudo yum search apache Loaded plugins: security ... httpd.x86_64 : Apache HTTP Server ~$ sudo yum install httpd.x86_64
install php & mysql
~$ sudo yum install php php-mysql php-gd mysql-server php-xml mysql
setup mysql
make sure mysql is started
~$ sudo service mysqld status or ~$ sudo service mysqld start
setup the basics
~$ sudo mysql_secure_installation Set root password? [Y/n] y Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y
login to db
~$ mysql -u root -p
Create mysql wiki user
~$ mysql> CREATE USER 'wiki'@'localhost' IDENTIFIED BY 'THISpasswordSHOULDbeCHANGED';