CentOS :: Setting Varnish, Nginx for WordPress
July 15th, 2013 03:01 AM | Linux | 1 Comment
:: How to setting Varnish and Nginx for WordPress cms in Linux CentOS
+ Enable Varnish and Nginx repository
rpm --nosignature -i //repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm
rpm -Uvh //nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
+ Installing Varnish and Nginx
yum install varnish nginx php-fpm
+ Configure Nginx for WordPress
make sure change Nginx port ...
Ubuntu :: Enable mod_rewrite in Apache2
July 11th, 2013 08:00 AM | Linux | No Comment
:: How to enable mod_rewrite Apache2 on Ubuntu
+ enable rewrite module
sudo a2enmod rewrite
+ restarting apache2
sudo service apache2 restart
+ Google
Apache :: MP4 Streaming
March 2nd, 2013 01:14 AM | Tutorials | No Comment
:: How to Enable mp4 Streaming in Apache
+ Installing mod h624 streaming
wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz
cd mod_h264_streaming-2.2.7/
./configure --with-apxs=`which apxs2`
make && make install
+ Configure mod-h624-streaming in Apache
vi /etc/httpd/conf/httpd.conf
# add these line:
LoadModule h264_streaming_module modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4
+ Restarting Apache
/etc/init.d/httpd restart
:: Links
+ Google
+ h264
Apache :: Flash / FLV Streaming
March 2nd, 2013 01:07 AM | Tutorials | No Comment
:: How to Configure Apache for FLV Streaming
+ Installing mod_flvx
wget //people.apache.org/~pquerna/modules/mod_flvx.c
which apxs
/usr/bin/apxs
/usr/bin/apxs -cia mod_flvx.c
+ setup mod_flvx in http.conf
vi /etc/apache/conf/httpd.conf
## add these line:
LoadModule flvx_module modules/mod_flvx.so
AddHandler flv-stream .flv
+ restrarting Apache
/etc/init.d/httpd restart
:: Links
+ Google
+ GeekTNT
Ubuntu :: PHP FastCGI + NGINX
February 28th, 2013 06:54 AM | Tutorials | 1 Comment
:: How to setup PHP FastCGI for NGINX in Ubuntu
+ Installing NGINX and php-cgi
apt-get update
apt-get install nginx php5-cli php5-cgi spawn-fcgi
+ Make php-fcgi script in init.d
vi /etc/init.d/php-fcgi
add these line:
#!/bin/bash
BIND=127.0.0.1:9000
USER=www-data
PHP_FCGI_CHILDREN=15
PHP_FCGI_MAX_REQUESTS=1000
PHP_CGI=/usr/bin/php-cgi
PHP_CGI_NAME=`basename $PHP_CGI`
PHP_CGI_ARGS="- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND"
RETVAL=0
start() {
...
cPanel :: htpasswd to protection directory using htaccess
February 21st, 2013 02:49 AM | Tutorials | No Comment
:: How to protect directory in cPanel
0. Login in cPanel
1. Go to "Password Protect Directories"
2. Select folder want to protect in "Please select the folder you wish to protect by clicking on its name"
3. Check "Password protect this directory" in ...
Ubuntu :: Add a PPA
February 18th, 2013 03:55 AM | Tutorials | No Comment
:: What is PPA on Ubuntu
PPA is Personal Package Archives allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.
:: How to add PPA repository
$ sudo add-apt-repository ppa:repository/package
example:
$ sudo add-apt-repository ppa:emesene-team/emesene-stable
You are ...