Page 1 of 1

Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Thu Mar 13, 2014 1:06 pm
by yvonnezoe
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

Code: Select all

    http://192.168.1.109:8080/phpmyadmin
I get the following error:

Code: Select all

  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?

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Thu Mar 13, 2014 7:53 pm
by DougieLawson
Which web server are you running? Apache2? Lightttpd? or Nginx?

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Fri Mar 14, 2014 1:10 am
by yvonnezoe
DougieLawson wrote:Which web server are you running? Apache2? Lightttpd? or Nginx?
I believe the web server running at port 80 is Apache. The application using it is a camera app -> http://raspberrypiwonderland.wordpress. ... amera-app/

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 10:39 am
by DougieLawson
When you install phpmyadmin it automatically updates your Apache2 config.

Try http://192.168.1.109/phpmyadmin with no port override.

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 10:57 am
by yvonnezoe
DougieLawson wrote:When you install phpmyadmin it automatically updates your Apache2 config.

Try http://192.168.1.109/phpmyadmin with no port override.
Yes i can access that http://192.168.1.109/phpmyadmin. But how can i access that database from an app deployed at port 8080?

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 11:03 am
by DougieLawson
Does cherry support reverse proxying?

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 3:34 pm
by yvonnezoe
DougieLawson wrote:Does cherry support reverse proxying?
Not too sure. what is that?

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 4:02 pm
by DougieLawson
yvonnezoe wrote:
DougieLawson wrote:Does cherry support reverse proxying?
Not too sure. what is that?
If I have more than one machine on my network running web servers I can use reverse proxy on one server to connect to the other and seamlessly present it as though it was hosted on the primary machine.

With Apache I can do that with

Code: Select all

        ProxyPass /RPi http://pi.local/
        ProxyPassReverse /RPi http://pi.local/
When I visit http://webserver.local/RPi/foo.html it redirects my request to http://pi.local/foo.html

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Posted: Sat Mar 15, 2014 4:25 pm
by yvonnezoe
DougieLawson wrote:
If I have more than one machine on my network running web servers I can use reverse proxy on one server to connect to the other and seamlessly present it as though it was hosted on the primary machine.

With Apache I can do that with

Code: Select all

        ProxyPass /RPi http://pi.local/
        ProxyPassReverse /RPi http://pi.local/
When I visit http://webserver.local/RPi/foo.html it redirects my request to http://pi.local/foo.html
Thanks Dougie. I did a search and found nginx reverse proxy. There's quite an amount of information to be processed within such a short period of time for me. I would like to clarify my thoughts, please correct me wherever i'm wrong:
so I have to use this nginx reverse proxy because i want to access all my web servers on that machine (raspberry pi) from just one address, say http://localhost. But I still can retain and run my apache and cherrypy server?
ok, mindblock. :cry:
could you direct me to some tutorial sites on how to do this properly? Or do you mind to explain a little bit more? I have really no idea on server backend or proxy thingy. :cry:
What about mod_wsgi? http://tools.cherrypy.org/wiki/ModWSGI I found out about this from stackoverflow forum but this is too confusing.