Your Python installation when configured for the build wasn’t given —enable-shared option.
See: https://code.google.com/p/modwsgi/wiki/InstallationIssues#Mixing_32_Bit_And_64_Bit_Packages <https://code.google.com/p/modwsgi/wiki/InstallationIssues#Mixing_32_Bit_And_64_Bit_Packages> http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html <http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html> Graham > On 23 Jul 2015, at 10:02 pm, indiapetm...@gmail.com wrote: > > Hi and greetings!!! > > I completed reinstalled my CentOS 6.6+python3.4+djang0 1.8.3 . I did all > installed all required tools for Django project. My project runs well with > python3.4 manange.py runserver 192.168.100.20:80 works great . > > > Now time the important golden tool to install mod_wsgi 4.4.13 . > > I downloaded "setuptools-18.0.1" and installed pip "easy_install -U pip" and > installed perfectly . > #pip3.4 install mod_wsgi > > Error in Last few lines : > wsgi_convert.o build/temp.linux-x86_64-3.4/src/server/wsgi_validate.o > build/temp.linux-x86_64-3.4/src/server/wsgi_restrict.o > build/temp.linux-x86_64-3.4/src/server/wsgi_daemon.o -o > build/lib.linux-x86_64-3.4/mod_wsgi/server/mod_wsgi-py34.cpython-34m.so > -L/usr/local/lib -L/usr/local/lib/python3.4/config-3.4m -lpython3.4m > /usr/bin/ld: /usr/local/lib/libpython3.4m.a(abstract.o): relocation > R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when > making a shared object; recompile with -fPIC > /usr/local/lib/libpython3.4m.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > ---------------------------------------- > Command "/usr/local/bin/python3.4 -c "import setuptools, > tokenize;__file__='/tmp/pip-build-n_4jpte6/mod-wsgi/setup.py';exec(compile(getattr(tokenize, > 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" > install --record /tmp/pip-d8z3uukm-record/install-record.txt > --single-version-externally-managed --compile" failed with error code 1 in > /tmp/pip-build-n_4jpte6/mod-wsgi > > Complete error on pastebin : http://pastebin.com/fjB2gFNL > > > Thank you Again > > > > On Monday, July 20, 2015 at 8:18:04 PM UTC+5:30, indiap...@gmail.com wrote: > Hi , > > Greetings Experts !! > > > > I pleased to expecting support from you all . As newbie . I am developing > Django based website . But I am struck to access via Apache web server > .Possible maybe you can help me out to solve . I like to host multiple > websites on the same server . > > > > Hope i will be get very positive support from you .Something i am missing > but ,I am not sure where i did mistake . Please help me to find our and fix > .IPlease help to guide how to host multiple webpages in single server . That > would be very nice . > > > > Thanks in Advance .maybe following informations will help you to understand > my set-up . > > > $ cat /etc/redhat-release > > CentOS release 6.6 (Final) > > > > $ rpm -qa|grep pip > > > python34u-pip-7.0.3-1.ius.centos6.noarch > > > > $ rpm -qa|grep python34u-li > > python34u-libs-3.4.3-2.ius.centos6.x86_64 > > > > $ rpm -qa|grep python34u-setuptools > > > python34u-setuptools-17.1.1-1.ius.centos6.noarch > > > > > $ httpd -V > > Server version: Apache/2.2.15 (Unix) > > Server built: Oct 16 2014 14:48:21 > > > $ python3.4 > > Python 3.4.3 (default, Jun 2 2015, 13:59:03) > > > $ rpm -q mod_wsgi > > mod_wsgi-3.2-7.el6.x86_64 > > > > > > My Application Folder Tree : > > > tree /Testsite/ > > /Testsite/ > > `-- rb > > |-- lori > > | |-- __init__.py > > | |-- __pycache__ > > | | |-- __init__.cpython-34.pyc > > | | |-- admin.cpython-34.pyc > > | | |-- models.cpython-34.pyc > > | | |-- urls.cpython-34.pyc > > | | `-- views.cpython-34.pyc > > | |-- admin.py > > | |-- models.py > > | |-- tests.py > > | |-- urls.py > > | `-- views.py > > |-- manage.py > > |-- rb > > | |-- __init__.py > > | |-- __pycache__ > > | | |-- __init__.cpython-34.pyc > > | | |-- settings.cpython-34.pyc > > | | |-- urls.cpython-34.pyc > > | | `-- wsgi.cpython-34.pyc > > | |-- media > > | | `-- static > > | | |-- css > > | | | `-- justified-nav.css > > | | |-- img > > | | | `-- favicon.ico > > | | `-- js > > | | |-- ie-emulation-modes-warning.js > > | | `-- ie10-viewport-bug-workaround.js > > | |-- settings.py > > | |-- urls.py > > | `-- wsgi.py > > `-- templates > > `-- index.html > > > 11 directories, 25 files > > > > > /Testsite/rb/rb/wsgi.py > > > """ > > > > WSGI config for rb project. > > > > It exposes the WSGI callable as a module-level variable named > ``application``. > > > > For more information on this file, see > > https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ > <https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/> > > """ > > > > import os > > import sys > > > > os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rb.settings") > > > > from django.core.wsgi import get_wsgi_application > > application = get_wsgi_application() > > > > > /etc/httpd/conf.d/testsite.com.conf > > > > LoadModule wsgi_module modules/mod_wsgi.so > > > > <VirtualHost 0.0.0.0:80> > > ServerAdmin serv3rad...@localhost.com <mailto:serv3rad...@localhost.com> > > ServerName www.mylproject.loc <http://www.mylproject.loc/> > > ServerAlias myproject.loc > > DocumentRoot /Testsite/rb/ > > ErrorLog /var/log/testsite.com-error.log > > CustomLog /var/log/testsite.com-access.log combined > > WSGIProcessGroup apache > > WSGIScriptAlias / /Testsite/rb/rb/wsgi.py > > </VirtualHost> > > > > WSGIPythonPath /Testsite/rb/:/usr/lib/python3.4/site-packages > > > > WSGIApplicationGroup %{GLOBAL} > > WSGIProcessGroup apache > > WSGIRestrictEmbedded On > > WSGILazyInitialization On > > > > #Further relax access to the default document Root: > > <Directory "/Testsite/rb"> > > Options Indexes FollowSymLinks > > AllowOverride None > > Order deny,allow > > Deny from all > > </Directory> > > > > <Directory "/Testsite/rb/rb"> > > <Files wsgi.py> > > Order deny,allow > > Deny from all > > </Files> > > </Directory> > > > > > > > /etc/httpd/conf/httpd.conf > > > > DocumentRoot "/Testsite/rb" > > > > <Directory "/Testsite/rb"> > > Options FollowSymLinks > > AllowOverride None > > Order allow,deny > > Allow from all > > </Directory> > > > > > $ httpd -M > > > > Loaded Modules: > > core_module (static) > > mpm_prefork_module (static) > > http_module (static) > > so_module (static) > > auth_basic_module (shared) > > auth_digest_module (shared) > > authn_file_module (shared) > > authn_alias_module (shared) > > authn_anon_module (shared) > > authn_dbm_module (shared) > > authn_default_module (shared) > > authz_host_module (shared) > > authz_user_module (shared) > > authz_owner_module (shared) > > authz_groupfile_module (shared) > > authz_dbm_module (shared) > > authz_default_module (shared) > > ldap_module (shared) > > authnz_ldap_module (shared) > > include_module (shared) > > log_config_module (shared) > > logio_module (shared) > > env_module (shared) > > ext_filter_module (shared) > > mime_magic_module (shared) > > expires_module (shared) > > deflate_module (shared) > > headers_module (shared) > > usertrack_module (shared) > > setenvif_module (shared) > > mime_module (shared) > > dav_module > ... > > -- > 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 > <mailto:modwsgi+unsubscr...@googlegroups.com>. > To post to this group, send email to modwsgi@googlegroups.com > <mailto:modwsgi@googlegroups.com>. > Visit this group at http://groups.google.com/group/modwsgi > <http://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 modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.