Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


Search this Thread
Old 09-24-2010, 03:22 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
I have problem with configuration on apache, mysql and php for AMXbans

Hi, i have a problem with AMXbans.

My Linux is Slackware 13.0. , mysql is version 5.0.84, Apache/2.2.13,PHP 5.2.3
from locahost or real IP in internet explorer i see this error " Lost connection to MySQL server at 'reading initial communication packet', system error: 111".
In /var/log/httpd/error_log i see this error:
" [error] [client IP] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>>function.mysql-connect</a>]:Lost connection to MySQL
server at 'reading initial communication packet', system error: : 111 in /var/www/htdocs/web/include/ on line 48, referer: http://My real IP/web/

//connect to db - "this is line 46"
$config->db_host=gethostbyname($config->db_host); "this is line 46"
$mysql = mysql_connect($config->db_host,$config->db_user,$config->db_pass) or die (mysql_error()); - "this is line 48"

Please ,help me for fix that error
I apologize for my bad English. Thenks

Last edited by hyperborea; 09-24-2010 at 01:31 PM.
Old 09-26-2010, 04:47 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,010

Rep: Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347

Check if you have a firewall running that is blocking access to port 3306.
Also take a look at /etc/my.cnf and comment out "skip-networking" and "bind-address".
Restart mysqld and check if it works



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in configuration of php and apache jetro2k5 Linux - Newbie 2 04-11-2007 02:21 AM
Initial PHP configuration after starting MySQL and Apache studioq Linux - Newbie 2 09-28-2006 12:23 AM
Apache PHP Configuration Problem Br. Nicholas Suse/Novell 3 09-20-2006 04:59 PM
Apache MySQL PHP configuration Gilion Linux - Software 1 02-02-2004 11:58 AM
apache php-mysql configuration problems ugol Linux - Software 1 11-08-2003 10:13 PM

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration