• I haven’t been able to find any information from googling and searching the handbook or forums. My Apache server is running on port 8081. When I set up my word press site through wp-cli, I cannot find at which point I can specify my port.

    When I login, through localhost:8081/wp-login.php it redirects me to localhost:80 instead of localhost:8081.

    The pages for wp config create, wp core install, do not have any port configuring arguments listed.

    • This topic was modified 2 years, 11 months ago by bilowik.
Viewing 1 replies (of 1 total)
  • you would just specify the port in the url

    e.g.

    wp core install --url=localhost:8081 --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com

    as you have already set the siteurl & home to port 80

    you can set them

    wp option set siteurl http://localhost:8081
    wp option set home http://localhost:8081
    • This reply was modified 2 years, 11 months ago by Alan Fuller.
Viewing 1 replies (of 1 total)
  • The topic ‘Specify custom port during installation with wp-cli’ is closed to new replies.