Configutation Setup

22 views
Skip to first unread message

Suraj Shaw

unread,
Mar 16, 2022, 6:44:10 AM3/16/22
to modwsgi
Hi,
I have following versions installed

mod-wsgi==4.9.0

Server version: Apache/2.4.51 (Unix) - Apple Version

macos bigSur(11.6.2).

I have completed all the configuratfor the deployment of my django application and everything seems to work fine.

I only have one doubt here which i want to ask.When i was using django development server than using the export command i was setting the LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=~/Downloads/instantclient_19_8:$LD_LIBRARY_PATH

Now since i have deployed it to apache using mod_wsgi i want to ask how will now i set this variable .I have used SetEnv but it also seems to be not working.

Listen 8001

<VirtualHost *:8001>

    SetEnv LD_LIBRARY_PATH=Users/apple/Downloads/instantclient_19_8

    ServerName first.djwebapp

    WSGIScriptAlias / /Users/apple/project/myproject/myproject/wsgi.py

    <Directory /Users/apple/project/myproject/myproject>

    <Files wsgi.py>

       Require all granted

    </Files>

    </Directory>

    ErrorLog "/private/var/log/apache2/first.djwebapp-error_log"

    CustomLog "/private/var/log/apache2/first.djwebapp-access_log" common

</VirtualHost>

This is my config which i added in httpd.conf file


Thanks
Suraj


Reply all
Reply to author
Forward
0 new messages