Reinstall problem

16 views
Skip to first unread message

Mike Archbold

unread,
Jun 26, 2020, 8:11:58 AM6/26/20
to modwsgi
Hi,

I'm running Centos 8 with Apache and mod_wsgi. For a couple of months it has been fine. I saved my install checklist, but when I tried to reinstall on a different machine carefully using my checklist, I got this error below. I installed mod_wsgi easily with "pip3 install mod_wsgi". Thank you.


********************************************

-- Unit httpd.service has begun starting up.
Jun 26 08:05:00 localhost.localdomain httpd[9221]: AH00526: Syntax error on line 51 of /etc/httpd/conf/httpd.conf:
Jun 26 08:05:00 localhost.localdomain httpd[9221]: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not inclu>
Jun 26 08:05:00 localhost.localdomain systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 08:05:00 localhost.localdomain systemd[1]: httpd.service: Failed with result 'exit-code'.
Jun 26 08:05:00 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.


************************************I have the following section in my httpd.conf file. The httpd dies on the first WSGI command.

#
#Listen 12.34.56.78:80
Listen 80
<VirtualHost *:80>
       
    ServerName localhost:80
   
   
    WSGIDaemonProcess jsss processes=2 threads=2 display-name=%{GROUP} user=jsssuser group=jsssgroup
    WSGIProcessGroup jsss
   
    WSGIScriptAlias / /var/www/jsss/jsss.wsgi

    <Directory /var/www/jsss>       
            Options All
            Require all granted
    </Directory>
   
    <Files ".ht*">
        Require all denied
    </Files>
   
    SecAuditEngine On
    SecAuditLog /var/www/jsss/audit_log


#    <Directory /AME>       
#           
#            Require all granted
#    </Directory>

   
</VirtualHost>


WSGIRestrictStdin On
WSGIRestrictStdout On

   

#






Mike Archbold

unread,
Jul 2, 2020, 6:43:16 AM7/2/20
to modwsgi
Update, I got this to install and run by going through the "long install" (configure, make, make install). All is well.
Reply all
Reply to author
Forward
0 new messages