Name duplicates previous WSGI daemon definition

change originalsite name

not in the directory address just the name like

WSGIDaemonProcess somethingelse python-path=/var/www/originalsite:/var/www/originalsite/env/‌​lib/python2.7/site-p‌​ackages

and

WSGIProcessGroup somethingelse

The reason for the error is because the name of a mod_wsgi daemon process group must be unique across the whole Apache installation. It is not possible to use the same daemon process group name in different VirtualHost definitions. This is necessary to avoid conflicts when working out what daemon process group is being referred to in certain situations.


I've solved this problem by commenting the below 3 lines in /etc/apache2/sites-enabled/000-default.conf

# WSGIDaemonProcess 
# WSGIProcessGroup 
# WSGIScriptAlias

then reload/restart Apache2.

And I leave them as is in /etc/apache2/sites-enabled/default-ssl.conf because it's duplicated in HTTP (non-SSL) and HTTPS (SSL)


If you're facing this issue while using certbot command to install multiple "Let's Encrypt Certificates" then it may be due to some bug in certbot, as discussed here. For a quick workaround, you can comment

WSGIScriptAlias 
WSGIDaemonProcess 
WSGIProcessGroup

to run certbot command and then remove the comments afterwards.