Apache :: MP4 Streaming
Posted by blackonsole on March 2nd, 2013 01:14 AM | 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
Posted by blackonsole on March 2nd, 2013 01:07 AM | 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
Posted by blackonsole on February 28th, 2013 06:54 AM | 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
Posted by blackonsole on February 21st, 2013 02:49 AM | 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
Posted by blackonsole on February 18th, 2013 03:55 AM | 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 ...
CentOS 6.3 :: Setup VNC Server
Posted by blackonsole on February 9th, 2013 01:00 PM | No Comment
:: What is vnc
VNC is a graphical desktop sharing system that uses the remote framebuffer protocol to remotely control another computer.
:: How to install vnc server in CentOS 6.3
yum groupinstall Desktop
yum install tigervnc-server xorg-x11-fonts-Type1
:: How to setup vnc server in ...
CentOS :: Disable Network Manager
Posted by blackonsole on February 9th, 2013 09:08 AM | No Comment
:: How to Disable Network Manager in CentOS 6.3
+ Stop NetworkManager
/etc/init.d/NetworkManager stop
+ Turn off on init.d
chkconfig NetworkManager off
+ Turn-on Network service
chkconfig network on
+ Checking services
chkconfig --list | grep Network
:: Link
+ Google
+ MosaicDataServices