WordPress.org

Support

Support » Localhost Installs » [Resolved] Using a non standard port

[Resolved] Using a non standard port

  • Can anyone offer any assistance when using a non standard port. I am using WordPress with WAMP Server and while I have WAMP Server running on a different port WordPress won’t find the database even if I give it the port number.

    Any help is much appreciated.

    Thanks Daniel.

Viewing 15 replies - 16 through 30 (of 31 total)
  • Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    OK, what I want to do is get WordPress to run on the port that Apache is running 1024.

    Okay that’s a start.

    First confirm that Apache is working correctly on that port by loading this simple HTML page.

    http://your-intranet-URL-here:1024/readme.html

    If your WordPress installation is installed on the root of that Apache instance running on port 1024 then that will get you the WordPress readme HTML file with “WordPress Version 3.5.1” on top.

    Is that working? That static page has zero dependencies on anything else such as mysql, WordPress, etc.

    OK, the browser can’t find the read me page on localhost:1024/readme.html

    What does this tell me.

    Thanks Daniel.

    If I got to:-

    http://localhost:1024

    I get the WAMP Server page

    Thanks Daniel.

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    OK, the browser can’t find the read me page on localhost:1024/readme.html

    That tells you that the Apache web server running on your PC (it is on your PC right?) doesn’t have the WordPress files where you want/meant them to be.

    This is all on localhost meaning your Windows PC? If so have you considered using http://www.instantwp.com/download/ instead?

    InstantWP is just fire and forget and works via http://localhost:4001/

    Yes, it’s not port 1024 (which is not a good choice for historical reasons) but it really does just work.

    esmi

    @esmi

    Forum Moderator

    I use EasyPHP on port 8080 myself. EasyPHP is really easy to set up and I can have a server installed and WP running in about 30 mins.

    Jan, it is actually running on the file server (Windows 2003).

    I have copied the WordPress files to:

    c:\wamp\www\wordpress

    If this the incorrect place to have them? When I did a test run on my PC, which can use port 80, it worked fine so I thought I would just reproduce the installation.

    What is Instant WordPress? Is it a WordPress installation tool?

    Thanks Daniel.

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    *Jan makes note to play with EasyPHP and thinks he doesn’t spend enough time trolling Esmi’s site.*

    Jan, it is actually running on the file server (Windows 2003).

    Try http://your-intranet-URL-here:1024/wordpress/readme.html then. Also do you want to use localhost or the server fully qualified domain name?

    Tried this:

    http://localhost:1024/wordpress/readme.html

    And I can see the read me, the 5 minute install.

    I would hope that the other PC’s can use the Intranet as:

    http://server_address:1024

    Thanks Daniel.

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    I would hope that the other PC’s can use the Intranet as:

    http://server_address:1024

    That’s a matter of re-configuring your web server. WordPress doesn’t mind where it is located as long as it can be loaded.

    Does http://server_address:1024/wordpress/readme.html work?

    If it does then you can either move the WordPress files into the root from c:\wamp\www\wordpress to c:\wamp\www or reconfiguring your WAMP to use c:\wamp\www\wordpress as it’s root.

    Does http://server_address:1024/wordpress/readme.html work?

    Yes, that does work but the install still fails.

    Thanks Daniel.

    How would I change the WAMP root?

    Thanks Daniel.

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    I’ve no idea at all. This is a WordPress support forum. 😉

    Where did you download that WAMP from? This link may have a doc to help you.

    http://forum.wampserver.com/list.php?2

    I am certain that this is a WordPress problem and not a WAMP problem. I have installed WAMP and WordPress on may systems but always on port 80. This is the first time I am trying it on a different port.

    I have managed to find out how to change the WAMP root directory and now when I try to run the install I get this message:

    <strong>Can’t select database</strong>
    We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.
    
    Are you sure it exists?
    Does the user Daniel have permission to use the wordpress database?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?
    If you don't know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

    Thanks Daniel.

    Moderator Jan Dembowski

    @jdembowski

    Volunteer Mod. & Brute Squad

    I am certain that this is a WordPress problem and not a WAMP problem.

    It’s a mysql account problem. If the account “Daniel” had the correct permissions then the install script would have created the tables for you.

    Try fixing your Daniel mysql account or create a new mysql user with the correct permissions for that database.

    http://codex.wordpress.org/Installing_WordPress#Using_the_MySQL_Client

    Jan, many thanks for your patience and perseverance. I have resolved the problem. I needed to change the WAMP root to point directly at the WordPress folder and then when I gave the WAMP details to WordPress I needed to forget about the port number and just use “localhost”

    Thanks Daniel.

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘[Resolved] Using a non standard port’ is closed to new replies.