Total Pageviews

Friday, July 17, 2015

Setting up Multiple Wordpress sites on EC2

1. Create sub folder with the new site name- in /var/www/html/
2. Copy wordpress folder to the new subfolder
3. Copy index.php to the new sub-folder
4. Go to your phpmyadmin and copy first wordpress database to the new one
5. Edit wp-config.php (inside wordpress folder) with new database name and credentials.

Add virtual host to the file: /etc/apache2/apache2.conf with reference to url

<VirtualHost *:80>                                            
ServerName subdomian.yoursite.com                          
ServerAdmin youremail@email.com                            
DocumentRoot "/var/www/html/thenewsubfolder"                          
</VirtualHost>




No comments: