Search This Blog

01 August, 2012

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 89 bytes)

In my php script, i was  not able to get page view, the page was having lot of variables.  and some was taking lot since it was in foreach loop updating a big table output.

debugging foudn that, it was due to memory was not sufficient for the php to allocate.
In the php.ini we cam increase the memory with the  memory_limit = 128M configuration. After increasing the size form 128M to 256M, mine was working fine.

But i think i should re design the webpage as php consuming this much memory is not good in long term. There will be better way to reduce it .

30 June, 2012

cibonfire Object not found! error


After installing the cibonfire, which is based on CodeIgniter in the http://localhost/ci-bonfire, the below page came














but when i click on the sign in button, below error is coming , Object not found! as below




After debugging understood that, .htaccess file was the issue, the .htacces file is configured for the files to be in localhost root web folder. since i had put the cibonfire file by creating a folder ci-bonfire, i have to edit the .htaccess file like below

# If you installed Bonfire in a sub folder, you will need to
# change the following line to match the sub folder you need.
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
  RewriteBase /ci-bonfire

 Hope this will help other who is starting with cibonfire and CodeIgniter




windows 7 opening command prompt to start with the folder selected

windows 7 opening command prompt to start with a folder we have selected


  1. Go to the folder you want the command prompt to start with
  2. press shift + right click the mouse 
  3. you can see an option "Open command window here" 
  4.  click on it and command prompt will open with the path you right clicked




10 June, 2012

windows 7 command for opening network connection properties directly

Getting to the page to bring up the screen that lists your network connections and their current status, you have to do lot of clicks. Below the shortcut for directly accessing it

For opening the network connections properties you can just type ncpa.cpl into the Start menu or WindowsKey+R and type ncpa.cpl


03 June, 2012

mysql exporting or dumping stored procedures using mysqldump

For exporting stored procedure function and triggers using mysqdump use the following command in mysql command prompt

mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt <database_name> > output_sp_dump.sql

19 May, 2012

Perl error, undefined symbol: Perl_Tstack_sp_ptr

After my web hosting server was upgraded , when i run my perl program, i used to get the below error.

perl: symbol lookup error: /home1/routemen/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Storable/Storable.so: undefined symbol: Perl_Tstack_sp_ptr

Searched google a lot and finally from the below link's guidance i was able to solve it


As said while checking the home folder


I did >rm perl5

After that it was working fine. 

Thanks or the help

15 April, 2012

Accessing Google Apps Control Panel

For accessing google apps control panel

https://www.google.com/a/cpanel/DomainName.com

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...