Possibly the service account that Apache runs as doesn't have necessary privileges to access all the files/libraries.
> On 24 Aug 2018, at 8:14 pm, Cato Myhre <[email protected]> wrote: > > Hi, > I'm having issues starting the apache service, the event viewer gives me this > message: > > The Apache service named reported the following error: > >>> httpd.exe: Syntax error on line 568 of > >>> D:/Programs/xampp/apache/conf/httpd.conf: Cannot load > >>> D:\\Programs\\Python\\lib\\site-packages\\mod_wsgi-4.6.4-py3.6-win32.egg\\mod_wsgi\\server\\mod_wsgi.cp36-win32.pyd > >>> into server: The specified module could not be found. > > Now the weird thing I can start HTTPD.exe without any problems through > PowerShell or normal command prompt nor do I get any errors, the only thing > doing it that way is it takes a lot of time to restart it and is super > inefficient. Here are my access stuff and aliases. > Line 568 is the LoadModule wsgi_module ... > > WSGIPythonHome "D:/Programs/Python" > LoadModule wsgi_module > "D:\Programs\Python\lib\site-packages\mod_wsgi-4.6.4-py3.6-win32.egg\mod_wsgi\server\mod_wsgi.cp36-win32.pyd" > WSGIScriptAlias / D:/GitRepos/django-test/arigazaWeb/arigazaWeb/wsgi.py > WSGIPythonPath "D:/GitRepos/Django-test/arigazaWeb/" > > Alias /static/ D:/GitRepos/Django-test/arigazaWeb/home/static/ > > <Directory /GitRepos/Django-test/arigazaWeb/home/static/> > Require all granted > Order allow,deny > Allow from all > </Directory> > > <Directory /GitRepos/Django-test/arigazaWeb/arigazaWeb/> > <Files wsgi.py> > Require all granted > </Files> > </Directory> > > As mentioned it runs just fine with PowerShell or cmd, but not through xampp > or trying to start the apache service from services.MSC, I can also see > wsgi_mod load successfully loads > > I'm running python3 > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <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 https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
