Help with file permission?
Some advise would be appreciated!
I am trying to create a file in the /tmp1 directory using the following
script:
<?php
system("touch /tmp1/test2.txt");
?>
The web server is running as user apache.
I made apache the owner of the /tmp1 directory and it has 777
permisions. If I run the command as shell user apache it works fine.
the box is running Debian kernel 2.6.9-11.ELsmp
Any ideas?
Thanks,
Moshe
.
Relevant Pages
- Re: How do we get there from here?
... server-side-scripted html. ... This is a simple example with very little php scripting. ... means that the version of the php pre-processor on your web server must ... >>> The browser never sees anything not sent to it by the script. ... (comp.databases.pick) - Copying and Deleting Files Using PHP-Nuke
... Copying and Deleting Files Using PHP-Nuke ... PHP language. ... subject to the permissions of the user id the web server is running ... included by the admin.php script. ... (Bugtraq) - Re: PHP-FTP Downloading Files
... I am trying to download a file to my local machine using PHP. ... when the script runs the file is placed in the folder ... C:\TestShowID.txt in the user's FTP folder on the web server. ... (comp.lang.php) - PHP Environment strings and security question
... I have a few questions about PHP and environment strings, ... Web Server). ... The engine is defined by the script map table, ... (comp.lang.php) - Re: Help-photo slideshow without Javascript ?
... Does your web server have PHP? ... If your server/host *has* PHP but it doesn't run the script, ... Where is brucie these days? ... (comp.infosystems.www.authoring.stylesheets) |
|