Magento Site Performance Optimization
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Choosing the Best Web Server<br />
esac<br />
;;<br />
status)<br />
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?<br />
;;<br />
restart|force-reload)<br />
log_daemon_msg "Restarting $DESC" "$NAME"<br />
do_stop<br />
case "$?" in<br />
0|1)<br />
do_start<br />
case "$?" in<br />
0) log_end_msg 0 ;;<br />
1) log_end_msg 1 ;; # Old process is still running<br />
*) log_end_msg 1 ;; # Failed to start<br />
esac<br />
;;<br />
*)<br />
# Failed to stop<br />
log_end_msg 1<br />
;;<br />
esac<br />
;;<br />
*)<br />
echo "Usage: $SCRIPTNAME {start|stop|status|restart|forcereload}"<br />
>&2<br />
exit 3<br />
;;<br />
esac<br />
Then, we can add the default php5-fcgi configuration file under /etc/default/. In<br />
a file named php5-fcgi, pass the following values:<br />
export PHP_FCGI_CHILDREN=10<br />
export PHP_FCGI_MAX_REQUESTS=1000<br />
Finally, we can add php5-fcgi to the list of automatically started services with the<br />
following command:<br />
$ sudo chmod +x /etc/init.d/php5-fcgi<br />
$ sudo update-rc.d php5-fcgi defaults<br />
$ sudo invoke-rc.d php5-fcgi start<br />
[ 32 ]<br />
www.it-ebooks.info