|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
perl file permissions problem
My server is running as user 'apache', I am logged in as root.
I have a world read / write able file in a directory tree (that is world read write able all the way through) ' /var/www/html/tmpl/control.tmpl ' Perl gives me a permission denied error when I try to open the file. Thought the web browser ( When I run the script from the command line it works ) I have tried the follow in the httpd.conf <Directory "/var/www/html/tmpl"> Options Indexes Include FollowSymLinks AllowOverride None Allow from all Order deny,allow </Directory> I've also tried the same thing using <Location> I've tried setting the /tmpl directory owner to apache, and tried setting the control.tmpl owner to directory. Still no success. Any common caveats that I'm completly over-looking? |
|
#2
|
||||
|
||||
|
I believe the problem is in the order of these statements:
Code:
Allow from all order deny, allow You allow access to everyone, and then change it right back to denying access to everyone. I believe if you switch it to: Code:
order deny, allow Allow from all it will work. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > perl file permissions problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|