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 ...
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 ...
cPanel :: MySQL server is currently offline
Posted by blackonsole on November 22nd, 2012 03:40 AM | No Comment
:: How to fix if you got "MySQL server is currently offline" in cPanel
just change mysql root password via WHM:
WHM - SQL Services - MySQL Root Password - Change the password
:: Links
+ Google
+ HostOutCast
WHM / cPanel :: installing red5 server
Posted by blackonsole on November 20th, 2012 05:57 AM | No Comment
:: How to install red5 in cPanel Server
+ Setup apache ant
wget //mirror.cc.columbia.edu/pub/software/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz
tar -xzf apache-ant-1.8.4-bin.tar.gz
mv apache-ant-1.8.4 /usr/local/ant
+ export ant variable
temporary
export ANT_HOME=/us/local/ant
export PATH=$PATH:/usr/local/ant/bin
permanent
echo 'export ANT_HOME=/usr/local/ant' >> /etc/bashrc
echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/bashrc
+ installing java
yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
+ compiling red5
wget //www.red5.org/downloads/red5/1_0/red5-1.0.0-RC2.tar.gz
tar -xzf red5-1.0.0-RC2.tar.gz
mv ...
cPanel :: Install ruby
Posted by blackonsole on November 14th, 2012 09:43 PM | No Comment
:: How to install ruby on cPanel
/scripts/installruby
whereis ruby
ruby: /usr/bin/ruby /usr/lib/ruby /usr/share/man/man1/ruby.1
+ Google
+ cPanel
cPanel :: How to install flvtool2
Posted by blackonsole on November 14th, 2012 09:41 PM | No Comment
:: how to install flvtool2 on cPanel server
wget //rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
tar -xzf flvtool2-1.0.6.tar
cd flvtool2-1.0.6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
+ checking flvtool2
flvtool2 -v
:: Link
+ Google
cPanel :: Enable individual php.ini on FastCGI
Posted by blackonsole on September 29th, 2012 04:13 PM | No Comment
:: Requirement on vhost
make sure your vhost have these:
ScriptAlias /cgi-bin/ "/home/username/public_html/cgi-bin/"
Options +ExecCGI -Includes
AddHandler cgi-script .cgi .pl .plx .ppl .perl
:: Create FastCGI handler script
cd /home/username/public_html/cgi-bin/
vi php5.cgi
add these line:
#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5
:: Create custom / individual php.ini
cd /home/username/public_html/cgi-bin/
vi php.ini
example: enable register_globals, so ...