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. ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 ;-) |