1

I am frustrated right now as I have been battling with how to get this to work but no solution that I have followed so far are able to rescue me. I have followed this SO answer but it is still a futile effort. When I run index.py it says Unable to connect*. This is the third day.

Just switching from PHP to Python. Have reinstalled Python and WAMP server afresh after all the tweaking and would like someone to help me on how to get this to work in any simple way possible.

Community
  • 1
  • 1
Yax
  • 2,127
  • 5
  • 27
  • 53
  • Upvote for frustration flowing from this question all over the place – ex3v Jul 03 '14 at 13:34
  • Did you install `mod_cgi` for Apache to run Python as `CGI` or `mod_wsgi` to run Python as `WSGI` (for example to use `Django` or `Flask` framework) ? – furas Jul 03 '14 at 14:22
  • I actually configured the way it was suggested on the SO answer I mentioned in my question. – Yax Jul 03 '14 at 14:28
  • You mean first answer or second ? If second so you have WSGI. Do you know how to write WSGI python scripts ? – furas Jul 03 '14 at 14:51
  • @furas: The second one. – Yax Jul 03 '14 at 15:31
  • Can you connect with `http://localhost/` ? Have you try `http://localhost:8090/` - because there is line in config with port 8090. Have you try `http://localhost:8090/myapp` – furas Jul 03 '14 at 15:56
  • @furas: Yes but `http://localhost:8090/` won't connect. And `http://localhost:8090/myapp` won't connect either. – Yax Jul 03 '14 at 15:58
  • Is `http://localhost/` working ? – furas Jul 03 '14 at 15:59
  • Yes. It is working perfectly. I run my PHP file there and it works well. – Yax Jul 03 '14 at 16:00
  • OK, so Apache is running. Have you try `http://localhost:8090/myapp` ? – furas Jul 03 '14 at 16:00

0 Answers0