yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Cannot Access phpmyadmin from Cherrypy port 8080

Thu Mar 13, 2014 1:06 pm

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?
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

User avatar
DougieLawson
Posts: 39895
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Thu Mar 13, 2014 7:53 pm

Which web server are you running? Apache2? Lightttpd? or Nginx?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Fri Mar 14, 2014 1:10 am

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/
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

User avatar
DougieLawson
Posts: 39895
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 10:39 am

When you install phpmyadmin it automatically updates your Apache2 config.

Try http://192.168.1.109/phpmyadmin with no port override.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 10:57 am

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?
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

User avatar
DougieLawson
Posts: 39895
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 11:03 am

Does cherry support reverse proxying?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 3:34 pm

DougieLawson wrote:Does cherry support reverse proxying?
Not too sure. what is that?
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

User avatar
DougieLawson
Posts: 39895
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 4:02 pm

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
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Re: Cannot Access phpmyadmin from Cherrypy port 8080

Sat Mar 15, 2014 4:25 pm

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.
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

Return to “Troubleshooting”