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
cPanel :: Installing NGINXCP
Posted by blackonsole on August 7th, 2012 04:38 AM | No Comment
:: How to install nginxcp on cPanel / WHM server
cd /usr/local/src
wget //nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix
./nginxinstaller install
/etc/init.d/httpd restart
:: Checking NGINXCP on cPanel/WHM
You will see NGINXCP in Home - Plugins - NGINXCP
:: Links
+ Google
+ nginxcp
PHP:: enable pcntl extension from source
Posted by blackonsole on July 6th, 2012 04:06 AM | No Comment
:: Compile pcntl extension
wget //museum.php.net/php5/php-5.3.6.tar.gz
tar xvf php-5.3.6.tar.gz
cd php-5.3.6/ext/pcntl
phpize
./configure
make && make install
:: Configure pcntl extension on php.ini
vi php.ini
; add line like:
extension=pcntl.so
:: Checking pcntl module
php -m | grep pcntl
:: Applying pcntl on httpd
/etc/init.d/httpd restart
:: Links
+ Google
+ StackOverFlow
:: 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 ...
:: NGINX: [emerg] directive "rewrite" is not terminated by ";"
Posted by blackonsole on May 8th, 2012 07:19 PM | 3 Comments
:: Error when reload / restart nginx
nginx -s reload
nginx: directive "rewrite" is not terminated by ";" /etc/nginx/vhost/blackonsole.org.conf:15
in line 15 use { and } characters in the regular expressions conflict with the block delimiter of the Nginx configuration file syntax ...
:: NGINX : Redirect to external URL
Posted by blackonsole on May 7th, 2012 12:05 PM | No Comment
:: How to redirect to external url on NGINX
+ create configure file
vi /etc/nginx/vhosts/blackonsole.org.conf
added configuration like these:
server {
listen 80;
server_name blackonsole.org www.blackonsole.org;
...
:: Cron: Auto restart daemon if it down
Posted by blackonsole on May 7th, 2012 04:20 AM | No Comment
:: How to create script for auto restart daemon if it down
+ create auto restart daemon script (nginx)
cat > alwaysup.sh
add the script, like these:
#!/bin/bash
alwaysup=`ps aux | grep -v grep | grep -c nginx`
if
then
...