PDA

View Full Version : Wordpress install on primary domain



epatnoe
11-21-2007, 08:03 AM
I have several sub-domains at HostMonster under my main domain.

I installed WordPress on the sub-domains /home/xxxx/public_html/<sub-domain>/

Now I want to install WordPress for my main domain. When I try I get an error saying the public_html directory already exists needs to be removed.

Is there a way to install in /home/xxxxx/public_html/my_domain and not have the URL be http://my_domain.com/new_directory?

In a previous post I found:

Add this to your .htaccess file in public_html. Replace 'yourdomain' with your domain.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !^/yourdomain/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /yourdomain/$1
RewriteCond %{HTTP_HOST} ^(www.)?yourdomain.com$
RewriteRule ^(/)?$ yourdomain/index.php [L]

At the risk of sounding completely dumb where is the htaccess file? I don't see it in public_html.

shadmego
11-21-2007, 12:12 PM
Are you trying to install Wodpress through Fanstastico? If so, and you want to install it in your public_html folder, DO NOT put public_html in the install folder, leave that entry blank. You only need to put something there if you are installing a script into a directory that isn't public_html.

As for the question about the .htaccess file, when you go to te File Manager, make sure you check the box that says "Show hidden files and folders" in the popup window.

Also, a subdomain does not have the URL you specifed (http://my_domain.com/new_directory). Though you can use this URL to get to a subdomain, you can also use http://new_directory.my_domain.com.

The URL you specified can also be used if you simply created a regular folder, not a subdomain.

Hope that didn't confuse you more ... and I'm sure someone will be by to correct any mistakes I made!

~regards

epatnoe
11-21-2007, 01:15 PM
I am using Fantastico
when I leave the directory blank I get an error saying the public_html directory already exists needs to be removed.
I just want to install this on my main domain, disregard my subdomain babble.
I will check the box that says "Show hidden files and folders" in the popup window and try the htaccess work around.

Thanks shadmego

epatnoe
11-21-2007, 03:39 PM
Well I added the code and NO LUCK.
same error:


Install WordPress (2/3)


The installation can not be completed:

- You chose to install in the main directory of the domain heartlandmarket.us, but there are conflicting filenames, therefore we can not proceed. Following filenames already exist in the main directory of the domain heartlandmarket.us (path="/home/XXXXX.com/public_html/").You must manually remove these files before proceeding with auto-installation:
fantversion.php

Why can't I install on the main directory?

shadmego
11-21-2007, 03:49 PM
Have you installed other programs with Fantastico in your public_html directory? This error is telling you that Fantastico thinks there are other installations somewhere, as evidenced by the duplicate file, "fantversion.php". If you know for sure there is nothing in your public_html folder that you need, go ahead and delete that file from your public_html directory and try to reinstall.

~regards

epatnoe
11-21-2007, 03:54 PM
Yes I have installed WP for 3 domains in the public_html (see attachment). So yes I do need everything in the public_html.

shadmego
11-21-2007, 04:05 PM
When you installed WP for your other domains, which I will assume are addon or subdomains, WP was installed in THOSE folders, not the the actual public_html folder. Unless you actually installed WP or another Fantastico-installed program directly into your public_html folder, (not one of your other directories), then you can delete the file mentioned above. Don't delete ANYTHING other than that fantversion.php file.

~regards

epatnoe
11-21-2007, 08:53 PM
Thanks again. This will have to wait until after T-giving. My family can't stand when I SPEND HOLIDAYS ON THE COMPUTER!
I know what happened, If I remember I did a WP install awhile back, and was pretty sloppy cleaning it up. I eventually did an uninstall...blah blah blah. I bet the fantversion.php file was neglected.
Have a great Thanksgiving and thanks for all your help.
Eric