Home Forums OS X Server and Client Discussion Questions and Answers Enable permission for PHP to create & write to files in WebServer/Documents

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #378162
    quarfie
    Participant

    What do I need to do in order for php to be allowed to create files in my webserver documents folder (or a subfolder)?

    Snow Leopard Server 10.6.2

    Many thanks!

    Jason

    #378165
    tlarkin
    Participant

    Specific users should own their sites folder to begin with, or what exactly is your question. Is this for you, or is this so your users can host sites off your server?

    #378176
    quarfie
    Participant

    Bit more info about what I have to do… I have to grant my PHP file (example.php) access to write information to the hard drive. “Use CHMOD to allow the PHP file to write to disk, thus allowing it to create a file.” That’s what I need to know how to do…

    I’m guessing this is a different sort of permissions than I work with for file sharing purposes…

    tlarkin,

    I am the only user who would be updating sites hosted on this server. I have set up the documents folder under WebServer as a share point so I can update it through AFP. Perhaps that’s not a preferred method?

    The site is running fine and I am using PHP to pull data from FileMaker Server, but a new feature requires me to use a php script to create or edit a text file hosted on the server (a downloadable price list).

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed