WordPress.org

Ready to get started?Download WordPress

Forums

install for subdomain (15 posts)

  1. Create the subdomain and install WP into it as if it were a TLD (top level domain). You should be fine.
    Installation using CPanel X
    - Bryan

  2. adb
    Member
    Posted 9 years ago #

    I've uploaded all the necessary files, created another database, and changed the wp-config.php. I get the following error:

    Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    * Are you sure you have the correct user/password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?

    I've checked for whitespace also. What could I be missing?

  3. moshu
    Member
    Posted 9 years ago #

    Something is not correct in your config.php file. Or, you didn't match the db with an user. Check again the config file!

  4. adb
    Member
    Posted 9 years ago #

    Since I'm using a subdomain, where should I house all the files. Is there a specific location?

  5. moshu
    Member
    Posted 9 years ago #

    In your subdomain :)
    Depending on whether is there a redirect for the subdomain or not (CPanel) you have 2 options:
    1. If there is a redirect set up, then opening your FTP client you see the subdomain as a directory.
    2. If there is no redirect, then you have to set up the FTP detail when creating the subdomain.
    Upload the WP files in either case in the subdomain (directory).

  6. adb
    Member
    Posted 9 years ago #

    I'm using cPanel. I'm not sure what yo mean. How would I set up a FTP detail?

  7. adb
    Member
    Posted 9 years ago #

    I'm all set. Thanks for your help!

  8. moshu
    Member
    Posted 9 years ago #

    I love when people never read what is in front of them :)
    Well, when you create a subdomain, it says:
    Note: If you wish to grant virtual ftp access to this subdomain, just create an FTP user with the same username as the subdomain base name that is listed inside the () above.
    So, after having created the subdomain, you remember/write down the (name), then you go to the main CPanel page where under FTP you'll see Manage accounts...
    click :) and create the FTP user that will be able to upload all kind of stuff to your subdomain. Of course, the "user" will be yourself, it's just a technicality. Then with all the data (i.e. FTP user and pw) in your mind or on a paper, open your FTP client and start uploading the WP files...

  9. moshu
    Member
    Posted 9 years ago #

    Oh, I see you. You've done it.
    (anyway at least the first line of my post is always valid, LOL)

  10. Anonymous
    Unregistered
    Posted 9 years ago #

    I guess I'm not all set. I was able to login to the subdomain just fine. When I tried to login to my domain I got this error with the login fields:

    Warning: Cannot modify header information - headers already sent by (output started at /home/gldnspce/public_html/wp-config.php:35) in /home/gldnspce/public_html/wp-login.php on line 373
    Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-config.php:35) in /home/mysite/public_html/wp-login.php on line 375
    Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-config.php:35) in /home/mysite/public_html/wp-login.php on line 377
    Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-config.php:35) in /home/mysite/public_html/wp-login.php on line 379
    WordPress

    I get the same error on the subdomain also. Both sites are viewable.

  11. adb
    Member
    Posted 9 years ago #

    and when I enter login info it says, "the password field is empty."

  12. moshu
    Member
    Posted 9 years ago #

    It seems to be a white space problem...

  13. adb
    Member
    Posted 9 years ago #

    and that would cause problems on both sites? I never touched the main domain wp-config.

  14. adb
    Member
    Posted 9 years ago #

    I don't get how it could be a white space problem when I didn't have any trouble logging in once the installation was complete and not being able to login in to the main domain either. Any suggestions anyone?

  15. adb
    Member
    Posted 9 years ago #

    Problem solved. It was white space.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.