I get this error when i try to upload an image:
OSError at /upload/
[Errno 13] Permission denied: '/var/www/p/p/media/imgupload/img.png'
my virtualhost:
<VirtualHost *:80>
ServerAdmin myemail@gmail.com
ServerName p.com
ServerAlias www.p.com
DocumentRoot /var/www/p/
LogLevel warn
WSGIDaemonProcess processes=2 maximum-requests=500 threads=1
WSGIProcessGroup %{GLOBAL}
WSGIScriptAlias / /var/www/p/p/wsgi.py
Alias /media /var/www/p/p/media/
Alias /static /var/www/p/p/static/
</VirtualHost>
Here is the sec for the files:
drwxr-xr-x 3 ubuntu root 4096 Jun 16 13:10 www
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 16 13:10 p
(all other folders are ubuntu ubuntu)
while i got this:
drwxr-xr-x 36 ubuntu root 4096 Jun 11 06:33 lib
drwx------ 6 mysql mysql 4096 Jun 17 14:19 mysql
I can't cd through mysql with my ubuntu user... Is it some security issue??
Must be...
Thanks in advance