httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajeev Prasad <>
Subject [users@httpd] not able to write file in directory
Date Thu, 15 Sep 2011 21:34:29 GMT
I have my site config as below on ubuntu:
I am running a perl cgi which is trying to write a file under /var/www/
folder, but i am getting error like this:
 [error] [client xxxxx] could not open /var/www/ Permission
denied, referer: ....
the script and folder everything is owned by same ubuntu user.
when i run the script from command prompt i get no error, files are created successfully.
I have also tried to save the files to /var/www/ folder but that also
failed.(gave same error)
plz. help.
here is the site config:
<VirtualHost *:80>
    ServerSignature Off
    DocumentRoot /var/www/
    <Directory />
        Options +FollowSymLinks
        AllowOverride None
    <Directory /var/www/>
        Options +FollowSymLinks +MultiViews +Includes
        AllowOverride None
        Order allow,deny
        allow from all
    ScriptAlias /cgi-bin/ /var/www/
    <Directory "/var/www/">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Includes
        AddHandler cgi-script cgi pl                #was added
        Order allow,deny
        Allow from all
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from ::1/128
    DirectoryIndex /cgi-bin/

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message