running 5.0.0 on Rocky Linux 9

34 views
Skip to first unread message

Steve Grubb

unread,
Jan 25, 2024, 3:11:22 PM1/25/24
to modwsgi
Today I was able to stand up apache with mod_wsgi  on Rocky Linux 9 .... python3.9 is native ... so the basic steps were:

  sudo dnf update
  sudo dnf install httpd
  sudo dnf install httpd-devel
  sudo dnf groupinstall development    (not sure if necessary)
  sudo dnf install python3-devel      (otherwise you get  <Python.h> not found)
  
Then dd the mod_wsgi  ./configure   and  make  steps  (not sudo; not in any venv since 3.9 is native).   Then if all's well:   sudo make install

Also in  /etc/httpd/conf.modules.d  create a file named 10-wsgi.conf and put this statement in it:
    LoadModule wsgi_module modules/mod_wsgi.so

Then the usual apache config and /var/www/wsgi-scripts and wsgirun things, and (re)start httpd

steve

Graham Dumpleton

unread,
Jan 25, 2024, 3:13:28 PM1/25/24
to mod...@googlegroups.com
Looks about normal for RH based Linux variants.

The compiler development tool suite may well have got installed automatically when installed python3-devel as should have been a dependency on it.

--
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/23d7e3e9-d4a4-487a-b3f4-5326d27ddbc3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages