PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 1, 2022

[FIXED] LAMP can't access WordPress website

 March 01, 2022     lamp, linux, wordpress     No comments   

Issue

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.



Answered By - Mahmoud Metwally
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing