I have a problem with django can not find image in open cv on apache2

The project has been fine before installed apache for running a website After running my site on apache Opencv could not find the image. How can I fix it thx best regards

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
March 20, 2022

Hi @,

I think your Apache installation needs to have mod_wsgi. To check that you can SSH to your Droplet and type in

  1. $ apache2ctl -M

To check for the module exactly you can try

  1. $ apache2ctl -M | grep wsgi

If you don’t have the module, you need to install and enable it;

  1. $ sudo apt-get install libapache2-mod-wsgi
  2. $ sudo a2enconf mod-wsgi
  3. $ sudo systemctl restart apache2