10
Run Magento Indexer From Command Line
In some situation when you want to re-index Magento catalog you will get an error message or reindex process will be broken or processing..This problem is appearing when you have a lot of products in database and limited server resource. You can try to reindex from command line or shell.
Step 01: loginto your server using ssh.
Step 02: goto your magento installed folder
cd /your-magento-path
Step 03: type below command to index all
php shell/indexer.php --reindexall
some extra options
* To check the status
php shell/indexer.php --status
* To get information
php shell/indexer.php info
* To see other available options
php -f shell/indexer.php help
That’s all for now…
29
Reindex Catalog URL Rewrites and other index options on magento using command line
You need catalog URL rewrites to make your catalog work properly. Also it takes too much of time to execute. most of the time it failed due to php maximum execution time settings. If you don’t know how to set it or if you don’t have permission to do it, here is another simple solution…
Step01: First you need to log in to your server.
ssh username@yourserverName
then enter your password
Step02: go to magento directory
cd yourmagentofolderName
Step03: simply type below command
php shell/indexer.php reindexall
That’s it…

5
How to mount flash drive on Ubuntu Server
Here is small hint…
Step01: plug your flash drive to USB port
Step02: run dmesg to get mount point.
sdb:sdb1
Step03: create folder on /media
$ cd /media $ mkdir flash
Step04: run below command
$ mount /dev/sdb1 -t auto /media/flash/
now you can check your attached flash filesd on /media/flash
5
Apache Webserver Benchmark
Hello friends..
today i’m going to introduce simple apache webserver benchmark tool. its called ‘ab’. as abbreviation implies its “apache benchmark”. It provides a quick an easy way to evaluate your http serving capabilities. ab overloads the server with http requests and measures the time it takes to serve all those requests.
Install ab
ab comes preconfigured with your apache installation. Apache by himself is just an extension command for the Apache Web Server. So if you have already installed Apache, then you should be able to run ab.
Usage
$ ab -n 1000 -c 5 http://192.168.0.101/
# n 1000: ab will send 1000 number of requests to server 192.168.0.101 in order to perform for the benchmarking session
# -c 5 : 5 is concurrency number i.e. ab will send 5 number of multiple requests to perform at a time to server 192.168.0.101
for further reading: http://httpd.apache.org/docs/2.0/programs/ab.html
1
httpd (no pid file) not running – Apache not starting on Linux
Some time suddenly apache get crashed. pages getting slower and slower. as a generic solution we are trying to restart the apache by using
$ sudo /etc/init.d/apache2 restart
unfortunately we get failed. “httpd (no pid file) not running ” ..OMG?????%^%&%&
but your not that much unlucky. here are the steps to solve this issue..
01. Check if anything is listening on port 80 already.
lsof -i :80
Note the PID number.
02. Kill the process.
kill 3456 (replace 3456 with the PID number from above)
or use -9
kill -9 3456 (replace 3456 with the PID number from above)
03. Restart apache.
sudo /etc/init.d/apache2 restart
Don’t forget to Thanks your LIFESAVER.. LOL
Get Premium Tutorials Free
Recent Posts
Archives
- May 2012 (2)
- April 2012 (3)
- March 2012 (6)
- February 2012 (5)
- January 2012 (4)
- December 2011 (8)
- November 2011 (9)
- October 2011 (6)
- September 2011 (3)
- August 2011 (2)
- July 2011 (3)
- June 2011 (45)
- May 2011 (3)






