• (I am: new to WP, not a nubie, not a coder, trying for excellence, settling for publishing, extremely appreciative for the help.)

    I installed WP successfully with dreamhost.com “one-click” to mydomain.com and am unable to complete giving the WP application and my blog their own directories.

    I followed instructions for Giving WordPress its Own Directory with “wordpress address” mydomain.com/wp and “blog address” mydomain.com/blog

    I get this “warning” at the blog homepage url mydomain.com/blog:

    Warning: main(./wp/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/myprivateserverinfo/mydomain.com/blog/index.php on line 17
    
    Warning: main(./wp/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/myprivateserverinfo/mydomain.com/blog/index.php on line 17
    
    Fatal error: main() [function.require]: Failed opening required './wp/wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/myprivateserverinfo/mydomain.com/blog/index.php on line 17

    Here is my exact directory structure and index.php placement and mod:

    mydomain.com
    nothing installed here except the 2 directories below

    mydomain.com/wp
    all wp files including index.php with the line
    require('./wp-blog-header.php');

    mydomain.com/blog
    only contains the file index.php with the line
    require('./wp/wp-blog-header.php');

    Help!
    Hari

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter hariseldon

    (@hariseldon)

    Sorry for the befuddled question. I should be looking at this differently.

    If I install WP in
    mydomain.com/blog/

    and switch the application files to a directory
    mydomain.com/blog/wordpress/

    Can I set up a static wordpress page controlled by wordpress code with header, sidebar/footer at
    mydomain.com/

    Don’t overcomplicate it!
    Just learn about the correct syntax for accessing directories “up and down”:
    ../wordpress
    is not the same as
    ./wordpress

    From the beginning you should have this:
    require('../wp/wp-blog-header.php');

    Thread Starter hariseldon

    (@hariseldon)

    Thanks. Problems solved. But a followup question for you and other people who are up on their syntax

    Where do I go to “learn about the correct syntax” more? Maybe someone can suggest a basic list of (PHP syntax?) as it applies to WP.

    I understand the gist of
    WORDPRESS IS NOT PHP

    but I don’t think I could have easily drilled down to understanding the difference between
    ../wordpress
    and
    ./wordpress
    from the codex page of resources on TEMPLATES

    Not a criticism. Just looking for some n00b FU . What references are people using for this sort of thing?

    Thanks,
    Hari

    Actually, the ../wordpress vs. ./wordpress has nothing to do with
    a) WordPress
    b) PHP
    c) Templates

    It is basic HTML

    Thread Starter hariseldon

    (@hariseldon)

    turning pink in the face

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error “Giving WordPress (and blog) its Own Directory”’ is closed to new replies.