Ademir, Sorry, I hadn't realized that you were using this on a Windows box my apologies, however the fact that both Apache and Python need to be compiled for the same bit width is still necessary. I don't know how to test this on a windows machine since I never use them. You did mention in your 1st post that Apache is 32 bit and in your 2nd post that Python is 64 bit. It will never ever work like this, both MUST be the same.
~Carl On Sun, Mar 6, 2011 at 1:13 PM, Carl Nobile <[email protected]> wrote: > Ademir, > > Both Apache and Python must be compiled for 64 bits. In other words both > must be compiled the same either 32 or 64 bits. > Both Apache should have libs compiled for x86_64 if they are both 64 bit. > > You can use the ldd command to see how they are compiled. You will notice > that on the machine I used all the libs come from one of two /lib64 > directories, there are no 32 bit libs being used at all. > > $ ldd httpd > libm.so.6 => /lib64/libm.so.6 (0x00002b3713248000) > libpcre.so.0 => /lib64/libpcre.so.0 (0x00002b37134cb000) > libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b37136e7000) > libaprutil-1.so.0 => /usr/lib64/libaprutil-1.so.0 > (0x00002b3713900000) > libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b3713b1d000) > libldap-2.3.so.0 => /usr/lib64/libldap-2.3.so.0 > (0x00002b3713d55000) > liblber-2.3.so.0 => /usr/lib64/liblber-2.3.so.0 > (0x00002b3713f90000) > libdb-4.3.so => /lib64/libdb-4.3.so (0x00002b371419e000) > libexpat.so.0 => /lib64/libexpat.so.0 (0x00002b3714493000) > libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00002b37146b6000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b37148dd000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002b3714af7000) > libc.so.6 => /lib64/libc.so.6 (0x00002b3714cfc000) > libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b371504f000) > /lib64/ld-linux-x86-64.so.2 (0x00002b371302c000) > libuuid.so.1 => /lib64/libuuid.so.1 (0x00002b3715295000) > libpq.so.4 => /usr/lib64/libpq.so.4 (0x00002b371549a000) > libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00002b37156bc000) > libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b3715927000) > libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00002b3715b3d000) > libssl.so.6 => /lib64/libssl.so.6 (0x00002b3715d56000) > libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002b3715fa2000) > libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b37162f4000) > libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b3716586000) > libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 > (0x00002b371679f000) > libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b37169cd000) > libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 > (0x00002b3716bcf000) > libz.so.1 => /usr/lib64/libz.so.1 (0x00002b3716df5000) > libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 > (0x00002b3717009000) > libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002b3717211000) > > $ ldd python > libpython2.7.so.1.0 => > /opt/local/toolkit/python-2.7/lib/libpython2.7.so.1.0 (0x00002b7269874000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003145400000) > libdl.so.2 => /lib64/libdl.so.2 (0x0000003145000000) > libutil.so.1 => /lib64/libutil.so.1 (0x000000314d400000) > libm.so.6 => /lib64/libm.so.6 (0x0000003dd2600000) > libc.so.6 => /lib64/libc.so.6 (0x0000003144c00000) > /lib64/ld-linux-x86-64.so.2 (0x0000003144800000) > > ~Carl > > > On Sun, Mar 6, 2011 at 11:09 AM, Ademir Francisco da Silva < > [email protected]> wrote: > >> Hello all, >> >> Graham ..., >> >> I have sent only to you several emails on January_2011. Just look for >> them, Ok. >> As I told you before ( 01/2011 ) everything is right with the Python's >> installation except that it is 64bits, I am not sure whether is a big >> problem ... >> All users is default of the Python's installation so I do not change >> it for my installation too. >> >> Rich ... >> >> Of course. I did it. >> >> Guys ... >> >> I really need a help because is very important to solve it asap. Only >> 2 person talk to me about it and this is too few people. Please I know >> there are more than this so let's go and be kind with the newbee and >> answer me if it is possible. I am waiting for your suggestions, >> Thank you very much for your understanding and assistance. >> >> >> >> 2011/3/4, Rich <[email protected]>: >> > did you rename the file to mod_wsgi.so before trying to load it? >> > >> > On Mar 3, 11:23 pm, Ademir Francisco da Silva <[email protected]> >> > wrote: >> >> Hi all, >> >> >> >> I really need to solve a weird problem and this group is the right >> >> place to do that, so ... >> >> >> >> After I have installed the mod_swgi in my PC I have tried to access it >> >> via Apache and nothing happened as matter of fact it returns me a >> >> follow message ... >> >> >> >> httpd.exe: Syntax error on line 128 of C:/Program Files (x86)/Apache >> >> Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program >> >> Files (x86)/Apache Software Foundation/Apache2.2/modules/mod_wsgi.so >> >> into server: The specified module could not be found. >> >> >> >> Further information .... >> >> >> >> 1 ) The correct module mod_wsgi is there in that path above ( I have >> >> got it >> >> fromhttp:// >> code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32... >> >> ), and the httpd.conf file is Ok too ... >> >> 2 ) I have installed the Python 2.7.1 ... >> >> 3 ) I have installed Apache httpd Server 2.2.17_win32 - x86 - >> >> Openssl_0.9.8o.msi ... >> >> 4 ) I have got the Windows Vista 64 ... >> >> >> >> Apparently everything is right so please help me and give me a light >> >> because I don't know what to do. Thanks. >> >> >> >> Cheers, >> >> >> >> -- >> >> Ademir Francisco da Silva >> >> >> >> PS. I already have talking about it with Mr. Graham and he told me to >> >> try solve it with all you, so I was waiting sugestions. One more thing >> >> my S.O. is Windows Vista 64 as reported above and my Apache is 32bits, >> >> however, I am wondering whether someone have the same problem and how >> >> he/she solve it. Thanks again. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "modwsgi" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/modwsgi?hl=en. >> > >> > >> >> >> -- >> Ademir Francisco da Silva >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/modwsgi?hl=en. >> >> > > > -- > > ------------------------------------------------------------------------------- > Carl J. Nobile (Software Engineer) > [email protected] > > ------------------------------------------------------------------------------- > -- ------------------------------------------------------------------------------- Carl J. Nobile (Software Engineer) [email protected] ------------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
