I successfully installed WordPress 3.5.2 on my Amazon EC2 Amazon Linux AMI micro instance. I was able to log into the admin backend, and view my front end blog post.
However, after stopping and restarting the micro instance (in an effort to minimize the charges), I was given a new Public DNS address. I restarted the httpd and mysqld services. When I tried to access my admin backend with this new URL, I kept getting redirected to the previous Public DNS which no longer exists
http://ec2-xx-xxx-x-xxx.compute-1.amazonaws.com/mysite/wp-admin
I cleared Chrome’s cache. I could not find the site url among the configuration files. I’m not sure what to do. Any assistance will be appreciated. Thanks in advance.
WP-Admin will redirect to the
siteurl
option set in thewp_options
table. This is generally the row with ID1
, but you can get it with:You can update it with:
To make the accepted answer more complete, i suggest you all run the following mysql queries:
and an altered version of the one given in the accepted answer:
Adding the answer with more details. This will be helpful for people who are new to MySQL.
From the command window access root of MySQL.
Then, choose the database you have already created(wordpress is my dbname):
Next, execute the command:
Which will show what is in the table as given below.
Finally, modify the field with below command.