5 Minute Super Guide:
Main Install
Make sure CentoOS is upto date:
yum update
Install Apache/Mysql/PHP/Unzip/Wget:
yum -y install mysql-server httpd php php-mysql unzip wget
Enable Apache and MySQL
chkconfig httpd on
chkconfig mysqld on
Start Apache and MySQL
/etc/init.d/mysqld start
/etc/init.d/httpd start
Set root password for MySQL (IMPORTANT!)
mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("NEWPASSWORD") where User='root';
mysql> flush privileges;
Setup WordPress Database
mysql> CREATE DATABASE wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
mysql> FLUSH PRIVILEGES;
mysql> quit;
Download WordPress
cd /var/www/html
wget http://wordpress.org/latest.zip
Extract WordPress
unzip latest.zip
rm latest.zip
Move WordPress to Root Directory
mv wordpress/* ./
rmdir wordpress/
Give WordPress permissions to write
mkdir wp-content/uploads wp-content/cache
chown apache:apache wp-content/uploads wp-content/cache ./
Open and configure WordPress
http://your-server-ip-or-hostname/
In the Config enter your SQL Username ‘wordpress’ and the password you set earlier.
Click Save and your all done!
Fixes permissions for Permalinks:
chown apache:apache /var/www/html/.htaccess
Let Appache Edit .htaccess for Permalinks:
nano /etc/httpd/conf/httpd.conf
And edit the Section:
<Directory "/var/www/html">
And Change Allow ovride to:
AllowOverride ALL
Enable Multiple Sites:
define('WP_ALLOW_MULTISITE', true);
No comments:
Post a Comment