Current time: 05-16-2024, 03:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
Trouble with ispcp-rqst-mngr
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #21
RE: Trouble with ispcp-rqst-mngr
logging in mysql - see /etc/mysql/my.cnf
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1

I cannot help - you have to find out why the perl programm cannot connect to mysql.

Is it a socket thing, is it a port thing... ???

Also try to stop mysql and see if theres a different error message.

Maybe there's a way to get a return code in the perl part where the connection is built up...

/J
10-08-2011 07:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #22
RE: Trouble with ispcp-rqst-mngr
well, i enable MySQL logging and nothing gets logged. This tells me there is something wrong with the script. Any thoughts there? It used to work, then I did some things and the PHP stopped working. I fixed that by restoring the original isp configuration file and rebuilding the password. Please let me know if there is anything you can think of.
10-09-2011 01:14 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #23
RE: Trouble with ispcp-rqst-mngr
Hi

hm - a big fish...

ok, next, I'd use a sniffer (like tcpdump) to "see" what happens on the ports.

You may need to reduces the ports and ip addresses to get only the wanted traffic.

normally a

tcpdump -i localhost -w tcp.log -s0 port 3306

should do it - but maybe you also check ip "127.0.0.1" and maybe you check without exact port...

I have no idea why it doen't connect.

/J
10-10-2011 06:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #24
RE: Trouble with ispcp-rqst-mngr
would a reinstall give me a problem with my database being wiped and my current information removed?
10-12-2011 04:10 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #25
RE: Trouble with ispcp-rqst-mngr
normally not.

But always:
Be sure to backup the db-key files and to backup the data (db, files, /etc etc)

/J
10-12-2011 08:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #26
RE: Trouble with ispcp-rqst-mngr
okay, I guess I will start the journey of trying to fix this again.

There are no other ideas as to why I am getting the SQL connection error in the doHashSQL() function?
Here is one, how can I change the IP it is attempting to connect to? I would like to test changing 127.0.0.1 to localhost and see if that does anything.
(This post was last modified: 10-20-2011 01:15 AM by ewestlake.)
10-20-2011 01:08 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #27
RE: Trouble with ispcp-rqst-mngr
change here:
/etc/ispcp/ispcp.conf

DATABASE_TYPE = mysql
DATABASE_HOST = localhost
DATABASE_NAME = ispcp
DATABASE_PASSWORD = xxx==
DATABASE_USER = ispcp-root

/J
10-20-2011 08:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #28
RE: Trouble with ispcp-rqst-mngr
joximu, If the PHP side is working, would that not be pulling from the same spot as the Perl side?
10-24-2011 09:48 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #29
RE: Trouble with ispcp-rqst-mngr
Hm, Perl and PHP have different libraries...

normally it works whatever cleint you use (command line, perl, php etc etc) if you use always the same credentials (host, username, password and client-ip)...

But - well... you never know... since you already tried alot, I would not say for sure that php-mysql and perl-mysql is exactly the same...

You got me?

/Joxi
10-24-2011 10:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #30
RE: Trouble with ispcp-rqst-mngr
is there a way to escalate this issue?
10-25-2011 01:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)