I am trying to change the port of wordpress to 9000. I am using LAMP server. I tried by changing the wp_options table,the settings options and changing in the wp-config.php file. It's showing unable to connect.


@annie you should change both siteurl and home option_name values to e.g http://localhost/wordpress:9000

  • have tried that but didn't work – annie Aug 30 '17 at 9:58
  • Please check your apache logs and post the latest here – vagelis Aug 30 '17 at 10:06
  • only in the siteurl and home we need to change or anywhere else? will post my apache log soon – annie Aug 30 '17 at 10:19
  • That is what the codex says. codex.wordpress.org/Changing_The_Site_URL – vagelis Aug 30 '17 at 10:28
  • 1
    i could change the port by altering the listening port of apache from 80 to 9000 and by changing the siteurl and home but not sure if its the right way. – annie Aug 30 '17 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.