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

11 Sep

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
./install.sh

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

Install.gif

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.

webuzoInstall1

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

Nginx Installation

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

webuzo_wp_nginx_install

 

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.

webuzo_wp_nginx_switch

 

Confirm nginx is running from Webuzo Panel >> Services Menu

webuzo_wp_nginx_services

 

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]
</IfModule>
# END WordPress

Completed our setup and configuration.

23257 Total Views 39 Views Today

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

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

Leave a Reply

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