As noted in the StackOverflow post, you should try uninstalling the mod_wsgi 
package:

    pip uninstall mod_wsgi

and then reinstalling using:

    LDFLAGS=-lm pip install -U mod_wsgi 

Did you try that?

Show a copy of all output when you ran these commands and then subsequent ran 
mod_wsgi-express.

BTW, why are you using the —system-site-packages to virtualenv. That is in 
general regarded as a bad practice and why it is not a default for virtualenv 
any more.

Graham

> On 7 Jul 2016, at 7:21 PM, Ebrahim Karam <[email protected]> wrote:
> 
> Other References Checked
> 
> This Post was posted before but the solution presented didn't work for me. 
> (https://groups.google.com/forum/#!topic/modwsgi/L1iJeUpPTks 
> <https://groups.google.com/forum/#!topic/modwsgi/L1iJeUpPTks>)
> I also saw the exact same question on StackOverflow
> (http://stackoverflow.com/questions/36920145/python-django-starting-apache-with-mod-wsgi/38222400#38222400
>  
> <http://stackoverflow.com/questions/36920145/python-django-starting-apache-with-mod-wsgi/38222400#38222400>)
> I tried the solution posted as a comment by  Graham Dumpleton
> But that error persisted. 
> 
> I suggested a solution on Stackoverflow about installing 
> libapache2-mod-wsgi-py3 but that is not possible for me since alot of sites 
> on the Apache I'm running heavily really on python 2
> 
> My OS, Apache, and Specifications
> 
> Apache Details 
> Server version: Apache/2.2.22 (Ubuntu)
> Server built: Jul 24 2015 17:25:42
> Server's Module Magic Number: 20051115:30
> Server loaded: APR 1.4.6, APR-Util 1.3.12
> Compiled using: APR 1.4.6, APR-Util 1.3.12
> Architecture: 32-bit
> 
> Server Details
> 32 bit
> Ubuntu 12.04.5 LTS
> Space: 51,4 GB
> processor: Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
> 
> Mod_Wsgi
> Version (4.5.3)
> Installed into python 3 using Pip 
> I got the stable release NOT from the github repository
> 
> What I've done till I received the Error
> 
> I opened terminal and setted up a virtual environment using the following 
> command 
> virtualenv --python=python3.5 --system-site-packages flaskenv
> 
> Then I activated the environment and installed the mod_wsgi package
>  After wards I ran the following command from the terminal 
> mod_wsgi-express start-server
> 
> I get the following Message/ error
> Server URL         : http://localhost:8000/
> Server Root        : /tmp/mod_wsgi-localhost:8000:1027
> Server Conf        : /tmp/mod_wsgi-localhost:8000:1027/httpd.conf
> Error Log File     : /tmp/mod_wsgi-localhost:8000:1027/error_log (warn)
> Request Capacity   : 5 (1 process * 5 threads)
> Request Timeout    : 60 (seconds)
> Queue Backlog      : 100 (connections)
> Queue Timeout      : 45 (seconds)
> Server Capacity    : 20 (event/worker), 20 (prefork)
> Server Backlog     : 500 (connections)
> Locale Setting     : es_ES.UTF-8
> apache2 (mod_wsgi-express): Syntax error on line 151 of 
> /tmp/mod_wsgi-localhost:8000:1027/httpd.conf: Cannot load 
> /usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so
>  into server: 
> /usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so:
>  undefined symbol: fmod
> 
> This runs perfectly when I use python 2 with mod_wsgi installed on it (I 
> don't know if that information is helpful)
>  
>   
> 
> 
> 
> -- 
> 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>.

-- 
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