Search code examples
linuxwordpresslamp

LAMP can't access WordPress website


I've installed LAMP under Ubuntu 14, placed a copy of my WordPress folder files under the /lampstack-5.6.30-0/apache2/htdocs/wordpress/ folder, started LAMP Apache, MySQL...yet each time I try to reach localhost/wordpress/ I get routed automatically to localhost:8888/wordpress/ and get error message

This site can’t be reached
localhost refused to connect.

I've tried many times to go to localhost:8080/wordpress or localhost/wordpress but I get routed back to localhost:8888/wordpress and see the error message shown above. Can someone please tell me what I might be missing here/ doing wrong? Thanks


Solution

  • Such problem can possibly happen when you move your wp site folder from one folder to the other, so in term of the URL, you need to check your wp DB, specifically the wp_options table [ siteurl, home ] fields, also the wp_posts table, the [ guid ] field.

    Making sure the above two tables fields are pointing to localhost:8080/wordpress will solve at least the URL problem.