WordPress Installation and Configuration
Wordpress on LAMP[edit | edit source]
I have tested the following steps on Amazon EC2 with Ubuntu 14.04
Here is a summary of command lines to install LAMP technology stack (before installing wordpress):
1: Install LAMP technology stack
#> sudo apt-get update -> update package repositories information
#> sudo apt-get upgrade -> install package upgrades
#> sudo apt-get install apache2
#> sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
#> sudo apt-get install mysql-server php5-mysql
#> sudo apt-get install phpmyadmin
In case thing went wrong, remove installed package and its configuration file(s)
#> sudo apt-get purge package_name
Once the stack is installed here is the steps to complete wordpress installation:
2: Install WordPress
sudo mkdir /var/www/wordpress
- Move zip file into /var/www/wordpress and extract.
sudo cp 000-default.conf wordpress.conf
- Modify wordpress.conf so apache2 knows to forward any request or your domain to the wordpress app folder.
sudo a2ensite wordpress.conf
sudo service apache2 restart
- Go to PhpMyAdmin via your browser by youdomain.com/phpmyadmin . Create a new user âwordpressâ and check to create the corresponding database.
sudo cp wp-config-example.php wp-config.php
- Modify config file to add your MySQL wordpress database information.
sudo chown -R www-data:www-data /var/www/wordpress
sudo chmod -R 755 /var/www/wordpress/
- Open browser and type in your domain. You should see the WordPress installation page. Follow the instruction and you are done!
Installation WP in MAMP[edit | edit source]
It's quite simple to install wordpress in MAMP.
You have to follow a few simple steps:
1 - Download MAMP from here, it's free and you probably don't need the pro version.
2 - Install on your PC or Mac.
3 - Run the program -> you will see a little window open, from there you can set MAMP. At the moment leave all the pre-set values, for the first installation you don't need to complicate your life! In the future remember it's good practice to change your password and user name for the MySQL database. By default it's root.
4 - Click on "Open webStart page" - here you can see your data info like password, admin name and also info about MAMP.
5 - Click on tools -> phpMyAdmin and you will be redirected to the database page.
6 - Make a new database, click on new and give it the name you want, you will need this name later.
7 - Now look for a folder call "htdocs", it's inside the MAMP folder on your PC or Mac. If you use a Mac you need to one the application in Finder and open the app using "show package contents". Inside you will find the
8 - Take the Wordpress folder and copy it inside the htdocs, you need put inside all folder, no put the zip file. Rename the folder, you can call with your project name.
9 - Comeback to the window of MAMP in your browser, and click on "My Site" - this will open a URL call
http://localhost:8888 (8888 is the default port, you can change it if you want). Here you can see the folder you have put inside the
htdocs folder, click on the name you have given to the folder.
10 - Now start a normal installation of WordPress, you need to use the Admin and Password. By default it's
root, and use the name of the database you have created before.
11 - Run the installation and finish!
You will see your website on
http://localhost:8888/namefolder Of course you need keep MAMP running.
This article is an extract of the original Stack Overflow Documentation created by contributors and released under CC BY-SA 3.0. This website is not affiliated with Stack Overflow