0

I can access phpmyadmin from the host (raspberry pi) ip address (http://192.168.1.109/phpmyadmin) but i am running a server at port 8080 with cherrypy. I couldn't access

http://192.168.1.109:8080/phpmyadmin

I get the following error:

    Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/CherryPy-3.2.2-py2.7.egg/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/dist-packages/CherryPy-3.2.2-py2.7.egg/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/CherryPy-3.2.2-py2.7.egg/cherrypy/_cperror.py", line 386, in __call__
    raise self
NotFound: (404, "The path '/phpmyadmin' was not found.")

How should I configure my phpmyadmin or cherrypy?

  • So you have PhpMyAdmin running on top of CherryPy and you can access it by 192.168.1.109/phpmyadmin but not with 192.168.1.109:8080/phpmyadmin? That means it runs on port 80 (which is taken as standard for http) – M. Mimpen Mar 13 '14 at 13:17
  • @M.Mimpen yes, my question is how can i configure so that my cherrypy web app can use the phpmyadmin? – yvonnezoe Mar 13 '14 at 15:04
  • You can access it via /phymyadmin but not via :8080/phpmyadmin? What's the problem then, you want to run it on 8080 instead of 80? – M. Mimpen Mar 13 '14 at 16:00
  • As said, I have cherrypy running at port 8080 that is why i'm asking if i should configure it to run phpmyadmin at port 8080? and how? – yvonnezoe Mar 13 '14 at 16:17
  • Put your files where CherryPy is listening then. – M. Mimpen Mar 13 '14 at 22:17
1

You should probably tell your webserver on port 80 (mostlikely Apache2) to use CherryPy as WSGI
Probably like theis: http://tools.cherrypy.org/wiki/ModWSGI

I dont know what you want to do with it in combination with PHPMyAdmin, but if you need to have it all on one system, thats the way to go.
If you need it all to be on port 8080, you can tell Apache to listen there

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.