cPanel : Change Main Domain DocumentRoot
Posted by blackonsole on September 5th, 2013 02:57 AM | No Comment
:: What's is cPanel
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site.
:: How to Change Main Domain DocumentRoot in cPanel
+ Change documentroot
vi ...
Ubuntu :: Enable mod_rewrite in Apache2
Posted by blackonsole on July 11th, 2013 08:00 AM | 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
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
cPanel / WHM :: Installing ApacheBooster
Posted by blackonsole on August 7th, 2012 03:41 PM | 1 Comment
:: How to install ApacheBooster on cPanel / WHM server
wget //prajith.in/downloads/apachebooster.tar.gz
tar -zxf apachebooster.tar.gz
cd apachebooster
sh install.sh
:: Checking ApacheBooster on cPanel / WHM
Home - Plugins - ApacheBooster
:: Links
+ Google
+ ApacheBooster
CentOS:: Install and configure LAMP
Posted by blackonsole on July 16th, 2012 03:09 AM | No Comment
:: How to install LAMP on CentOS
yum install httpd httpd-devel mysql mysql-server mysql-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
:: How to configure MySQL
mysql_secure_installation
:: Add httpd and mysqld on init.d
chkconfig httpd on
chkconfig mysqld on
:: Starting httpd and mysqld
/etc/init.d/httpd start
/etc/init.d/mysqld ...
:: CentOS: Apache2 worker MPM, FCGI, APC
Posted by blackonsole on May 28th, 2012 03:58 PM | No Comment
:: Installing Apache2, FCGI, APC
yum install httpd php-cgi mod_fcgid php-pecl-apc
:: Enable worker MPM on Apache2
vi /etc/sysconfig/httpd
# uncomment
HTTPD=/usr/sbin/httpd.worker
:: Disable mod_php on Apache2
cd /etc/httpd/conf.d/
mv php.conf php.conf.orig
:: Setup FCGI for php script
+ enable cgi.fix_pathinfo on php.ini
vi /etc/php.ini
# uncomment
cgi.fix_pathinfo = 1
+ add php script ...