Build your own community with WordPress, BuddyPress and BBpress

You are planning to build a community/social network? if YES, here is your solution: WordPress + BuddyPress + BBpress

1. WordPress:

WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.

The core software is built by hundreds of community volunteers, and when you’re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine. Over 60 million people have chosen WordPress to power the place on the web they call “home” — we’d love you to join the family.”

Official website:

Might be you think WordPress is for bloggers only. BUT NOT anymore, WordPress is most powerful web software nowaday, you can customize WordPress for most of your projects. Fully customize and have alot plugins.

Continue reading “Build your own community with WordPress, BuddyPress and BBpress”

How to backup/restore database via SSH/Telnet

In order to back up your database via SSH/Telnet, you are required two things:

1. You have ROOT access to your server:

(VPS and Dedicated server only, thats not allowed on Shared hosting). Ask your hosting provider or check again the email they sent to you when your order was complete.

You need to know:

– Server ips

– Port (default: 22)

– Username (default: root)

– Password

2. An SSH/Telnet Client, such as PuTTy.

Download Putty here. (link)

Open Putty client then choose SSH connection type and enter your server ip address. (Host name or ip address)

putty client
Continue reading “How to backup/restore database via SSH/Telnet”

How to install CSF Firewall (ConfigServer Security & Firewall)

A Stateful Packet Inspection (SPI) firewall, Login/Intrusion Detection and Security application for Linux servers.

Supported and Tested Operating Systems
RedHat v7.3, v8.0, v9.0
RedHat Enterprise v3, v4, v5, v6 (32/64 bit)
CentOS v3, v4, v5, v6 (32/64 bit)
Fedora Core v1 to v16(32/64 bit)
CouldLinux (based on CentOS/RHEL)
*openSUSE v10, v11
*Debian v3.1, v4, v5, v6
*Ubuntu v6.06 LTS, v8.10, v9.10, v10.04 LTS, v10.10
*Mandriva 2009, 2010
*Slackware v12.2
(* may require custom regex patterns for some functions)
Supported and Tested Virtual Servers
MS Virtual Server
(** requires correct iptables configuration on host server)
CSF supports Cpanel, DirectAdmin and Webmin

Centos 6 & Cpanel: Setup Nginx as Reverse Proxy with Apache

cPanel comes with Apache web server by default. It does not mean that we cannot integrate Nginx inside. With some minor changes, we can install Nginx to listen to port 80 and forward any PHP process to Apache on another port 8080. Apache is not really good in handling static files, so we will pass this task to Nginx. You will noticed that your memory and CPU will decrease once you have done this setup.

Warning: This setting is not suitable for shared hosting environment. VPS and Dedicated server only.

1. Install mod_rpaf:

– Since Nginx will be reverse proxy for Apache, we don’t want our log file to record the proxy IP. We want the real IP as usual. This will make sure our stats page like Webalizer and AWstats will record the correct information. So we need to install mod_rpaf which is “Reverse Proxy Add Forward” module for Apache. You can download that at

cd /usr/local/src
tar -xzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-*
apxs -i -c -n mod_rpaf-2.0.c

– Once installed, we need to load the module into Apache configuration. Since cPanel already has Include Editor for Apache, we will use that functions. Login to WHM > Service Configuration > Apache Configuration > Include Editor > Pre Main Include > All Versions and paste following text:

LoadModule rpaf_module modules/
RPAFenable On
RPAFproxy_ips # replace the value with your server IP
RPAFsethostname On
RPAFheader X-Real-IP

– Click Update > Restart Apache. The module should be loaded after restart.

Note: You can do this manually. Just open /etc/httpd/conf/httpd.conf with your editor then add lines above.

nano /etc/httpd/conf/httpd.conf

Restart Apache:

service httpd restart

2. Change Apache listen port:

– Before we install Nginx, we need to change Apache port to 8080. Login to WHM > Server Configuration > Tweak Settings > Apache non-SSL IP/port: 8080

Note: You can use another Port (I used port 8080) but you should make sure that your firewall allows that port.

My case, I installed CSF (ConfigServer Security & Firewall – csf v5.49) on my XEN VPS (Centos 6 32bit + Cpanel)

So to open that port (8080) , i must go to Plugins > ConfigServer Security & Firewall > ConfigServer Firewall > # Allow incoming TCP ports > TCP_IN > add port 8080 


– We need to run following command so cPanel will remember that Apache configuration template has changed:

/usr/local/cpanel/bin/apache_conf_distiller --update --main


Continue reading “Centos 6 & Cpanel: Setup Nginx as Reverse Proxy with Apache”