WordPress.org

Ready to get started?Download WordPress

Forums

Installing on a Sub Domain (9 posts)

  1. hemanthsharma
    Member
    Posted 8 years ago #

    Hi

    I have tried installing on a folder. http://domain.com/blog/

    It works fine.

    I tried installing on http://blog.subdomain.com/

    Its not working.

    I know its some problem with the settings i have for my subdomain. Could you please guide me?

    It shows one warning and one Fatal error in main() could not load ./someFile.php etc., etc.

  2. estjohn
    Member
    Posted 8 years ago #

    do you have a virtual host point http://domain.com/blog/ to http://blog.subdomain.com/ in the webserver config ?

  3. hemanthsharma
    Member
    Posted 8 years ago #

    I can run other HTML and PHP files from that URL... i haven't tried complex pages. however, i am not able to execute index.php of the WP.

  4. estjohn
    Member
    Posted 8 years ago #

    what webserver? iis or apache? Did you change the wordpress settings to match up to the new directory? did you set it so that the virtual host uses read write and or execute permissions recursively?

  5. hemanthsharma
    Member
    Posted 8 years ago #

    Its IIS with PHP support. I deleted the database and reconfigured from the subdomain. everything worked fine.
    The subdomain directory is given full access... rwx...

  6. estjohn
    Member
    Posted 8 years ago #

    Unfortunately I don't know IIS that well.. Ive always been an apache girl. I know in apache a dir can have rwx, but the individual files may have rw or r... does the permission on the whatever.php file it errors on have the right permissions? is that file actually there uncorrupted? if you open the config file does it show the actual paths or the virutal paths? is the DNS updated to show the http://blog.subdomain.com/

    sorry if im not too much help.. with iis ive only used it once or twice.. but apache for years. all i know in iis is concepts :( I guess about all i can do is throw ideas out on this one :(

  7. hemanthsharma
    Member
    Posted 8 years ago #

    Its ok. :)

    DNS is updated to show http://blog.domain.com/ and permissions are right, files are uncorrupted coz, i have tried atleast 3 times. i tried only once in http://domain.com/myblog/ it works fine. anyways, i think its some problem with subdomain configuration... I will check with my ISP.

    Thanks a ton!

    :)

  8. estjohn
    Member
    Posted 8 years ago #

    welks. good luck.. let us know how it gets fixed! you've definately get me wondering :)

  9. S.K
    Member
    Posted 8 years ago #

    The subdomain setup assumes the folder mapped to the subdomain is the root. So the relative URI's undergo a change. For instance "/blog..." in case the blog is in http://yourdomain.com/blog/ will become "/...etc" if it resides in the subdomain http://blog.yourdomain.com/.

    S.K

Topic Closed

This topic has been closed to new replies.

About this Topic