• Hi all i am a noobie to all this, would appreciate if someone could help as have been trawling through the forums and its all greek to me!

    I am using a Linux host and have successfully installed wordpress according to the 5minute install method using filezilla. I have installed everything within the public_ html folder within a sub-directory called ‘blog’ as suggested in the installation.

    However, I want it to open from my website’s main address rather than a sudirectory that I created.

    example: https://www.rodkirby.co.uk

    rather than https://www.rodkirby.co.uk/blog

    I have tried copying the index.php and placing it in the public_html but this doesnt seem to work. Just says no such directory or file.

    Appreciate if someone could help in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You could try replacing the contents of your index.php file (the one in public_html) with this:

    <?php include "blog/index.php"; ?>

    Thread Starter Greengoblin

    (@greengoblin)

    Hi Maerk

    ust tried doing as you suggested and get this

    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home/rodkirby/public_html/blog/index.php on line 4

    ‘Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home/rodkirby/public_html/blog/index.php on line 4

    Fatal error: main(): Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/rodkirby/public_html/blog/index.php on line 4′

    any ideas.

    thanks

    Thread Starter Greengoblin

    (@greengoblin)

    Hi does anyone have any suggestions on how to solves this, as I am a complete novice!

    Thread Starter Greengoblin

    (@greengoblin)

    Hi filosofo,

    I have followed the instructions on the above link and I now get this on https://www.rodkirby.co.uk

    (‘./blog/wp-blog-header.php’);

    and thats it – not sure what I am doing wrong! any ideas?

    It needs to look like this in your file
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');

    You might be missing the beginning <?php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Insallation problem, making blog on home page’ is closed to new replies.