• netdetective

    (@netdetective)


    I have an existing installation of WP in a separate /blog/ folder as do most people, but I am planning on moving it to my domain root directory so that my blog home page becomes my website’s homepage, and use WP as a content management system.

    Could I simply log into FTP and copy everything over, or should I do a clean install in the root directory?

    Will I absolutely need to first delete everything off my site before installing?

    Can I re-upload all my original static pages (except index.html) to my site after having installed WP? Can static and dynamic pages safely reside in the same directory as WP?

    What happens to my cgi-bin folder which contains various scripts?

    What happens to any dynamic script-generated pages I have running?

    I wonder if I should use the webhost’s own automatic WP installation program in cpanel, or just do a manual install. The last time I tried using their Fantastico to install something, I had a lot of problems. Manual installation worked best.

    Fred

    beyourowndetective.com

Viewing 15 replies - 1 through 15 (of 16 total)
  • Gerald Yeo

    (@geraldyeo)

    Take a look at:
    https://codex.www.ads-software.com/Changing_The_Site_URL

    On a sidenote,
    You can actually move WordPress over to your main directory without touching the files in your /blog subdirectory.

    Make a copy of index.php found in your blog folder.

    Edit this line:

    require('./wp-blog-header.php');

    To

    require('./blog/wp-blog-header.php');

    Upload this edited index.php file to your root.

    Go the settings > General and change the Blog address (URL).

    Do make sure you do a backup of your DB first before attempting to do any edits.

    Thread Starter netdetective

    (@netdetective)

    Now I really screwed something up. I’m getting 404 File not found errors. I don’t know how to fix it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What did you do?

    Thread Starter netdetective

    (@netdetective)

    I tried geraldyeo’s suggestion.

    Thread Starter netdetective

    (@netdetective)

    All my admin pages are getting 404 file not found errors. How do I fix this?

    Fred

    Thread Starter netdetective

    (@netdetective)

    Problem fixed. I just needed to manually add these 2 lines to a copy of wp-config.php and upload it to my WP directory via FTP.

    define(‘WP_HOME’,’https://www.beyourowndetective.com/blog’);
    define(‘WP_SITEURL’,’https://www.beyourowndetective.com/blog’);

    I might have to accomplish this idea by manually by changing these 2 lines in wp-config.php to this and uploading it via FTP.

    define(‘WP_HOME’,’https://www.beyourowndetective.com’);
    define(‘WP_SITEURL’,’https://www.beyourowndetective.com’);

    Fred

    @netdetective: Sorry about that..

    So, is the issue solved now?

    When you tried my suggestion, did you move the contents of your blog folder? The contents in the blog folder shouldn’t be moved. Only 1 file, the index.php need to be copied, modified and uploaded to root.

    From your reply above, you seemed to have move the contents of your blog folder to the root….

    If you don’t care about what’s in your root folder it’s really easy to just copy all folders fron the folder wo was installd and just move them into the root.

    ok so i did a new install using fantasico and now a basic blog comes up even though i copied all my files back into the server? what am i doing wrong?

    Having been following this thread, i want someone to kindly give the step by step guide on doing manual installation of wordpres using FTP. I just installed using my host fantastico but later removed it, so i wanted to reinstall and all i got is this funny message:
    ”The installation can not be completed:

    – You cannot install more than one script in the root directory of a domain.

    Click on the browser’s Back button to fix reported errors.”

    Could somebody be of help?

    @laneydotbiz, there is probably a fantastico.txt (or.html) file in your root directory that tells the server that you have WP installed. If you deleted WP manually, that file (thus, the server) won’t know that it’s gone.

    Installing WP manually is a piece of cake, just uploading the zip and editing the wp-confic to match your database, but if you’re able to edit that fantastico file, it should let you re-install via fantastico.

    Thank you for prompt reply, i really wished i could do it the way you have said. The question now is that do i need to go into the fantastico to get the file deleted?
    Locating the file to delete is now the problem so that i won’t go and mess everything up.
    Need to read from you again.

    @laney; Who is your webhost? Use their live chat or email support and ask them to remove the WP fantastico install info from the fantastico index file…They should be able to do this for you quickly.

    Its getting to 4 days now that i sent them message but i never gotten any reply from them and the only said they would contact me soon.
    thanks

    Pls anybody with what else i could do to my blog that fails to install?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Installing WP in domain root directory’ is closed to new replies.