Unix administration - php file unlink() permissions

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > August 2004 > php file unlink() permissions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author php file unlink() permissions
Chris Fortune

2004-08-02, 2:49 am

This is driving me a little nuts. I cannot create or unlink any files with
PHP. ini_set() seems to have no effect. Linux RH8, Apache, PHP4. Help!


Michael Vilain

2004-08-02, 2:49 am

In article <SvlPc.14480$hw6.6364@edtnps84>,
"Chris Fortune" <hey.spammer...just.get@job.org> wrote:

> This is driving me a little nuts. I cannot create or unlink any files with
> PHP. ini_set() seems to have no effect. Linux RH8, Apache, PHP4. Help!


This should be a php FAQ. If you're running php as a mod_php addition
to Apache, chances are you don't have write permissions to create the
file or directory running as the web server's UID.

You'll have to either change the permissions accordingly or write a CGI
script as php or PERL and run it under a UID that does have permission
(hint: google for CGIwrap)

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com