Thank you master :) The command now works. ``` (venv) rootik1-336-28225:/home/ubuntu# mod_wsgi-express module-config LoadModule wsgi_module "/var/www/html/venv/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py311.cpython-311-x86_64-linux-gnu.so" ```
I replaced LOAD_MODULE with... However, the web server that was previously working does not work at all even after restarting. ``` # vi /etc/apache2/sites-enabled/000-default.conf ``` 2023年12月14日木曜日 18:57:59 UTC+9 Graham Dumpleton: > The mod_wsgi-express command is available when installing mod_wsgi using > pip. > > See: > > > [image: twitter.abaf4b19.webp] > > mod-wsgi <https://pypi.org/project/mod-wsgi/> > pypi.org <https://pypi.org/project/mod-wsgi/> > <https://pypi.org/project/mod-wsgi/> > > and watch: > > [image: maxresdefault.jpg] > > Graham Dumpleton - Secrets of a WSGI master. - PyCon 2018 > <https://www.youtube.com/watch?v=CPz0s1CQsTE&t=5s> > youtube.com <https://www.youtube.com/watch?v=CPz0s1CQsTE&t=5s> > <https://www.youtube.com/watch?v=CPz0s1CQsTE&t=5s> > > If you want to use configure/make/make install installation method rather > than pip (which doesn't provide mod_wsgi-express) and manually configure > Apache, then try running: > > ./configure --with=python=python3 > > By default it still looks for "python" which will only work if using > Python 2.X or a virtual environment with Python 3. > > Graham > > On 14 Dec 2023, at 8:42 pm, yoshitaka okada <yoshitaka...@gmail.com> > wrote: > > hello :) > > I am trying to upgrade a Django project on ubuntu. > However, now I am getting an Internal Server Error. > > My environment is as follows > ``` > (venv) ubuntu@ik1-336-28225:/usr/src$ cat /etc/issue > Ubuntu 20.04.3 LTS \n \l > ``` > ``` > apachectl -v > Server version: Apache/2.4.41 (Ubuntu) > Server built: 2023-10-26T13:54:09 > ``` > ``` > (venv) ubuntu@ik1-336-28225:/usr/src$ ls > Python-3.11.7 linux-headers-5.4.0-167-generic > linux-headers-5.4.0-137 linux-headers-5.4.0-169 > linux-headers-5.4.0-137-generic linux-headers-5.4.0-169-generic > linux-headers-5.4.0-167 mod_wsgi-5.0.0 > ``` > > The libraries installed in the django project are as follows: > https://github.com/duri0214/portfolio/blob/master/requirements.txt > > Now, Apparently there is a useful command called mod_wsgi-express. > > The configure command probably worked. > No, but maybe it's not working... ? > ``` > (venv) ubuntu@ik1-336-28225:/usr/src/mod_wsgi-5.0.0$ sudo ./configure > [sudo] password for ubuntu: > checking for apxs2... /usr/bin/apxs2 > checking for gcc... gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for prctl... yes > checking Apache version... 2.4.41 > checking for python... no > ./configure: line 2823: python: command not found > ./configure: line 2827: python: command not found > ./configure: line 2835: python: command not found > ./configure: line 2840: python: command not found > ./configure: line 2854: python: command not found > ./configure: line 2857: python: command not found > ./configure: line 2860: python: command not found > ./configure: line 2863: python: command not found > ./configure: line 2866: python: command not found > ./configure: line 2892: python: command not found > ./configure: line 2895: python: command not found > configure: creating ./config.status > config.status: creating Makefile > ``` > > make command doesn't work either. > ``` > (venv) ubuntu@ik1-336-28225:/usr/src$ make > make: *** No targets specified and no makefile found. Stop. > ``` > > And this command fails, so I'm at a loss as to where I'm going wrong. Is > there anyone who can help? > ``` > (venv) ubuntu@ik1-336-28225:/usr/src$ mod_wsgi-express module-config > mod_wsgi-express: command not found > ``` > > vi /etc/apache2/sites-enabled/000-default.conf > ``` > : > LoadModule wsgi_module modules/mod_wsgi.so > : > ``` > Load module is probably fine. > > If any information is missing, please let us know :) > > -- > 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/46d1e4b2-c376-40d5-b583-c07c1801de3en%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/46d1e4b2-c376-40d5-b583-c07c1801de3en%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 modwsgi+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/c62b36a8-d867-40b9-a47f-f88c5907dc3an%40googlegroups.com.