« Previous Next »

Thread: PHP 404 Error in Virtual Directory

Last post 07-13-2009 8:42 AM by thewebhostingdir. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 06-29-2009, 10:30 PM

    • kakadia
    • Not Ranked
    • Joined on 06-29-2009, 3:30 AM
    • NJ
    • Posts 8

    PHP 404 Error in Virtual Directory

    I'm running PHP 5.2.10 in Server 2008 SP2.

    when i browse the virtual directory path..i get an error saying..

     404 File or Folder not found. 

    Ex:: www.mydomain.com/virtual_directory_name/

     i already set the Virtual Directory permission for iis users.

    There is no problem with browsing regular file or folder...

    Thanks in advance...

  • 06-30-2009, 2:54 AM In reply to

    Re: PHP 404 Error in Virtual Directory

    Hello,

    You should set the correct default document in IIS > Web site properties > Documents (by example index.php).

    Regards

  • 06-30-2009, 2:45 PM In reply to

    • kakadia
    • Not Ranked
    • Joined on 06-29-2009, 3:30 AM
    • NJ
    • Posts 8

    Re: PHP 404 Error in Virtual Directory

    i already set the default index page and the permission to the virtual directory.....

    it still gives me an error...some how...

    i think it has something to do with php.ini.....

  • 06-30-2009, 9:40 PM In reply to

    Re: PHP 404 Error in Virtual Directory

    About the only directive in php.ini that would cause issues for a Virtual Directory is open_basedir, but even then you would get a PHP error rather than a 404. A 404 is almost always because the file/folder does not physically exist, or the permissions are too restrictive so that the file/folder has the apperance that it doesn't exist. What are your exact permissions on your virtual directory, and in particular your PHP files?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-02-2009, 8:26 PM In reply to

    • kakadia
    • Not Ranked
    • Joined on 06-29-2009, 3:30 AM
    • NJ
    • Posts 8

    Re: PHP 404 Error in Virtual Directory

    Letters means

    F         =   Full Control
    M        =   Modify
    R&E    =   Read & Excute
    R        =   Read
    W       =   Write
    L        =   List of contents

    Permissions on Virtual Directory..

    Authenticated Users             M   R&E   R    W     L
    SYSTEM                        F   M   R&E   R    W     L
    Administrators                F   M   R&E   R    W     L
    Users                                       R&E   R            L
    IIS_IUSRS                                R&E   R            L

    Permissions assigned on files

    Authenticated Users             M   R&E   R    W
    SYSTEM                        F   M   R&E   R    W
    Administrators                F   M   R&E   R    W
    Users                                       R&E   R
    IIS_IUSRS                                R&E   R

    these are the permissions are assigned by default...

    i also found another problem with PHP that i have created 2nd web site in IIS7.0 and its wwwroot folder is located in defferent internal hard drive. so i go to the test URL to see if it's working or not..

    the results came out to be.. NOT WORKING....error shows..default..internet explorer page..

    "The webpage cannot be found"

  • 07-13-2009, 8:42 AM In reply to

    Re: PHP 404 Error in Virtual Directory

     I am not sure if you have done this or not.. but have you added web user and assigned permissions?

     

    AccuWebHosting.Com - Windows Hosting Expert
    ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
    | Online US Jobs | Website Hosting Directory | Windows Hosting
Page 1 of 1 (6 items)
Microsoft Communities