Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/02/2005 06:39:08
|
cdnmama
Beginner
Joined: 12/05/2004 20:45:53
Messages: 42
Location: Ontario, Canada
Offline
|
Hello....I was adding the mod for 'logging the IP rather than the hostname' on the guestbooks I maintain. I got to guestbook number 4, edited the add.class.php file and uploaded it. I then opened the guestbook in my browser and I got this error.....
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/***/public_html/guestbook/lib/mysql.class.php on line 30
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/***/public_html/guestbook/lib/mysql.class.php on line 30
Connection Error
I didn't have a problem with the first 3 books so I wonder if this is a server problem instead of from editing the add.class.php file? I haven't looked at that guestbook for awhile. The server is using PHP Version : 4.1.1
Any ideas? Thanks for any help
Deb
|
http://weeinspirations.com
http://dreamworkdesigns.com
http://debsdesignandhosting.com |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/02/2005 06:57:34
|
Anonymous
|
Are you sure you have the path to the document root set correctly? Seems the most likely problem. Are all the other guestbooks on the same webhost?
I always run a little basedir script to get this information correct from webhost to webhost - saves me a lot of work and frustrations.
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/02/2005 07:24:05
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
download the files again and reupload the original of the file you editted. If it still errors then we know it was your host.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/02/2005 20:20:14
|
cdnmama
Beginner
Joined: 12/05/2004 20:45:53
Messages: 42
Location: Ontario, Canada
Offline
|
Thanks for the replies....the book that is erroring, is on a different server than the others. I think the server is the problem now, as I can't login into phpMyAdmin. I'm getting an error there too. Time to fire off an email to support
thanks again
|
http://weeinspirations.com
http://dreamworkdesigns.com
http://debsdesignandhosting.com |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/02/2005 20:28:39
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
Yep - probably a server / host issue - especially if the script was working fine and the only thing you were doing was modifying a few lines.... The only other time I will see that error is if a webmangler changes his account password but doesn't change the password in a script's config file that contains the MySql path and password....
|
--------------- |
|
|