I have flask application that is runnig on apache(httpd) using mod_wsgi I have a python environment set up. Using WSGIDaemonProcess with properly set python-home I was able to run a basic "Flask test" app to verify things working properly. but when I using WSGIDaemonProcess to deploy I'm getting error.
3180 [Thu Sep 29 13:47:07.042380 2022] [core:error] [pid 15230] (13)Permission denied: [client
172.70.90.229:14996] AH00035: access to / denied (filesystem path '/root/ns e') because search permissions are missing on a component of the path
3181 172.70.90.229 - - [29/Sep/2022:13:47:07 +0530] "GET / HTTP/1.1" 403 202 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
3182 [Thu Sep 29 13:47:07.050614 2022] [core:error] [pid 15227] (13)Permission denied: [client
172.70.188.77:37914] AH00035: access to / denied (filesystem path '/root/ns e') because search permissions are missing on a component of the path
3183 172.70.188.77 - - [29/Sep/2022:13:47:07 +0530] "GET / HTTP/1.1" 403 202 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
3184 [Thu Sep 29 13:47:07.212233 2022] [core:error] [pid 15229] (13)Permission denied: [client
172.70.85.81:23788] AH00035: access to / denied (filesystem path '/root/nse ') because search permissions are missing on a component of the path
3185 172.70.85.81 - - [29/Sep/2022:13:47:07 +0530] "GET / HTTP/1.1" 403 202 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
3186 [Thu Sep 29 13:47:07.583472 2022] [core:error] [pid 15228] (13)Permission denied: [client
172.71.178.103:52888] AH00035: access to / denied (filesystem path '/root/n se') because search permissions are missing on a component of the path
3187 172.71.178.103 - - [29/Sep/2022:13:47:07 +0530] "GET / HTTP/1.1" 403 202 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
and this the passenger_wsgi.py file code
# from app import app as application
#from nse_stock_master.ReadData import app as application
# importing the sys module
import sys
# appending the directory of ReadData.py
# in the sys.path list
sys.path.insert(0,'/var/www/html/tickerscreener')
activate_this ='/root/.local/share/virtualenvs/tickerscreener-VNoT57Rh/bin/activate_this.py'
with open(activate_this) as file_:
exect(file_.read(), dict(__file__=activate_this))
from app import app as application
# now we can import app
#from app import app as application
virtual httpd config
VirtualHost *:80>
ServerName
www.tickerscreener.in WSGIDaemonProcess flaskapp user=nse group=nse processes=2 threads=15
WSGIScriptAlias / /root/nse/var/www/html/tickerscreener/passenger_wsgi.py
ServerAlias
tickerscreener.in<Directory /var/www/html/tickerscreener>
WSGIProcessGroup flaskapp
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
DocumentRoot /var/www/html/tickerscreener
ErrorLog /var/www/html/tickerscreener/logs/access.log
CustomLog /var/www/html/tickerscreener/logs/access.log combined
</VirtualHost>
May I know where I done the mistake
--
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
modwsgi+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/modwsgi/aa0f4c63-2558-4011-ae3c-8e9897c95c29n%40googlegroups.com.