PHP problem, I hope someone can help

Discussion in 'Programming/Scripts' started by kevinadmin2010, Jul 14, 2010.

  1. kevinadmin2010

    kevinadmin2010 New Member

    Me and my team have been working on this project for a week or so. Suddenly a member brought to my attention that he couldn't upload via his php script. So I looked into it. I wound up recreating (deleting and remaking) a couple directories (addrbooks in the website directory and phptmp in the root(where i think upp'ed files get stored temporarily)) to see if that was the problem and then eventually recreated his entire user account "wburke" (through ispconfig)

    This is the error I get when he attempts to start:
    Warning: session_start() [function.session-start]: open(/var/www/web3/phptmp//sess_kbti89d259unfm3pukgr9hkm05, O_RDWR) failed: Permission denied (13) in /var/www/web3/web/2010/sys/config.file on line 3

    With out this the user cannot work at all. Can anybody offer me some advice on this problem? Im trying to diagnose and fix this but im having a hard time. Thanks in advance. -Kevin
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    Well the problem is, that the user apache (and thus the webapp except you are using suphp instead of mod_php) is running with (e.g. nobody, apache, etc.) has no permission to write in the folder "/var/www/web3/phptmp/".

    So you could check that and also the config where to store the sessions as this // indicates for me that one / can be left out, eventhough I think this won't cause this problem below.
  3. kevinadmin2010

    kevinadmin2010 New Member

    Ben, Thank you very much for your help. I found that since I had removed user and added user back, the "id" was wrong on the folder permissions. I 'chowned' (changed ownership) back to the correct user and I had to chmod 766 to the phptmp dir. This is all working correctly now! Thank you again for your support. -kevin

Share This Page