If you get PHP Warning: mysql_connect(): No such file or directory and unable to connect mysql through php then change localhost to 127.0.0.1 while connecting to database
example:
$connection = mysql_connect('localhost', 'root', 'password');
to
$connection = mysql_connect('127.0.0.1', 'root', 'password'...
Linux users we provide solutions to different Problems we face every Day. This is Linux Troubleshoot Site, developed by Linux users.
Friday, 26 April 2013
Wednesday, 10 April 2013
Solution : The mysqli extension is missing. Please check your PHP configuration
if you get The mysqli extension is missing. Please check your PHP configuration error in phpmyadmin
follow two steps
1. install php-mysql
in redhat , fedora
yum install php-mysql
in ubuntu
apt-get install php-mysql
2. restart apache server
restart mys...
Tuesday, 9 April 2013
Steps to Install Python3 in Linux through Command Line
To Install Python3 in linux through Command line follow below commands
Dependencies for Python3 is gcc and some times zlib-devel so install these first
in redhat ( RHEL ), fedora etc
commands are
root@bt:~# yum install gcc
root@bt:~# yum install zlib-devel
in Ubuntu, Linux Mint etc
commands are
root@bt:~# apt-get install gcc
root@bt:~#...
Saturday, 6 April 2013
Solution: Unable to access mysql server of Amazon ec2 instance remotely
If you have problem in accessing mysql server server publicly or remote even in the security group if you open mysql port 3306 in inbound rules. to solve this problem simply stop iptables.
First check port 3306 whether it is Listining or not
[root@ip-10-142-194-252 ~]# netstat -ant
Active Internet connections...
Solution: Unable to access httpd server on Amazon ec2 instance
If you have problem in accessing http server publicly even in the security group if you open http port 80 in inbound rules. to solve this problem simply stop iptables.
First check port 80 whether it is Listining or not
[root@ip-10-142-194-252 ~]# netstat -ant
Active Internet connections (servers and established)
Proto...
Subscribe to:
Posts (Atom)
Here We Write The Problems we face at different situations and Solutions to those problems.