Friday 28 February 2014

solution to installation of expect module in php5

following message will come if php expect module didn't find on web server expect example page.

fopen(): Unable to find the wrapper "expect" - did you forget to enable it when you configured PHP?

This means is not there in /usr/lib/php5/extensions

to install expect module  follow streps :

1.   Before installation install dependencies  : expect-devel, tcl-devel packages

2. run following command to build and install expect module

pecl install channel://

It will create /usr/lib/php5/extensions/ file

3. Now add config file for php in /etc/php5/conf.d/expect.ini

cat > /etc/php5/conf.d/expect.ini  << END
; comment out next line to disable mysqli extension in php

4. Now check php modules  by following command:

php -m   

 If you get following error  :

1   /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lexpect
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -ltcl
collect2: error: ld returned 1 exit status
make: *** [] Error 1
ERROR: `make' failed

for that  go to /usr/lib/ 

ln -s libexpect<version>.so
ln -s libtcl<version>.so

( <version> : is the version number of the package )

Read More

Tuesday 11 February 2014

Solution to Gnome 3 Error : "Oh no! Something has gone wrong." with gnome-fallback

Login into your account in text terminal by ctrl+alt+f<1-6>

run following line

$ gsettings set org.gnome.desktop.session session-name gnome-fallback

Then try login from gui using GNOME Desktop Environment.

Read More

Monday 10 February 2014

Nginx Error - 413 Request Entity Too Large

Hi if you get 413 Request Entity Too Large error in Nginx Serve to avoid this error some people suggest increase post size in php.ini ie
post_max_size = 25M
But even changing this value error still occurring means you need to change nginx configuration file.
add client_max_body_size 20M to nginx configuration file of server. check below where to add that line.

server {
    client_max_body_size 20M;
    listen 80;
    access_log /var/log/nginx/nginx.access.log;
    error_log /var/log/nginx/nginx.error.log;
Read More
Here We Write The Problems we face at different situations and Solutions to those problems.