Quick installation of Apache, PHP and WordPress on Ubuntu LTS. I suggest the manual installation of WordPress as it allows for most recent version.
Apache and PHP
apt-get install apache2 php5 php5-gd php5-mysql
Installing WordPress
This is a manual install process of WordPress which makes it more functional for clients. Download WordPress package into tmp directory.
cd /tmp/ wget http://wordpress.org/wordpress-4.0.1.tar.gz tar -xzvf wordpress-4.0.1.tar.gz
Go to MySQL and create the database to be used. The database name is this example is rtvtully1:
mysql -u root -p
mysql> CREATE DATABASE rtvtully1;
mysql> GRANT ALL PRIVILEGES on rtvtully1.* TO "wordpress"@"localhost"
-> IDENTIFIED BY "*******";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> EXIT
Bye
Move the WordPress folder to the www folder and set permissions to be owned by www-data.
mv /tmp/wordpress /var/www/wordpress chown -R www-data /var/www/wordpress
Run the install script by visiting the site (eg. http://localhost/wordpress) and fill in the previously configured details.
Database Name: rtvtully1 MySQL User: wordpress MySQL Password: ********** Database Host: localhost Table Prefix: wp_
Set admin login details for wordpress content management via HTTP (eg. http://localhost/wordpress);
Site Name: RTV - Tully 1 User: admin Password: ********* Contact: IT Department
And that should complete the WordPress setup.
