Thankq Ron,
Iam able to create the directory after changing the root permissions.
Regards
Ashok.V
Ron Addie <[EMAIL PROTECTED]> wrote:
Ashok.V
Ron Addie <[EMAIL PROTECTED]> wrote:
ashok kumar wrote:This is something which needs to be done as root. You couldHi,Iam having PHP working with Apache on RedHat Linux 9.From PHP Iam trying to create a directory using mkdir("/etc/owndir"); but iam getting the error warning: mkdir() failed (Permission denied) in /var/www/html/dircheck.php on line 4.please do help me in creating a directory.
switch to root using the su command and create the directory
in a console. You would need to change the permissions
on the directory as well. The script would then probably work.
Alternatively, you could change the permissions on the directory
/etc. But this would open up /etc for undesirable access by
other users.
You should think carefully about the reason the directory is
needed. In most cases it is best if directories are created by
the web server as needed, because then it owns the directory in
question and would have the access it needs.
Ron.
RegardsAshok.V
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
