Friday, November 7, 2014

/usr/lib/apache2/modules/libphp5.so: cannot open shared object file

If you facing this error on your ubuntu system while operating apache2, here is solution for you.

Install following package on your ubuntu system.
sudo apt-get install libapache2-mod-php5
Now try again.

Ubuntu Login Error : failed to start session

Ubuntu Login Error : failed to start session

If you are not able to log into your account and it shows above error. Here is a solution for you.

Press ctrl+alt+f1 to open command prompt.

Now install following packages.
sudo apt-get install ubuntu-desktop
and
sudo apt-get install gnome-shell ubuntu-gnome-desktop
Now try to Login again.

Configure: error: memcache support requires ZLIB

checking for the location of zlib,configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
ERROR: `/tmp/pear/temp/memcache/configure --enable-memcache-session=yes' failed


To remove this error,you need to install zlib package.

If you are using Debian or Ubuntu, Run command

sudo apt-get install zlib1g-dev libncurses5-dev
If you are using CentOS, fedora or RHEL, Run command
sudo yum install zlib-devel
Now run again,

sudo /opt/lampp/bin/pecl install memcache
If it runs successfully

Add line

extension=memcache.so
in the file php.ini.

Restart xampp.