in

Dotnetpanel Forums

Community support forums for DotNetPanel products

PHP issue

Last post 04-03-2008 1:30 AM by danielh. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 04-01-2008 3:01 PM

    PHP issue

    Okay folks, this one is quite strange....

    When I create a website within DNP and upload a PHP app to it (RoundCube, WordPress), I am forced to put the app in a sub-directory of the site path and then using IIS Manager, change the site config to point to the subdirectory. If I do not do this, the apps just flat will not work. If the apps are in a sub-directory to start with, they work fine.

    So, DNP creates a site at d:\HostingSpaces\Jimmy\website.com\wwwroot

    I have to create directory in wwwroot and upload my PHP app to it (..\wwwroot\mail) and then change IIS to point to ..\wwwroot\mail. If I use DNP to change the site location to ..\wwwroot\mail, I have the same problem as with wwwroot.

    This doesn't make any sense.

    Help?

    Filed under:
  • 04-01-2008 3:46 PM In reply to

    • Haider
    • Top 50 Contributor
    • Joined on 09-20-2006
    • Orlando, FL
    • Posts 114

    Re: PHP issue

    Did you happen to delete the root (wwwroot) folder and then create it again via FTP?

    Does static html files work in the root folder?

  • 04-01-2008 4:28 PM In reply to

    Re: PHP issue

    Nope, never deleted the wwwroot directory and it has the proper permissions. I have multiple WordPress and RoundCube installations on different domains. I am having a problem with each one of their sites that is created by DNP. If I create the site manually in IIS, with dedicated application pool and anonymous account, it works just fine.

    Yes, static html files work perfectly in the root directory.

    -Joe

  • 04-01-2008 5:36 PM In reply to

    • Haider
    • Top 50 Contributor
    • Joined on 09-20-2006
    • Orlando, FL
    • Posts 114

    Re: PHP issue

    I still think it is a permission issue. How is PHP configured, CGI or ISAPI?

    Can you check if the DNPWebUsers group has Read/Execute on the executable?

    Well not really sure why it works in subfolder though. I could be wrong!

  • 04-01-2008 6:12 PM In reply to

    Re: PHP issue

    PHP is configured as ISAPI.

    DNPWebUsers group has Read/Execute perms on the php executable.

    I know, this is a strange one but then again it seems that I always run into the strange problems.

    -Joe

  • 04-01-2008 6:47 PM In reply to

    Re: PHP issue

    Try and give read permissions to website.com directory
    Graham Spratt
    Direct Hosting UK
    W2K3, IIS6, .NET, PHP5, MySQL5
    DotNetPanel Authorized Reseller
  • 04-02-2008 2:10 AM In reply to

    Re: PHP issue

    This is a permission issue, you need to give the web-user (at least) list access to the paren directory of wwwroot. This is because of the file-open api php uses that for some reason needs list access in the parent directory.

  • 04-02-2008 10:22 AM In reply to

    Re: PHP issue

    Okay, I granted List permissions to the web user for the parent directory of wwwroot and it WORKED! Thanks for your help.

    So how do I make DNP apply this permission to all new websites? If I have to manually make changes to the server when someone wants to use PHP, it kind of defeats the purpose of having DNP.

    Thanks,
    Joe

    Filed under: ,
  • 04-02-2008 10:53 AM In reply to

    • Haider
    • Top 50 Contributor
    • Joined on 09-20-2006
    • Orlando, FL
    • Posts 114

    Re: PHP issue

    Just curious, which version PHP are you running? 

  • 04-02-2008 11:06 AM In reply to

    Re: PHP issue

    5.2.5

     

  • 04-03-2008 1:30 AM In reply to

    Re: PHP issue

    Hello

    Unfortunatly there is no home directory "skeleton" configuration in DNP that can handle permissions. I have requested this to the DNP team before and I hope it will be implemented some day. Untill then Im afraid you have to manually set these permissions, its not all php sites that require it only the ones using php file opens (I believe).

    Regards

    Daniel

Page 1 of 1 (11 items)
Powered by Community Server (Commercial Edition), by Telligent Systems