5 Minute Super Guide:
Main Install
Make sure CentoOS is upto date:
yum updateInstall Apache/Mysql/PHP/Unzip/Wget:
yum -y install mysql-server httpd php php-mysql unzip wgetEnable Apache and MySQL
chkconfig httpd on
chkconfig mysqld onStart 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.zipExtract WordPress
unzip latest.zip
rm latest.zipMove 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/.htaccessLet Appache Edit .htaccess for Permalinks:
nano /etc/httpd/conf/httpd.confAnd edit the Section:
<Directory "/var/www/html">And Change Allow ovride to:
AllowOverride ALLEnable Multiple Sites:
define('WP_ALLOW_MULTISITE', true);
No comments:
Post a Comment