I decided to play around with AWS EC2 and set up a WordPress site on a 64-bit Linux Instance.
I have fully set up the instance with LAMP, installed WordPress and pointed my domain to the server. When I try to access the site http://latesttech.tips I get the Amazon Linux AMI Test Page and the only way to access WordPress is to visit http://latesttech.tips/lttwp.
How can I have the primary domain to point to the “lttwp” directory automatically so this doesn’t have to be done via the URL?
I’m fairly new in the dev world and looked up how to fix, but couldn’t find anything.
Thanks in advance!
You can edit your apache config file to redirect to your lttwp folder.
Usually the configs for apache are in
/etc/httpd/conf
or/etc/apache2/conf
Look for the directory variable. You will need to edit that path at 2-3 place in the config for it to work. Look for thedocumentroot
anddirectory
variables.You can find more info here : http://httpd.apache.org/docs/2.2/configuring.html
Once done, restart the apache server so that it takes new config:
sudo service httpd restart
This is due to your word press folder is not in APACHE DOCUMENT ROOT..for this you have to move your wp folder to apache document root
here is the solution that i found http://geekme.me/2015/10/16/how-to-setup-wordpress-blog-on-amazone-ec2-creating-database-tutorial-4/