NArc0t1c Posted September 17, 2007 Share Posted September 17, 2007 Hello there, I have recently installed python, Did all the instructions as needed, step by step. I had to rewrite my old httpd.conf, or did I? Well, apache's error log isn't giving much about this, so I cannot get any information on what is causing this. I have tried the config file with the python mod commented, and still nothing. I have meanwhile re-installed apache2, it now works, but it's without the python module. I have tried to edit my httpd.conf file, but still nothing. Here is my config file(httpd.conf). Attachment. Thanks in advance. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/69676-python-on-wamp/ Share on other sites More sharing options...
trq Posted September 18, 2007 Share Posted September 18, 2007 What do you see when you try and access a .py file? Ive always used a seperate virtual host for any mod_python stuff but most of your config looks ok. Of course you need to uncomment the LoadModule line, it will never work without it. Quote Link to comment https://forums.phpfreaks.com/topic/69676-python-on-wamp/#findComment-350269 Share on other sites More sharing options...
NArc0t1c Posted September 18, 2007 Author Share Posted September 18, 2007 Well, the contents within the file, is what I see when trying to access it. I know it won't work with it commented, I forgot to uncomment it when I uploaded it. Well, I tried the syntax checking with httpd, and here is what I get. C:\wamp\Apache2\bin>httpd -t httpd: Syntax error on line 117 of C:/wamp/Apache2/conf/httpd.conf: Cannot load C:/wamp/Apache2/modu les/mod_python.so into server: The specified procedure could not be found. C:\wamp\Apache2\bin> I read on modpython the website, in their FAQ they said to try and move pythonx.dll out of the windows dictionary, I tried that with no luck. Thanks so var. Ferdi Quote Link to comment https://forums.phpfreaks.com/topic/69676-python-on-wamp/#findComment-350373 Share on other sites More sharing options...
trq Posted September 18, 2007 Share Posted September 18, 2007 Your referencing the mod_python.so file in your config, windows uses .dll files so you should be using mod_python.dll I would assume. Quote Link to comment https://forums.phpfreaks.com/topic/69676-python-on-wamp/#findComment-350750 Share on other sites More sharing options...
NArc0t1c Posted September 19, 2007 Author Share Posted September 19, 2007 Thank you, if I am getting your theory correctly, it should work if I point it to the dll(python24.dll). But it still does not, here is my output for checking. C:\wamp\Apache2\bin>httpd -t httpd: Syntax error on line 117 of C:/wamp/Apache2/conf/httpd.conf: Can't locate API module structur e `python_module' in file C:/wamp/Apache2/bin/python24.dll: No error Thanks. Ferdi Quote Link to comment https://forums.phpfreaks.com/topic/69676-python-on-wamp/#findComment-350916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.