hello,
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/testwebsite.com/www/data folder, but i am getting error like this:
 
 [error] [client xxxxx] could not open 
/var/www/testwebsite.com/www/data/testfile: 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/testwebsite.com/data folder but 
that also failed.(gave same error)
 
plz. help.
 
here is the site config:
 
<VirtualHost *:80>
    ServerName testwebsite.com
    ServerAlias www.testwebsite.com
    ServerAdmin ad...@testwebsite.com
    ServerSignature Off
    DocumentRoot /var/www/testwebsite.com/www
    <Directory />
        Options +FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/testwebsite.com/www/>
        Options +FollowSymLinks +MultiViews +Includes
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>
    ScriptAlias /cgi-bin/ /var/www/testwebsite.com/cgi-bin/
    <Directory "/var/www/testwebsite.com/cgi-bin/">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Includes
        AddHandler cgi-script cgi pl                #was added
        Order allow,deny
        Allow from all
    </Directory>
    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 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
    DirectoryIndex /cgi-bin/index.pl
</VirtualHost>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to