Subdirectory install and database connection woes.
-
Hi all. I’ve searched the install support forum and haven’t found an (simple enough?) answer to my particular “Error establishing a database connection” problem. Heretofore, I had WP1.2 installed in my public_html directory (https://maindomain.tld/wordpress) and all was peaches (and it still works fine.) Now I’m trying to install WP1.5 in the subdirectory to which a new addon domain points. (https://newdomain.tld/wordpress – which is the same thing as https://maindomain.tld/newdomain_folder/wordpress)
I created a new MySQL database and gave all privileges to the db_user I had already created for my first WP. The db_host is ‘localhost’ as the connection strings indicate. So the only things different to my original WP, besides version, are db_name, db_password, and the location of the WP files.
This leads me to believe that the connection error has to do with having WP in a subdirectory. I see in the documentation and in various posts here that that needn’t be a problem. I’ve also seen some posts that indicate that some URLs (or URIs?) in the WP code may need to be changed for this to work, but I could not deduce from said posts where those bits of code might be.
I really would like to keep the new WP in the addon domain’s folder. Any light you could shed (including a pointer to a relevant post I may have missed) would be much appreciated.
- The topic ‘Subdirectory install and database connection woes.’ is closed to new replies.