Unix Technical Forum

phpmyadmin

This is a discussion on phpmyadmin within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hello all, I have apache php + mysql all working together nicely. I have just installed phpmyadmin from ports. ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:06 AM
dmc
 
Posts: n/a
Default phpmyadmin

Hello all,

I have apache php + mysql all working together nicely.
I have just installed phpmyadmin from ports.
I have edited my phpmyadmin files appropriately (i think).
When i try to hit the index page for phpmyadmin i get complaint:

#2002 - The server is not responding (or the local MySQL server's socket
is not correctly configured)

Does anybody have any ideas of anything i might be missing?

Thx in advance

Dmc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:06 AM
jKILLSPAM.schipper@math.uu.nl
 
Posts: n/a
Default Re: phpmyadmin

dmc <westcoastx@yahoo.com> wrote:
> Hello all,
>
> I have apache php + mysql all working together nicely.
> I have just installed phpmyadmin from ports.
> I have edited my phpmyadmin files appropriately (i think).
> When i try to hit the index page for phpmyadmin i get complaint:
>
> #2002 - The server is not responding (or the local MySQL server's socket
> is not correctly configured)
>
> Does anybody have any ideas of anything i might be missing?


Do you have MySQL running? Where did you tell MySQL to put it's socket
(/tmp by default, IIRC)? Where did you tell phpMyAdmin to look (/tmp by
default, I assume)?

Did you forget, perchance, that OpenBSD's httpd is chrooted to /var/www
so you'll have to place a socket under /var/www somewhere?

Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:06 AM
dmc
 
Posts: n/a
Default Re: phpmyadmin

jKILLSPAM.schipper@math.uu.nl wrote:
> dmc <westcoastx@yahoo.com> wrote:
>
>>Hello all,
>>
>>I have apache php + mysql all working together nicely.
>>I have just installed phpmyadmin from ports.
>>I have edited my phpmyadmin files appropriately (i think).
>>When i try to hit the index page for phpmyadmin i get complaint:
>>
>>#2002 - The server is not responding (or the local MySQL server's socket
>>is not correctly configured)
>>
>>Does anybody have any ideas of anything i might be missing?

>
>
> Do you have MySQL running? Where did you tell MySQL to put it's socket
> (/tmp by default, IIRC)? Where did you tell phpMyAdmin to look (/tmp by
> default, I assume)?
>
> Did you forget, perchance, that OpenBSD's httpd is chrooted to /var/www
> so you'll have to place a socket under /var/www somewhere?
>
> Joachim

Thx Joachim,

Ah, of course, forgot about that (doh!) mysql.sock is in /var/run/..

So, i have created a folder /tmp in /var/www, how do i move the socket?
I tried creating a symlink to the socket in /var/run/.., told phpmyadmin
where to look for the socket, and still no joy.

ps mysql is running
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 07:06 AM
jKILLSPAM.schipper@math.uu.nl
 
Posts: n/a
Default Re: phpmyadmin

dmc <westcoastx@yahoo.com> wrote:
> jKILLSPAM.schipper@math.uu.nl wrote:
>> dmc <westcoastx@yahoo.com> wrote:
>>
>>>Hello all,
>>>
>>>I have apache php + mysql all working together nicely.
>>>I have just installed phpmyadmin from ports.
>>>I have edited my phpmyadmin files appropriately (i think).
>>>When i try to hit the index page for phpmyadmin i get complaint:
>>>
>>>#2002 - The server is not responding (or the local MySQL server's socket
>>>is not correctly configured)


>> Do you have MySQL running? Where did you tell MySQL to put it's socket
>> (/tmp by default, IIRC)? Where did you tell phpMyAdmin to look (/tmp by
>> default, I assume)?
>>
>> Did you forget, perchance, that OpenBSD's httpd is chrooted to /var/www
>> so you'll have to place a socket under /var/www somewhere?


> Ah, of course, forgot about that (doh!) mysql.sock is in /var/run/..
>
> So, i have created a folder /tmp in /var/www, how do i move the socket?
> I tried creating a symlink to the socket in /var/run/.., told phpmyadmin
> where to look for the socket, and still no joy.
>
> ps mysql is running


See
http://dev.mysql.com/doc/refman/4.1/...ysql-sock.html.

On a side note, chrooting MySQL may not be a bad idea... just to make
stuff more difficult. ;-)

Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 07:06 AM
dmc
 
Posts: n/a
Default Re: phpmyadmin

jKILLSPAM.schipper@math.uu.nl wrote:
>
> On a side note, chrooting MySQL may not be a bad idea... just to make
> stuff more difficult. ;-)
>
> Joachim


Chroot mysql? (sighs)

Thx for help Joachim, have a good new year ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com