Magento - where, what, how
If the cloud hosting didn't provide a public DNS name then you can use IP address to access your server and check it:
If you have defined the custom DNS alias during the deployment, then use it like:
Note that DNS record should point to the server public IP address. To prevent problems with DNS you may use Elastic IP, assign it to your instance and point your DNS record to it.
Where Magento is installed?
Deploy4Me would set Magento home to
Magento configuration is located at
Magento is installed on Nginx web server. The configuration of Nginx server can be found at
$(which nginx)/sites-available/magento.conf or /etc/nginx/sites-available/magento.conf
How to stop/start/restart Magento?
Nginx is deployed as a service, so use one of the Linux commands:
service nginx stop
service nginx start
service nginx restart
Magento is not available after restart of the server on AWS. What to do?
Commonly the problem not appears but sometimes Amazon Web Services EC2 do not preserve the public DNS names for servers after restart. This means that you would rather reconfigure Nginx to use a new DNS name generated by AWS or configure a permanent DNS name for your server using Elastic IP address. To configure a permanent DNS name here is the step by step instruction:
- Change the base URL in Magento configuration. The easiest option is to temporary resolve old DNS to new IP and change a base URL in Magento admin. For Windows in file
put the new IP, old hostname and save. You may need to start Notepad as Administrator first:
# (New Ip) (Old hostname) 52.16.256.256 ec2-52-18-239-256.eu-west-1.compute.amazonaws.com #for example
- Now you can open your old hostname:
- Now you can change the URL on page System -> Configuration -> General -> Web
- Allocate an Elastic IP via AWS EC2 console
- Associate your address with the instance using context menu on Elastic IP
- Configure your DNS to point on that public IP address with a new DNS record. You would possibly wish to create a new A record in the DNS configuration.
- If you provided the DNS name before deployment then skip this step, else connect to the server and make sure that in Nginx configuration under
you have a valid name of a DNS record. Change it (for example using vim) and reload the Nginx
service nginx restart
- Make sure your Magento is started and access the URL in a browser