Home > Tutorials > How to install webuzo, nginx and setup .htacess rules for wordpress and other CMS

How to install webuzo, nginx and setup .htacess rules for wordpress and other CMS

What is Webuzo?

Webuzo is single user web control panel. You can deploy Web Apps (WordPress, Joomla, Drupal, etc) or System Apps (Apache, NGINX, PHP, Java, MongoDB, etc) on your virtual machines or in the Cloud.


What is Nginx?
Nginx  is a free, open-source, lite weight, high-performance web server and reverse proxy, as well as an IMAP/POP3 proxy server. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.


Webuzo control panel support nginx web server. Nginx will help us to mitigate performance. Here I will try to install webuzo, nginx and wordpress. We’ll face 404 not found message if we enable wordpress rewrite rules. Because nginx doesn’t support .htacess. So we need to fix the issue. I will show you how to use .htaccess rules on nginx server. Okay, first we will install webuzo on centos 6.

Before we proceed to setup, we need to remove Apache from our server. Usually, Apache installed by default on the server conflicts with Webuzo’s Apache Binary located at /usr/local/apps/apache resulting in the “Internal Server Error”.

To remove apache, run following command.

yum -y remove httpd


Install Webuzo

wget -N http://files.webuzo.com/install.sh
chmod 0755 install.sh

The installation will begin immediately. After complete the installation you will see something like this.


This will setup the required Web Server and other important configurations. Note : A log file of the installation process will be created – /root/webuzo-install.log

Initial Setup

We need to complete initial setup now. Go to http://youripaddress:2004 and you will see like this.


Complete the initial setup. Then go to http://youripaddress:2002

Nginx Installation

1) Install LEMP from the Webuzo Panel >> Apps >> Stacks



Switch to Nginx

Now we need to switch from Apache to Nginx. Go to System Utilities and select Nginx. Then click on the Edit settings button.



Confirm nginx is running from Webuzo Panel >> Services Menu



Now complete the WordPress installation. After complete the installation we need to configure nginx for url_rewrite.


We need to do it from ssh. Okay, lets edit /usr/local/apps/nginx/etc/conf.d/common to make wordpress run permalinks.

vi /usr/local/apps/nginx/etc/conf.d/common


Add the following codes end of the file.

location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;


Now restart nginx.

service nginx restart


Now put wordpress permalink code on you .htaccess file.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Completed our setup and configuration.

27130 Total Views 48 Views Today

You may alo like...

(10) Comments

  1. Masum Talukder

    অনেক কাজের একটা জিনিস লো কনফিগ ভিপিএস এর জন্য

  2. Md. Yeasin Miraz

    খুব দারুন একটা পোস্ট। আশা করি সকলেই এই লেখা থেকে উপকৃত হবে। লেখকের কাছে আমরা আরো লেখা আশা করছি। যেমন ভিপিএস এ মেইল সার্ভার সেটাপ ইত্যাদি।

  3. Monir

    In a word, outstanding tutorial, Easy to implement.

  4. Kingsley


    Thanks for the tutorial, i have set up very thing, waiting for dns propagation

  5. Du

    i do not understad “Add the following codes end of the file.”
    how do i work it? please guide me

    1. HostPair

      You need to run vi /usr/local/apps/nginx/etc/conf.d/common this command

      Then click i button on your keyboard. Then use down arrow key and go to end the file. Then add

      location / {
      index index.php index.html index.htm;
      try_files $uri $uri/ /index.php?$args;

      1. Du

        i use Bitvise SSH client
        how do i save it?

      2. Du

        i restart nginx but it error

        1. HostPair

          Could you please paste the error?

  6. Kingsley

    Used it again and it works, but do you know how to optimize so it uses less cpu?

Leave a Reply

Your email address will not be published. Required fields are marked *