PHP File Writing Problems

Discussion in 'Site & Server Administration' started by Andre, Dec 9, 2004.

  1. #1
    Hey All,

    I wasn`t sure if this belonged under PHP programming or site admin, but since I figure its something to do with the server, I posted it here.

    Whenever a php script tries to write, copy, or pretty much do anything else with a file I get these permission denied errors. The admin recently changed servers, and the php scripts worked under the old server.

    I have made sure that the right directories do exist and are of the right permissions.

    By the way, whats this /usr/home/virtual/... stuff about... that folder dosn`t exist... but apparently thats where my PHP script is being run from.

    The server is running BSD by the way.

    Anyway... any ideas?
     
    Andre, Dec 9, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    What are the permissions for the file in question?
     
    digitalpoint, Dec 9, 2004 IP
  3. Andre

    Andre Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    They were origionally 755 I believe ... but in order to eliminate that as a possible cause... I set the permissions to 777, still with the same result.
     
    Andre, Dec 9, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    If they are 777 and still getting it, then no idea. Probably going to need to talk to the system administrator for the server.
     
    digitalpoint, Dec 9, 2004 IP
  5. Andre

    Andre Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Interestingly, the admin was the one who asked me what I thought was wrong :S

    Thanks though.
     
    Andre, Dec 10, 2004 IP