I'm attempting to deploy a Django project and am using Apache2 with mod_wsgi. Listed here are the appropriate lines during my Apache conf file:
WSGIScriptReloading On WSGIDaemonProcess myprojectcom WSGIReloadMechanism Process WSGIProcessGroup myprojectcom WSGIApplicationGroup myprojectcom WSGIPassAuthorization On WSGIScriptAlias / /home/myproject/myproject/deploy/deploy.wsgi
I have used a really similar conf apply for a number of other deployments, but this is actually the very first time that I am obtaining the following error:
/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart Syntax error on line 8 of /etc/apache2/sites-enabled/myproject.com: Invalid command 'WSGIReloadMechanism', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information. ...fail!
I do not use whatever syntax error, though. I am on Ubuntu, while using libapache2-mod-wsgi package. What is wrong?
Take away the whole line:
It is not needed anymore and also the directive was removed completely in mod_wsgi 3.X.
You need to more suitable not depend on old blogs based on how to setup mod_wsgi and employ the particular mod_wsgi documentation around the mod_wsgi site rather.