What is currently in the directory: /var/tmp/log
and what are the existing permissions and ownerships of the files in there. Graham On 18/10/2014, at 2:04 AM, James C <[email protected]> wrote: > I am having difficulty writing a simple log file from a Flask 0.10.1 > application running using Apache 2.2.15, mod_wsgi 3.5, python 2.6.6 on Red > Hat 6.5 instance in the AWS cloud. > > The apache log is showing the following error when I attempt to write the log > file: > IOError: [Errno 13] Permission denied: '/var/tmp/log/nanodemo.log' > > I used this Flask/wsgi tutorial to get things set up: > http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/ > > My application resides in /var/www/html/NanoDemo > > Permissions on /var/tmp/log are wide open: > drwxrwxrwx. 2 ec2-user ec2-user 4096 Oct 16 16:00 log > > > /var/www/html/NanoDemo/routes.wsgi: > import sys > sys.path.insert(0, '/var/www/html/NanoDemo') > from routes import app as application > > > /etc/httpd/conf.d/routes.conf > WSGIDaemonProcess routes user=ec2-user group=ec2-user threads=5 > home=/var/www/html/NanoDemo display-name=%{GROUP} > > > WSGIRestrictStdin Off > WSGIRestrictStdout Off > > > <VirtualHost *> > ServerName example.com > > > WSGIScriptAlias / /var/www/html/NanoDemo/routes.wsgi > > > <Directory /var/www/html/NanoDemo> > WSGIProcessGroup routes > WSGIApplicationGroup %{GLOBAL} > Order deny,allow > Allow from all > </Directory> > > > LogLevel warn > # ErrorLog /var/tmp/log/error.log > > > </VirtualHost> > > > /etc/httpd/conf.d/wsgi.conf: > LoadModule wsgi_module modules/mod_wsgi.so > WSGISocketPrefix /var/run/wsgi > > Any help would be greatly appreciated! > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
