Thanks for the advice, I ran the command and below is the result
(GymGes) PS C:\xampp\htdocs\PalestraGes> mod_wsgi-express module-config
LoadFile
“C:/Users/Gaetano/AppData/Local/Programs/Python/Python313/python313.dll”
LoadModule wsgi_module
“C:/xampp/htdocs/PalestraGes/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp313-win_amd64.pyd”
WSGIPythonHome “C:/xampp/htdocs/PalestraGes/PalestraGes”

I edited the http.conf file by adding the line load
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/venv
WSGIPythonPath /xampp/htdocs/PalestraGes

<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<File wsgi.py>
Requires all permissions
<File>
<Directory>

I ran the command to check but it returns this error
C:\xampp\apache\bin>httpd -t
AH00526: Syntax error on line 576 of C:/xampp/apache/conf/httpd.conf:
Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a
module not included in the server configuration.

Is the load line correct?
If yes, how do I compile the

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/CAAucONQD6vBYbe3jpyoBMwqh3L4FQqcmmeqN4weZjGpD63K2YQ%40mail.gmail.com.

Reply via email to