View previous topic :: View next topic |
Author |
Message |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Thu Jul 21, 2005 10:20 pm Post subject: mail server and mysql issue [solved] |
|
|
I registered a domain name recently and I'm sort've using the brute-force method to make myself finally knuckle-down and become more geek.
I've followed the http://gentoo-wiki.com/HOWTO_Apache2_with_PHP_MySQL as well as the http://gentoo-wiki.com/HOWTO_Email_Virtual_Hosting_with_Courier_and_MySQL
I haven't had any problems that couldn't be figured out with enough backspacing. =/
However, I've got the daemons up and running alright but when I try to log in with Thunderbird, I get a "temporary problem" message with no other explanation. My logs show a FAILED LOGIN along with my username, IP and this:
Code: |
Jul 21 17:13:23 [pop3d-ssl] authentication error: Input/output error
Jul 21 17:13:23 [authdaemond] failed to connect to mysql server (server=<mydomain>.com, userid=<myid>): Can't connect to MySQL server on '<mydomain>.com' ($111) |
Now ... I'm wondering if I should be convincing my mail server to connect to the mysql server on localhost instead of the domain. Am I headed in the right direction? Either way, I need some help to make it to the next step.
edit: One machine is doing all of this but if it's trying to connect on my domain, could a NAT firewall be the problem? ie., if I wasn't forwarding the port. If so, what port?
Last edited by morphal on Wed Aug 03, 2005 7:34 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Redeeman l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/117688223440573d81a4402.jpg)
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Thu Jul 21, 2005 11:22 pm Post subject: |
|
|
well yes, you need to make it connect to localhost (you should also specify the socket) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Fri Jul 22, 2005 12:08 am Post subject: |
|
|
Heh, awesome. How do I do that? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Sat Jul 23, 2005 1:42 am Post subject: |
|
|
I know I can't demand help but I can at least try a little to make sure my problem is visible to those who can offer it. =)
/bump |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Tue Jul 26, 2005 2:54 pm Post subject: |
|
|
help? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Jul 26, 2005 3:16 pm Post subject: |
|
|
Since it's your authdaemon that's complaining in the logs I'd check your /etc/courier/authlib/authmysqlrc You'll like want to set your server to localhost here and maybe a few other variables if you've never touched this file.
Code: |
MYSQL_SERVER localhost
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Tue Jul 26, 2005 4:46 pm Post subject: |
|
|
Alright, I edited that file to include the MYSql admin name and password in addition to pointing it at localhost instead of my domain. However, now, I can't seem to log in to phpmyadmin. I also get the same error message on the client side and my logs just show a failed login and Code: | authentication error: Input/output error |
I'm certainly getting closer but I probably screwed up some important step during the install and setup. I'm tempted to go back and redo the whole thing. Is there an easy way to remove the current instance so I can be absolutely certain that it wont interfere with the next attempt? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Jul 26, 2005 5:58 pm Post subject: |
|
|
IIRC phpmyadmin assumes you have a Mysql account named pma setup with the correct privileges. It'll use that to log into Mysql rather than any other accounts. I believe the ebuild mentions setting this up or the setup page of phpmyadmin. If you've created this account remember you'll need to run flush privileges or restart Mysql in order to activate the access.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Tue Jul 26, 2005 6:23 pm Post subject: |
|
|
During the past few days I've been logging into phpmyadmin with an admin name I had set up using the steps from the HowTo. I don't quite know how I screwed it up. I've restarted mysql though. The last post with the errors was after the restart had already been done.
I really should have done this on my test server first. I built one on purpose and I just haven't used it. I get over-eager ... but whatever, this is all a learning experience. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Jul 26, 2005 7:00 pm Post subject: |
|
|
It's possible you changed access on the account PHPMyadmin is using to control Mysql. I'd think that PMA needs an account with full access to Mysql rather than just yoru mail database. Can't say I can help much more since I never bothered to install it.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Tue Jul 26, 2005 8:50 pm Post subject: |
|
|
Alright, this php/mysql/mail stuff is just for my own education. I can nuke the whole install and start again. What's the best way to get rid of everything? Unmerging of course but what else should be done to make sure I don't end up with remnants from this screwed up instance interfering with the next one? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Fri Jul 29, 2005 5:17 am Post subject: |
|
|
poke |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Wed Aug 03, 2005 6:56 pm Post subject: |
|
|
help? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Wed Aug 03, 2005 7:32 pm Post subject: |
|
|
rm the config files in /etc/ like /etc/postfix/, /etc/sasl2/, etc. Then check for stuff in /etc/conf.d/
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Wed Aug 03, 2005 7:34 pm Post subject: |
|
|
Again, you are the awesome. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Aug 03, 2005 7:37 pm Post subject: |
|
|
kashani wrote: | It's possible you changed access on the account PHPMyadmin is using to control Mysql. I'd think that PMA needs an account with full access to Mysql rather than just yoru mail database. |
Oddly enough, no - the pma account for phpmyadmin is read-only, and only used to present the tables and variables to your browser.
To actually do any sql operations like creating or dropping databases it uses the mysql user you logged into phpmadmin with.
Yes, you did not want to know that. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morphal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Feb 2005 Posts: 183 Location: Houston
|
Posted: Wed Aug 03, 2005 8:06 pm Post subject: |
|
|
Actually, that's good to know. I was pretty sure I had done things right but sometimes you just have to take the word of more experienced users. I understand the concept for this stuff but I'm just not familiar with all of the commands and how to properly use them. Learning all of that is exactly what this project is all about. All of this information is useful even if not immediately used. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|