httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] not able to write file in directory
Date Thu, 15 Sep 2011 22:53:52 GMT
The user you are running apache under needs to have write access to that
directory.

Igor
On Sep 16, 2011 7:35 AM, "Rajeev Prasad" <rp.neuli@yahoo.com> wrote:
> 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/datafolder but that also
failed.(gave same error)
>
> plz. help.
>
> here is the site config:
>
> <VirtualHost *:80>
>     ServerName testwebsite.com
>     ServerAlias www.testwebsite.com
>     ServerAdmin admin@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-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Mime
View raw message