- login into AWS Management Console and launch the instance (if it's not running).
- Connect to the instance with putty.
- sudo su
- Start Apache and MySQL.
- service httpd start
- service mysqld start
- login into mysql and create a database for Wordpress
- mysql> CREATE DATABASE wpdb;
mysql> GRANT ALL PRIVILEGES ON wpdb.* TO wpuser@localhost
-> IDENTIFIED BY "wpuser-password";
mysql> FLUSH PRIVILEGES;
mysql> exit - Download Wordpress and unpack it.
- cd /var/www/html
wget http://wordpress.org/latest.zip
unzip latest.zip
rm -rf latest.zip
cp wp-config-sample.php wp-config.php - Change the ownership of all Wordpress file to Apache - chown -R apache:apache wordpress
- Open a browser and type in the Wordpress URL. Following the on screen instruction and Wordpress is up and running in no time.
Showing posts with label mySQL. Show all posts
Showing posts with label mySQL. Show all posts
Thursday, December 29, 2011
Install Wordpress over Amazon EC2 instance
LAMP stack has been installed on my Amazon free EC2 instance, now it's time to get something up and running on it so that I test what an Amazon free micro EC2 instance is capable of. I started with a bare bone CentOS instance with and use it as my sandbox for experiencing things. Wordpress would be a good candidate to try. Below are steps I used to install Wordpress 3.3 to my EC2 instance.
Labels:
Amazon AWS,
Amazon EC2,
Apache,
mySQL,
PHP,
putty,
Wordpress
Tuesday, December 13, 2011
Amazon EC2: Install LAMP stack to it
I have talked about creating an Amazon EC2 account, defining access credentials, launching an instance and connecting to it with putty. Now what? The most logical step next is to load some software to it and start experimenting with it. A very practical way is to configure it as a standalone LAMP stack.
- Connecting to you instance with putty. Run command sudo su

Install mySQL server with command: yum install mysql-server mysql
Install PHP with command: yum install php php-mysql
Install other optional php packages if you want.
Start Apache server with command: service httpd start.
To test your Apache and PHP install, go to /var/www/html/ directory and create a file index.php with one line of code:
<?php phpinfo(); ?>
In your favorate browser, enter your instance's public DNS name, something like ec2-##-##-##-###.compute-#.amazonaws.com.
Subscribe to:
Posts (Atom)

