Howard Lowndes wrote:
>
> This is hopefully a simple problem.
>
> I have just upgraded my server from RH 6.2 to RH 7.0 and have upgraded the
> MySql as well. Having sorted out the missing Perl modules I have finally
> arrived at the point where the following error is returned by Perl to the
> browser:
>
> Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (111) at
> /var/www/cgi-perl/lannet_login.pl line 30.
>
> When I try to run the same script on the server as:
>
> perl -d /var/www/cgi-perl/lannet_login.pl
>
> It runs OK and completes, so the problem looks to be between Apache and
> MySQL.
>
> The socket does exist, is 777 and is UID=mysql. Apache is running as
> UID=apache and in the perl script the MySQL user is LANNet.
>
> Where should I be starting to look for the problem. I am even flicked as
> to what documentation I should be looking at.
>
>
Make sure apache has read and execute permisson on the directory that
contains the
mysql.sock.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php