• I have so many questions, I’m not sure where to start. I have tried to find documentation about the directory structure and purposes of each for WP, but the documentation appears to be more about designing a specific page vs. an overview.

    Technically, I know enough to be dangerous. With sample code, I can usually modify it, but I would not be able to create it “from scratch”.

    Hosted setup that I would like:

    Home page website with 3 columns, header, and footer. I would like the middle section to be a blog.

    Then, I want separate blogs/databases for subdomains, where the link goes again to the same website structure around the middle section, but the middle section of each subdomain will be a different blog.

    My first draft of the site for over 200 pages was in 2002 with FrontPage (with no blog)!

    Due to the 200 pages, someone showed me Server Side Includes (SSI) and I got the skeleton to work with .shtml.

    Now, technology has jumped, yet again, so I have a skeleton with PHP Includes for common structure.

    WP has had a different version each time, as well.

    ***My 20,000 foot questions – how should my directories/subdirectories be structured for the home page vs. the subdomains? What should be in the WP directories vs. external to those (e.g., images)? How/where are directories/subdirectories specified in the WP install files? Would the middle blog section work within a “myinclude.php” unique to each subdirectory?

    I downloaded 2.3.3, unzipped it, and uploaded it at the root for each subdomain (in Unix).

    I also uploaded it at the root for the home page.

    After those “vanilla” uploads, I uploaded my “custom” files, including the Logo and the myinclude.php files.

    I also uploaded the same index.php to the home and the subdomain directories, with the intent of modifying it to be specific to each.

    I did modify the wp-config.php file for each to have the correct database name (unique for each subdomain and home page), userID, and password.

    ***What additional changes need to be made and where for WP to work as separate installations with separate databases for home and each subdomain? Do I need to do separate “installs” for each subdomain, as well?

    And, of course, I get the unable to login due to cookies blocked error message. Yet, I have even tried allowing *all* cookies/lowest security and also terminated any security applications (except Google toolbar-could that be the problem or MS’s security updates?) and still can’t login.

Viewing 15 replies - 1 through 15 (of 16 total)
  • One must walk before they fly.

    Set up one blog completely. Just the plane old default blog. Once that is working, you will have many answers.

    http://codex.wordpress.org/Main_Page just for starts.

    If you need it faster, hire an expert.

    Thread Starter sally08

    (@sally08)

    Thank you for your reply.

    I was able to get an older version of WP to work previously (when I was able to login, as well).

    The questions still remain for the single blog within a static website:

    1. What are the positive/negatives of having the blog at root level vs. a WP subdirectory? Does the default install require http://www.domain.com/blog/wp? Or the “wp” at some level?

    2. What changes, and where, need to be made within vanilla WP files to work in either structure scenario?

    1. None – either would work the same. It is just a matter of do you want a lot of directories and files in the root. Some prefer a cleaner root.

    You can install WP where ever you wish. Some use http://www.xxxx/blog, some http://www.xxxx/wordpress, some http://www.xxxx

    2. The install, when the directions are followed, will take care of everything. You will just need to know your database information.

    Read this, http://codex.wordpress.org/Main_Page and this http://codex.wordpress.org/Installing_WordPress

    Thread Starter sally08

    (@sally08)

    At both the /blog and a subdomain, after using the interface to setup the wp-config file, when I attempt to initiate the Install, I get this message:

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

    How do I clear the *tables* vs. the DB? I don’t believe I attempted to install the subdomain with a different DB before, so why do I get the same error message?

    I’ve never attempted any post – can I just delete the DB and start over?

    Thread Starter sally08

    (@sally08)

    Update – through my hosting console, I deleted the DB and recreated it.

    I *was* able to get the install to run again. I was also able to login with the admin/password generated.

    Now, I need to determine whether my static website index.php can be made to work with WP.

    Not really. WP needs its own index.php file to run correctly.
    You may want to elaborate on
    whether my static website index.php can be made to work with WP

    Thread Starter sally08

    (@sally08)

    Please see my original post about a static website with PHP includes for header, navigation, and right column.

    Can I “merge” that index.php with the WP one and put it where WP expects it to be?

    I hope to have the WP blog to be the middle section of a website with normal navigation on the left column.

    Yep, I see now… You know enough to be dangerous but not enough to understand how WP works.

    Write shorter posts and ask ONE question at a time and don’t mix things. If you ask questions regarding general (content) structure, forget the 3 column+footer and similar things. That’s layout and it comes later.

    Let’s get back to the basics.
    You have a site: example.com
    Where did you install WP? At the root (example.com) or in a subdir, like example.com/blog?
    (also, don’t mix subdomains and subdirectories, they are NOT the same)

    Thread Starter sally08

    (@sally08)

    I am specifically using subdomains as different *blogs* vs. root or subdirectory as the location of each blog within the home or subdomains.

    I mentioned the layout structure because it is a *site* plus blog, not just a blog, plus it uses an index.php with PHP includes.

    So my original question was how to organize the structure of the static site, home page blog, and separate subdomain blogs (with the static site layout for each subdomain, as well).

    The original reply pushed me into installing with assumed structure.

    I have been able to install and login to:

    http://www.domain.com/blog (with WP files in blog subdirectory of domain)
    subdomain.domain.com (with WP files in root of subdomain)

    I guess that resolves the structure question and the separate installs.

    I’m not sure why I had to delete/recreate the two databases, particularly the subdomain one.

    plus it uses an index.php with PHP includes.

    And that won’t work with WP.

    Thread Starter sally08

    (@sally08)

    If I have http://www.domain.com/index.php with a middle section that uses http://www.domain.com/blog/index.php, won’t that work, since they are different?

    Why can’t the index.php for WP have other PHP or navigation links code in it?

    Thread Starter sally08

    (@sally08)

    I’ve made major strides, with installation of root and 10 subdomain blogs.

    Hopefully, I can get the static web site structure around the subdomain blogs. Otherwise, the links may need to open a newpage, or I don’t use a blog format at all. A forum might work, as well.

    Thanks!

    Have a good weekend.

    Hi,

    I am a bit curious. Care to share what was the final directory structure you settled on in the end?

    Cheers.

    sito

    installation of root and 10 subdomain blogs.

    It would have been better to use WordPress Multi-User (WMPU) which can be configured with secondary blogs in subdomains or subdirectories. For reference
    http://wordpress.jdwebdev.com/blog/wp-vs-mu/
    Disclaimer: WPMU is great, but not for faint of heart πŸ™‚

    Hi mercime,

    Thanks for the quick response. On my personal domain, I am also using multiple installation of WP since at the time when I started, WPMU was very much in its infancy. The only painful part was really during upgrade time, which was fortunately eased somewhat by using subversion (a later addition).

    Off topic: I take it WPMU is quite useable these days? If that is the case, I may start exploring using it in future.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Need high level directory structure recommendations’ is closed to new replies.