> On 9 May 2016, at 3:15 AM, Chanki Gogia <[email protected]> wrote:
> 
> Hi All,
> 
> Please help ! I am pretty much tired after trying hard installing mod_wsgi as 
> a module into my Apache since last two weeks. Please help !
>  
> I have downloaded mod_wsgi by following official installation page 
> https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
>  with command :
> 
> pip install https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.22
> 
> then in the same directory unpacked using:
> tar xvfz mod_wsgi-X.Y.tar.gz
> 
> and configure command used as :
> ./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs 
> --with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m LD_RUN_PATH = 
> /opt/rh/rh-python34/root/lib64

This is wrong. Should be:

./configure --with-apxs=/opt/rh/httpd24/root/usr/bin/apxs 
--with-python=/opt/rh/rh-python34/root/usr/bin/python3.4m

LD_RUN_PATH=/opt/rh/rh-python34/root/lib64 make

sudo make install

The LD_RUN_PATH variable is not passed as argument to configure.

It needs to be set in environment of the ‘make’ command.

That can be done on same line as make command as shown above.

> 'make' gives one error on the first compiling file but other slo files 
> created successfully.
> 'make install' completes
> 
> I have added load module line in my config file 
> '/opt/rh/httpd24/root/etc/httpd/conf/httpd.conf' as:
> "LoadModule wsgi_module modules/mod_wsgi.so" 
> Please do check the screenshot of "mod_wsgi_make_install" as that contains 
> path of installed module. I have tried entering that complete path though :
> "LoadModule wsgi_module 
> /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so"
> but it didn't worked and giving error of:
>  "httpd-scl-wrapper[4908]: httpd: Syntax error on line 57 of 
> /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Cannot load 
> /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_wsgi.so into server: 
> libpython3.4m.so cannot open shared object file no such file or directory 
> while installing mod_wsgi" 
> as attached in (service_httpd24-httpd_start.jpg)
> Also I tried copying the module to the '/opt/rh/httpd24/root/etc/httpd/conf/' 
> path but it didn't worked too.
> 
> Please tell if I am doing something wrong as several other people tried too 
> but didn't find anything.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> <HTTPD_YUM.JPG><mod_wsgi_make.JPG><mod_wsgi_make_install.JPG><service_httpd24-httpd_start.JPG>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to