Installing wordpress on Ajenti-V

Configure Ajenti-V for Wordpress CMS

Introduction

As the completion of deployment Ajenti-V. Now we are going to demonstrate deploying wordpress on it and host a blog or website for you. Lets begin with open up your Ajenti-V control panel.

Step 1 – Creation of Website

Once login into your Ajenti-V, click “Website” on the left menu.

Now start create the “Website” as per below picture. At the “New Website” row on the “Name” text box fill in your site name and click “Create”.

Step 2 – Now start to customize your site.

Click on “Manage” button at your site. It will load as per below. At the “Website Files” row.

On the “Path” after the “/srv/new-website” change it to “/srv/demo” or any name you wanted. Then click on the “Create Directory” and click on “Set” to complete. Click on “Fix FIle Permissions” for update new user permission.

After completion of creating directorty. Now its time to download and extract the wordpress cms onto your website or blog. With Ajenti-V, its easy as snap – 1 2 3. Copy this link from wordpress website.

WordPress CMS Download URL – https://wordpress.org/latest.tar.gz

At the “Automatic Downloader” row, paste the download url at the “From URL” text box and click “Download and Unpack” button. Once this have completed. You have to transfer the wordpress file on the root directory of your site.

Click on “File Manager” at the menu tree.

Look for “srv” directory and click on it.

Click on the site you have created. As you can see, there is “wordpress” directory in it. Where this directory containing the “WordPress CMS” file.

Click on the “wordpress” directory. and tick the “Select All”  check box to select all file and folder in its.

Click on the “Cut” button.

Then go back to your site root directory and click paste. After few second refresh to ensure it’s complete the process.

Step 3 – Create Domain

Click on “Domains” to start create domain for your site

Click “Apply Changes” to complete.

Step 4 – Set port access for your site

Click on “Ports” and leave it default if you wanted to use port “80 / HTTP”. or modified it to other port such “8080” if you have custom web application.

Step 5 – Selection of application requirement (Static or with PHP Processor)

Click on “Content” tab then under row for “Filter” select option PHP 7.0 FastCGI and click create.

Step 6 – Add on custom configuration for php

Click on advance then paste below code

################################################################################################

# This order might seem weird – this is attempted to match last if rules below fail.
location / {
try_files $uri $uri/ /index.php?$args;
}

# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}

location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~ /\. {
deny all;
}
# Deny access to any files with a .php extension in the uploads directory
# Works in sub-directory installs and also in multisite network
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}

################################################################################################
Step 7 – Creating database for your wordpress CMS

Click “MySQL” tab for database configuration. At the database row, give a name to your database and click create.

Once you have created the database, you need to gave user permission to access the database. At the “Users” row. Give a name for the user and you may use password given or custom at your own risk. Click “Create” to complete the setting. Then click “Grant All Permissions”.

Click “Apply Changes” to complete the first process of setting up Ajenti-V for WordPress CMS deployment.

Before we begin setup the wordpress CMS. We need to disable the maintenance mode.

You may proceed access the site to start configure your wordpress. Proceed to here to configure your first wordpress cms. If you have not register any domain and configure dns for it. You may run it local by editing the host file of your windows desktop. Click here for the how to.

 

Loading…

Comments

comments

Selamat Hari Raya Aidilfitri

Configure host file for dummy domain