Linux Admin Blog

System Administration, Linux, Solaris, Backup, Networking, Security, Mysql, Script, Tips & Tricks

Archive for the ‘Problems & Solutions’ Category

Call to undefined function: mysql_connect()

Posted by sanjaydalal4u on October 23, 2009

Solutions:

Solution 1)   Remove php5-mysql with “apt-get remove php5-mysql”  and install it again or

Solution 2)   Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so)  or

Solution 3)   Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)

Posted in Problems & Solutions | Leave a Comment »

Hosts.deny auto blocking 127.0.0.1

Posted by sanjaydalal4u on April 29, 2009

Problem: 

I am getting the below erro when i tried to connect Remote Connection with my server in Nxserver Log.

Error: ssh_exchange_identification: Connection closed by remote host + nxserver

I stopped the denyhosts removed the entry from hosts.deny then restated denyhosts but “sshd: 127.0.0.1″ keeps getting added to hosts.deny

 

Solution:

Try checking the ufw, type in a shell:

     sudo ufw status

If you have any kind of rule here, then try:

   sudo ufw allow from 127.0.0.0/8

This will allow all to localhost

Posted in Problems & Solutions | Leave a Comment »