Gaetano Leoni
17:38 (0 minuti fa)
a modwsgi
I installed xampp on a windows machine locally. The httpd.conf file I
updated it by changing port 80 to 8000 (I don't know if this is right) and
at the bottom of the file I added these lines
GymGes/venv/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp313-win_amd64.pyd”
WSGIScriptAlias / / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/PalestraGes
WSGIPythonPath /xampp/htdocs/PalestraGes.
<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Then I created the httpd-vhosts.conf file which contains these lines
<VirtualHost *:8000>
ServerName 192.168.1.54
WSGIScriptAlias / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/PalestraGes
WSGIPythonPath /xampp/htdocs/PalestraGes.
<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<Files wsgi.py>
Require all granted
</Files>
</Directory>
I run this command httpd -t and it comes back ok
I updated the settings.py file with this line
ALLOWED_HOSTS = [“localhost”, “127.0.0.1”, “192.168.x.x:8000”]
and whether I use 192.168.x.x:8000 <http://192.168.1.54:8000> or localhost
it loads the xampp base page 192.168.x.x:8000/dashboard
<http://192.168.1.54:8000/dashboard>
I don't know if I did something wrong or if there is some other thing to do
--
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 view this discussion visit https://groups.google.com/d/
msgid/modwsgi/6049aafa-4fba-45ba-b994-2183e778c062n%40googlegroups.com
<https://groups.google.com/d/msgid/modwsgi/6049aafa-4fba-45ba-b994-2183e778c062n%40googlegroups.com?utm_medium=email&utm_source=footer>
.
Il giorno venerdì 1 novembre 2024 alle 00:23:52 UTC+1 Graham Dumpleton ha
scritto:
Is the Apache web server hosted on your own local machine. If it is try
http://localhost instead if it is listening on standard port 80.
Trying to use actual IP of your local machine may well fail on Windows
depending on how the firewall is configured.
Also, it may not work depending on whether Apache configuration was done
correctly. All too common for people to get confused around how to set up
VirtualHost definitions in Apache configuration. Since you don't say where
you added WSGIScriptAlias directive and what VirtualHost definitions you
have, is hard to say whether that may be the issue.
Graham
On 1 Nov 2024, at 4:36 AM, Gaetano Leoni <[email protected]> wrote:
Hi I managed to fix the httpd.conf file and now when I launch http -d it
doesn't return any error.
I launched xampp and invoked the webserver with 192.3168.x.xx but it fails
to connect, what can I do to figure out where the error is ?
I have checked all the files present in the logs folder and no errors appear
Il giorno gio 31 ott 2024 alle ore 10:50 Graham Dumpleton <
[email protected]> ha scritto:
If you are installing on Windows using "pip install" method, after you do
that you need to run:
mod_wsgi-express module-config
This will output some lines like:
LoadModule wsgi_module
/usr/local/lib/python2.7/site-packages/mod_wsgi/server/mod_wsgi-py27.so
WSGIPythonHome /usr/local/lib
That example is for Linux though.
On Windows the suffix on the loadable Apache module referenced by
LoadModule will be .pyo or .pyd from memory, it will not be a .so extension.
That you say you are getting error about mod_wsgi.so file being missing
means that you probably didn't do that and have copied too literally the
Django documentation or something else which says to use a .so extension.
So verify what you used for LoadModule directive and ensure it matches what
that command outputs.
On 31 Oct 2024, at 8:29 PM, Gaetano Leoni <[email protected]> wrote:
Which of the following did you do?
I followed the directions in this linkhttps://
docs.djangoproject.com/en/5.1/howto/deployment/wsgi/modwsgi/
* Install system Apache/mod_wsgi package.
I only installed xammp
* Install using pip install mod_wsgi and configure Apache to use that.
>From https://pypi.org/ I downloaded mod_wsgi and installed using pip
install mod_wsgi
WSGIScriptAlias / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/venv
WSGIPythonPath /xampp/htdocs/PalestraGes.
<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<Files wsgi.py>
Require all granted
</Files>
</Directory>
* Build and install mod_wsgi from source code.
I read that you have to compile a file. I downloaded the
mod_wsgi-5.0.1.tar.gz folder and in the src/server folder there are several
files but I don't know which one I should use or how to compile it (I think
it's refereed to the mod_wsgi.so file ?)
* Some other way.
In the notes I read that in the apache folder there should be the mod_WSGI
folder but it is not present
Il giorno dom 27 ott 2024 alle ore 20:53 Graham Dumpleton <
[email protected]> ha scritto:
What steps did you take to install mod_wsgi?
Which of the following did you do?
* Install system Apache/mod_wsgi package.
* Install using pip install mod_wsgi and configure Apache to use that.
* Build and install mod_wsgi from source code.
* Some other way.
What changes did you make to the Apache configuration?
On 28 Oct 2024, at 3:49 AM, Gaetano Leoni <[email protected]> wrote:
Hi, has anyone ever installed mod_wsgi with apache ?
I read How to use Django with Apache and mod_wsgi and after installing
mod_wsgi and updating http.conf apache doesn't start because mod_WSGI.so
file is missing and also mod_wsgi folder is not present inside apache
folder
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/61ea575a-dbb6-42ce-bfa0-f2c6a2cef30fn%40googlegroups.com
<https://groups.google.com/d/msgid/modwsgi/61ea575a-dbb6-42ce-bfa0-f2c6a2cef30fn%40googlegroups.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/639316B7-7623-441F-B84D-85723FF41F29%40gmail.com
<https://groups.google.com/d/msgid/modwsgi/639316B7-7623-441F-B84D-85723FF41F29%40gmail.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/CAAucONSPGq%3DcB43qjMhSM4shp03gC3g3Fv%2BG1FkwhZAHs9TJWg%40mail.gmail.com
<https://groups.google.com/d/msgid/modwsgi/CAAucONSPGq%3DcB43qjMhSM4shp03gC3g3Fv%2BG1FkwhZAHs9TJWg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/0B18E630-D322-47EC-989F-735A904E12AB%40gmail.com
<https://groups.google.com/d/msgid/modwsgi/0B18E630-D322-47EC-989F-735A904E12AB%40gmail.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/CAAucONQLuoe5k907Ery5U%3D%2Ba8bufrd4yW5CuM8-%3DouAGioG-OQ%40mail.gmail.com
<https://groups.google.com/d/msgid/modwsgi/CAAucONQLuoe5k907Ery5U%3D%2Ba8bufrd4yW5CuM8-%3DouAGioG-OQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion visit
https://groups.google.com/d/msgid/modwsgi/1d9886e4-3623-42d3-9a96-a74efd85cbd8n%40googlegroups.com.