• Resolved dowsp

    (@dowsp)


    Hello

    I managed to load a wordpress blog to my host account and it
    has the same name as my MAIN Domain..

    so as an example it looks like this..

    so its https://www.maindomain.com/blog

    I also have a few other dormain names on my same host account,

    eg https://www.domain2.com …….. https://www.domain3.com etc

    I then tried to create a word press blog for another website dormain 2

    I managed it, BUT the 2nd new Domain didnt read as I want.

    It reads https://www.maindomain.com/domain2/blog

    My initial Main Dormain is in my public_html folder

    I also THOUGHT that I had to place my ADD ON 2nd and 3rd dormain names that I paid for and set up in the public_html folder.

    When I FPTd the blog I placed it in a new folder within my domain2 folder…. and I thought that I had done it ok so that it would read the blog as https://www.domain2.com/blog

    Can anyone advise me how I can set up other blogs in my host account and get them to read the dormain OK and NOT include the MAIN dormain in front of it…

    I am not sure IF maybe I should have placed my 2nd domain in another folder other than within public_html

    I also think that I now need to uninstall the blog in domain2

    Can any one explain how I do this.

    I also tried to do a 3rd domain using fantastico in c panel.

    BUT it didnt seem to allow me to place the files in one particular folder… some were in domain3 folder mixed with other files such as my domain3index.html NON BLOG files.

    I also wonder does using fantasico allow you to create a blog JUST with the Domain name you want and NOT to include the main domain in front of it.

    IF SO WHICH OPTION SHOULD I CHOOSE.

    on part 1 it says the following option.
    I had selected Install on domain. but I wonder if I had selected
    Install in directory that it may have missed of the main domain infront of the new domain.

    ———-

    Install on domain

    Install in directory

    Leave empty to install in the root directory of the domain (access example: https://domain/).
    Enter only the directory name to install in a directory (for https://domain/name/ enter name only). This directory SHOULD NOT exist, it will be automatically created!

    Many thks in advance.

    Dowsp

Viewing 15 replies - 1 through 15 (of 21 total)
  • I confess I haven’t done this, preferring to run each domain from its own account.

    If they’re add-on or parked domains, through cPanel, you may want to check out:

    https://www.cpanel.net/support/docs/11/cpanel/domains_addon.html
    https://www.cpanel.net/support/docs/11/cpanel/domains_parked.html

    Thread Starter dowsp

    (@dowsp)

    Hi sewmyheadon,

    Thks for the links,

    I will check them out.

    I can see that it refers to cpanel and adding a new dormain to the host account, but I am not sure if it will apply to adding a blog.

    I did try and read some of the help files on wordpress but I could find exactly what I wanted to know on my initial look.

    I may have to try a few things..

    I would like to know though if Fantasico is a better way to add a a blog than just FTP which is slower.

    I am not sure which option on Fantasico to use though as ..

    there was one option to install on domain and another to install in directory.

    the 2nd option (install in directory.) it had text saying leave empty to install in root directory of the domain.
    (access example : https://domain/)

    Enter only the directory name to install in the directory.
    (for https://domain/name/enter name only).

    it says this directory should NOT exist .. it will be automatically created !

    I am not fully sure what this means.

    I was hoping one option would allow me to put the blog on my site so that my domain will like for eg read https://www.abc.com/blog and not

    https://www.maindomain.com/abc/blog

    IF anyone is certain if this is one of the options Id appreciate confirmation

    cheers dowsp

    I’ll leave Fantastico out of the equation for now.

    Assuming you have domain1.com as your main domain, and domain2.com as your Add-on domain. Also assuming you have a folder called public_html/domain2 that is the web-root folder for domain2.com.

    I’d upload WordPress twice so that you have public_html/wordpress and public_html/domain2/wordpress.

    I’d create two databases and configure the wp-config.php file for each of your two domains. So you would have public_html/wordpress/wp-config.php and public_html/domain2/wordpress/wp-config.php.

    Then I’d browse to domain1.com/wordpress/wp-admin/install.php and install WordPress. Then I’d browse to domain2.com/wordpress/wp-admin/install.php and install WordPress for that 2nd domain.

    Then for each blog I’d login, access Settings->General, and delete the /wordpress off the end of Blog address (URL). Leave the WordPress address (URL) alone. Then log-out!

    Then I’d upload the following index.php into public_html and public_html/domain2

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wordpress/wp-blog-header.php');
    ?>
    Thread Starter dowsp

    (@dowsp)

    Hi Michael

    Thank you for your reply and advice.

    In your comment

    Also assuming you have a folder called public_html/domain2 that is the web-root folder for domain2.com.

    I am not sure when you suggest that I perhaps should have a folder called public_html/domain2 if this should be a seperate folder offered by my host account or IF I have to create it.

    I assume you mean that I should have created a folder within public_html with my addon dormain… if so yes I have done this..
    I will try and follow your instructions.

    As far as I know I did as you suggest, BUT I also created another folder within the addon folder called blog and thats where I placed the wordpress blog files using FTP…

    Someone else recently said to me to only place the files in the addon folder and NOT in the blog folder inside addon2 folder.

    IF you dont mean this then I wondered if you meant this.

    when I log in to my host account and go into C panel in lunar pages, and If I recall (without logging in to recheck) and click on file manager.. it then takes me to a series of folders… one is public_html and there are guessing about 10 other folders… another I think is called addons.

    but there is no 2nd folder called public_html..

    I can create new folders within public_html and I had done so for my other dormain names so far… These folders contain the contents for my other dormain names.. these other dormains were bought through lunar pages and IF I recall then created in cpanel addon dormains
    to ensure that they would work without indicating the main dormain in front of the addon one.

    I am NOT sure if I can create a seperate public_html2 folder.

    Out of curiousity have you used fantastico and had success with it ?

    I am curious to know if you can get it to work ok and still show the blog as the name one wants and not have the maindormain in front of it.

    thank you

    Dowsp

    I use the configuration I described above for multiple domains.

    I don’t use Fantastico to install but don’t know why it would would.

    Please talk to your host about how to configure multiple domains on your account, and once you’ve got that worked out, the instructions I described above should make more sense.

    Thread Starter dowsp

    (@dowsp)

    Hi Michael,

    I just tried to follow your instructions as well as the following for a 3rd domain. I just wondered if maybe theres a way to try and re install so that I can get another password.. see my description below.

    I did not manage to get my 2nd and 3rd blog set up successfully for my domain2 and domain3 .

    I tried on the domain3 to upload the blog files using ftp directly into the folder that has my websites index.html file in it..

    On this blog I cannot seem to get the password to work when I try to log in on the blog .. ( also I tried to request my password in the forgot password option and it just goes to an irrelevant page..so I am unable to re confirm it)

    I am concerned that the index.php file may get confused with the websites index.html file which is the main dormain for that folder / site

    I am Very surprised that I shouldnt have put the blog into another folder within the domain3 websites main folder which are BOTH within the main public_html folder. It doesnt make sence to me that for my main websites dormain which is domain1 that for this I placed the blog files for it into a seperate folder called blog..

    I just rechecked to see if I had installed it for the domain site that I have just reuploaded again only into this sites index.html folder this time ..

    I thought maybe I could see if it was installed and I got a message saying as follows.

    You appear to have already installed WordPress. To reinstall please clear your old database tables first.

    I had installed it before ONLY within a folder called blog inside the sites index.html folder for domain3.

    I was thinking of trying to reinstall it and get a new password… but the message above says I need to clear the old data base tables first.

    I wonder if you know how to do this and if I can reinstall it. and start again.

    thk you

    Dowsp

    Thread Starter dowsp

    (@dowsp)

    Hi Michael

    I have tried quite a few other things that a few other persons had advised me…unfortunately with no luck so far.

    I just referred back to your last post.

    I am not sure what you mean by the following.

    Then for each blog I’d login, access Settings->General

    I am not sure where Id access ‘Settings’ and ‘General’ in my host account which is Lunar pages.. I assume your host account is a different one. unless you refer to the cpanel which is where I thought that settings general.. may be. or is this where the folders for www and public_html are listed.or within public_html

    OR are these individual files within the wordpress files.

    in the wordpress files I can find only find seperate files.. one is wp-settings.php in the files listed within my blog folder..

    the other is options-general.php in the wp-admin folder.

    one other is in the wp-includes folder ..general-template.php

    I cannot find one called ‘settings general’ anywhere.

    I wonder if you could try and clarify the details please.

    Best regards

    Dowsp

    Then for each blog I’d login, access Settings->General, and delete the /wordpress off the end of Blog address (URL). Leave the WordPress address (URL) alone. Then log-out!

    Then I’d upload the following index.php into public_html and public_html/domain2

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    Thread Starter dowsp

    (@dowsp)

    Hi Michael,

    Sorry I had initially misunderstood your comments.

    I was thinking that you referred to something directly in my host accounts settings, BUT I NOW think that you mean within my wordpress blogs settings on dashboard within each blog.

    I THINK that I have now managed to do what you said..

    I was able to change the relevant details within my blogs dash board settings general tab and alter the dormain to just read the 2nd domain name only.. so it now only reads https://www.domain2.com/blog and not
    https://www.domain1.com/domain2/blog.

    can I ask what was the other code used for that you suggested that I add in to the files code ? I am not clear why I need that ?

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    Many thanks for your advice.

    cheers Dowsp

    Then for each blog I’d login, access Settings->General, and delete the /wordpress off the end of Blog address (URL). Leave the WordPress address (URL) alone. Then log-out!

    Then I’d upload the following index.php into public_html and public_html/domain2

    marylutz

    (@marylutz)

    Assuming you have domain1.com as your main domain, and domain2.com as your Add-on domain. Also assuming you have a folder called public_html/domain2 that is the web-root folder for domain2.com.

    I’d upload WordPress twice so that you have public_html/wordpress and public_html/domain2/wordpress.

    I’d create two databases and configure the wp-config.php file for each of your two domains. So you would have public_html/wordpress/wp-config.php and public_html/domain2/wordpress/wp-config.php.

    Then I’d browse to domain1.com/wordpress/wp-admin/install.php and install WordPress. Then I’d browse to domain2.com/wordpress/wp-admin/install.php and install WordPress for that 2nd domain.

    Then for each blog I’d login, access Settings->General, and delete the /wordpress off the end of Blog address (URL). Leave the WordPress address (URL) alone. Then log-out!

    Then I’d upload the following index.php into public_html and public_html/domain2

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    Hi Michael,
    I’m following your instructions above to add a 2nd domain. I’m running into the issue of wp-config for both files; eg. public_html/wordpress/wp-config.php and public_html/domain2/wordpress/wp-config.php

    I went in cPanel and created a 2nd SQL database for domain2, and changed the database name and password in public_html/domain2/wordpress/wp-config.php. But WP can’t establish a connection with my database for my original blog (domain1) and I get the following 404 error for domain2:

    Not Found

    The requested URL /wp-admin/install.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at efficientwahm.com Port 80

    Please help! Thanks!

    MichaelH

    (@michaelh)

    Is domain2 working correctly–use the script in Finding_Server_Info to test that.

    Okay so domain2 is working–then you should be able to browse to domain2/wordpress/wp-admin/install.php to start the install.

    marylutz

    (@marylutz)

    Domain1 is working (yeah) but I can’t get domain2 working yet (as of late last night) haven’t tried yet today, but I think my problem is how I have domain2 set up in cPanel. Domain2 is an addon domain and a subdomain of domain1. But, when I first added domain2, I’m not sure if I entered the right settings. And I can seem to find where to change them. (idiot, I know…lol).
    So, here’s what I’ve done so far:
    1. installed separate version of WP for domain2
    2. Created SQL database for domain2
    3. changed wp-config.php file for domain2
    4. uploaded WP for domain2 into public_html/domain2, so now I have public_html/domain2/wordpress

    Are all those steps correct? If so, then I’m pretty sure my problem lies in cPanel, and how I have set up domain2.

    Any suggestions?

    MichaelH

    (@michaelh)

    Looks good, so you would browse to domain2.com/wordpress/wp-admin/install.php to start installiation. Also, you don’t even need a 2nd database as long as the 2nd wp-config.php uses a different $table_prefix.

    If you can’t run the Finding Server Info script in that 2nd domain then I’d consider deleting and reinstalling the Add-On domain. You do have the nameservers set properly at your domain registrar, correct?

    marylutz

    (@marylutz)

    Yeah, I can’t run the Finding Server Info on the 2nd domain. What should my settings be, once I reinstall the addon domain?

    marylutz

    (@marylutz)

    Got it!!! I had to unassign the addon domain, and the final step, assigning it to a directory was where I was in error. I had to assign it to a new directory called public_html/domain2.

    Thanks for the help! I’m pretty new to all this stuff, so this was a great learning experience for future use!

    marylutz

    (@marylutz)

    Okay, I have domain2.com/wordpress for the address…want just domain2.com. How do I do that?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Multiple blogs with different domains on same account / FANTASTICO’ is closed to new replies.