List:General Discussion« Previous MessageNext Message »
From:Vivek Khera Date:December 18 2000 4:44pm
Subject:Re: Probems w/Apache and MySql
View as plain text  
>>>>> "KK" == Ken Kramer <trilight@stripped> writes:

DBI-> connect(dbname) failed: Can't connect to local MySql server through
KK> socket '
KK> /var/lib/mysql/mysql.sock' (111) at perl-script-name

KK> When i execute this the perl script from the command line it works fine.  Is
KK> there a
KK> permission problem?  Please HELP!

Whenever a program works from the command line but not from a CGI, the
major differences are the environment.  Check your environment
variables.  Also, CGI's usually run as a user other than yourself, and
possibly on another machine.  Check what exactly is different between
the two invocations of your program and one of these things will be
the cause of your error.

Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@stripped       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera
Probems w/Apache and MySqlKen Kramer18 Dec
  • Re: Probems w/Apache and MySqlVivek Khera18 Dec