Author Archives: Geneva Sibanda

About Geneva Sibanda

I assist companies in the Areas of Network Infrastructure Design and Implementation: (from Windows Active Directory Security, networking, etc.).

How to Install and Configure ProFTPD on Ubuntu 14.04 Server

ProFTPD (short for Pro FTP daemon) is an FTP server. ProFTPD is Free and open-source software, compatible with Unix-like systems and Microsoft Windows (via Cygwin). Along with vsftpd and Pure-FTPd, ProFTPD is among the most popular FTP servers in Unix-like environments today.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation ProFTPD in ubuntu 14.04 server.

Install ProFTPD on Ubuntu 14.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

root@gs01:~# sudo apt-get update -y && sudo apt-get upgrade -y

Step 2. Install ProFTPD and all required packages.

root@gs01:~# sudo apt-get install proftpd

During the installation, you’ll be prompted to choose the installation method that you prefer. There are two installation methods, inetd  and the standalone.  For this installation I selected “Standalone” method, and then OK to finish the installation.

Step 3. Configure ProFTPD

Let’s edit the configuration file for ProFTPD:

root@gs01:~# vi /etc/proftpd/proftpd.conf

Change the ServerName to the hostname of your server. In the case below, is an example:

ServerName “your.servername.whatever”

To limit users to their home directory uncomment the line that says DefaultRoot:

# Use this to jail all users in their homes
DefaultRoot ~

Exit and save the file with the command :wq .

Create FTP User

Step 4. Add an FTP User.

Before you create a user for Proftpd, please add /bin/false to your /etc/shells file:

 root@gs01:~# echo “/bin/false” >> /etc/shells

Create a user with a home directory where he will get access to by FTP. I will disable shell access for this user by assigning the “/bin/false” shell to him to ensure that he can not login by SSH. My username is named “ftp-user”, please replace ftp-user with your username in the next command:

root@gs01:~# adduser --home /home/ftp-user --shell /bin/false ftp-user

Step 5. Granting write permissions.

NB: Make sure that you grant write permissions to ftp-user User and ftp-user group, and remember to replace ftp-user with your username in the next command:

root@gs01:~#chown -R ftp-user:ftp-user /home/ftp-user 

And if you don’t grant write permissions to your ftp-user you will definitely encounter the following errors:

After installing proftpd on my ubuntu 14.04 server. I encountered the following technical issues.
tatus: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Connected
Status: Retrieving directory listing...This is happening when using ftp client FileZilla.

Some of the errors I encountered:

Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Error: Could not connect to server

Then set the ProFTPD service to start at boot:

root@gs01:~#update-rc.d proftpd defaults

Step 6. Implementing Iptables Rule.

Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.

root@gs01:~#iptables -A INPUT -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A INPUT -p udp -m udp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A INPUT -p tcp -m tcp --dport 49152:65534 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A INPUT -p udp -m udp --dport 49152:65534 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A OUTPUT -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A OUTPUT -p udp -m udp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A OUTPUT -p tcp -m tcp --dport 49152:65534 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A OUTPUT -p udp -m udp --dport 49152:65534 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
root@gs01:~#iptables -A INPUT -j DROP

Save Firewall Rules

To save firewall rules under ubuntu 14.04 server, enter:

root@gs01:~#service iptables-persistent save

Restart the ProFTPD service:

root@gs01:~#service proftpd stop && service proftpd start

Step 7. Access the FTP server.

Once you have installed the FTP server successfully, Now all you have to do is open an FTP client like FileZilla and connect to the server using its IP address, hostname or domain name. If  everything is configure correctly, you should be granted access to the server with the correct username and password.

$10 Credits For VPS Hosting When You Sign Up for DigitalOcean today!

Did you know that you can earn a $25 account credit for each friend you refer to DigitalOcean?

Give $10, Get $25

Everyone you refer gets $10 in credit. Once they’ve spent $25 with DigitalOcean, you’ll get $25. There is no limit to the amount of credit you can earn through referrals.

Check below My Referral Stats

Clicks

 Number of times your link has been clicked.  1803

Referrals

 People who have signed up using your link.  19

Pending

 Amount I stand to earn when my referrals have spent $25.  $450.00

Earned

 Amount that will be applied to my account balance.  $0.00

Paid

 Amount that has already been applied to your account.  $25.00

Here is the beauty about my DigitalOcean referral, once my pending amount is applied to my account balance, it means that I will be hosting this site for free. I won’t be paying a cent for as long as my referrals continue stream in. Isn’t that GREAT?

Don’t miss out! Just visit my referral program page to spread the word: Click HERE to Join DO subscription to Get started

Simple to Set Up. Flexible to Scale. VPS Installation and Setup!

In addition to the awesome special offer, if you order your VPS hosting through this blog, you can have your VPS installed and set up for a small once off fee of $50.00! All installs will include the following:

◾Ubuntu Server Setup
◾NGINX Setup and Config
◾MySQL Database Setup and Config
◾IPtables Firewall Setup and Config (to protect your VPS)
◾You advise if you need any cPanel – (I will setup VestaCP for you).
◾WordPress Setup and Config
Let’sEncrypt SSL Certificate Setup and Config – (to meet SSL Certificate On Your Website.)
◾Manage VPS for a small fee, starting from $15.00/month – (keeping things running smoothly)

All you have to do is Click HERE to order a VPS hosting plan from DigitalOcean, then forward me the DigitalOcean login information to sibanda.geneva [at] yahoo.com, and I’ll install VPS and WordPress for you. Afterwards, I’ll email you back the login information for your new WordPress Blog and you can start blogging!

Thank you in advanced, I appreciate your business!

Trusted Web Hosting You Can Use!

Practical Guide to a TRUSTED List of Web Hosting Providers.

If you’re in the process to buying web hosting or running a web site, this guide could answer some of those nagging questions. I’ll take you from the very beginning and work up to some fairly advanced concepts – but don’t worry, everything on this guide is suitable for absolute beginners.

What is web hosting and domain?

In a sense, you rent space on a computer to hold your website. Your host, the computer where your website files are stored, assigns an address (DNS) for your files to your domain name so that anyone can find your website on the Internet by typing in your domain name.

How to get the best Web Hosting Package for your website?

Web hosting is all about keeping your web site online, secure, and available super-fast when your visitors arrive to your site. Your Hosting server, should be ultra-fast and ultra-secure, have the capacity and storage you need to keep your site online. All with 24/7 support and backup from professional tech support staff.

Searching for the best web hosting is not a job to be taken lightly and to make it easier for you, I have compiled some of the best hostings for your blog below.

Check out our TRUSTED community.

We promote the spread of good HOSTING PROVIDERS used by millions of other people:

Small Business WEEK Savings! HostGator Up to 60% Off!

Small Business Week: 60% Off New Shared Business Hosting Plans + More!
We are celebrating Small Business Week with a very unique offer from HostGator for those looking to get their businesses online! From April 30th 12am to May 7th 11:59pm CST we will be offering60% OFF Shared Business hosting plans & 50% on all other Shared Hosting plans of 12-36 months.

That’s not all! We are also offering 50% OFF 1 year of Basic Code Guard!

 Provider  Activities  Great Started  Action
 HostGator  100K+ websites are created every day! Take advantage of that demand.  Start Building Your Website Today!  Click HERE to start!

Take your WordPress to the next level today!

 Provider  Activities  Great Started  Action
Arvixe Linux Web Hosting | Shared Hosting | Dedicated Servers  Start Building Your Website Today!  Click HERE to start!

Complete hosting solutions for any type website.

Provider  Activities  Great Started  Action
Bluehost When building a website, start here. Powerful platform that’s perfect for hosting your websites.  Start Building Your Website Today! Click HERE to start!

Improve Your Website Speed.

MaxCDN One has everything you need to deliver content fast – all in one place. Click HERE to Sign UP.

These offers are only valid on new hosting packages, not applicable on renewals or existing hosting plans.

Top Speed Is a must for a Busy WordPress Site with Bursts of Traffic.

Slow Speed Kills Your WordPress Site.

Take this advise very serious, you will definitely enjoy the positive outcome. (Seriously, true story!).

Congratulations! For stopping by now here is a chance to impress your site visitors by integrating your WordPress Website with MAXCDN. MAXCDN helps website owners and web developers make their sites faster and more reliable than ever before.

Maxcdn.com is the leader in CDN services and this market is fresh and young and exploding with growth.

Click HERE to Join MaxCDN subscription to get started

MaxCDN has the support, network, and features to help individuals and growing businesses deliver big ideas to big audiences. To achieve faster page load times, better Google rankings, and more conversions with our CDN. Setup is simple and only takes minutes.

Maxcdn.com, gives users access to one of the most powerful content distribution networks around. The further people are from a website’s stationary server the longer it takes for them to load any pages, but this service eliminates that frustrating wait that costs precious hits.

Boost your WordPress SPEED with MaxCND’s Top Global reach redundancy.

You do not want to miss out on this opportunity again. Every website owner is starting to realise the need to enhance there website for the best speed and load times they can. Competition is getting fierce and this is the next leg up over your competitors. It is very cost effective for any business or individual WordPress site.

In addition, MaxCDN offers global enterprise grade CND at competitive pricing without cutting corners. MaxCDN use only the best quality equipment powered by reliable global caching kit with built in redundancy features, and advanced reliability to run your WordPress Site at a Top speed.

MaxCND offers multisite and Use DNS geo-routing to take advantage of nearest server based on the location.

In addition, they periodically provide you with engaging news and information on CDN technology, new product features, and unique customer experiences.

MaxCDN Packages For all packages, unused bandwidth rolls over to the next month.

Click HERE to Join MaxCDN subscription to get started, and team MaxCND will love to welcome you!

Start Your WordPress Blog With HostGator Today!

My Trusted WordPress hosting Provider, HostGator is offering affordable WordPress hosting deals on all their hosting packages. If you haven’t started your blog yet, today would be a great day to great started!

The Best Features At The Best Price!

HostGator gives you a vast array of tools to take your idea or business online today! From site building tools and templates, to our one-click application installer, everything you need to launch a website is literally at your fingertips. With this deal, you can start a new blog for as low as $3.95 a month! What makes this deal even better? Is that; I will install and set up your new WordPress blog for you for free?!

Free WordPress Installation and Setup!

In addition to the awesome special offer of the day, if you order your hosting through this blog, you can have WordPress installed and set up for free! All installs will include the following plugins to get your blog started on the right track:

◾Advanced Automatic Updates
◾Yoast SEO
◾Google Sitemap
◾W3 Total Cache
◾Show Top Commentators
◾WordPress.com Stats
◾Anti-spam

All you have to do is order a web hosting plan from HostGator, then forward me the HostGator cPanel login information to sibanda.geneva [at] yahoo.com, and I’ll install WordPress for you. Afterwards, I’ll email you back the login information for your new WordPress blog and you can start blogging!

Click Here To Order Your New WordPress Blog

I will also include instructions on how to change all your login passwords. I will not keep any of the forwarded information from HostGator. Once WordPress has been set up, I will destroy the email.

Expect MORE With HostGator WordPress Hosting

Not only will you get your blog hosting at a huge discount, but every hosting plan at HostGator comes with $100 of Google AdWords credit that you can use to promote your new blog. Start your blog for 43% off, get WordPress and plugins setup for free, and get $100 of AdWords credit. You won’t find a better deal anywhere!

This is really an unbelievable deal for everybody who needs to get going! If you were thinking about starting your blog, RIGHT NOW is the time to do it! Order your web hosting plan and let me set up a new WordPress blog for you.

Click Here To Order Your New WordPress Blog

Spread the word and forward this promotion to your friends!

WordPress Hosting Affiliate Program

What is WordPress?

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. WordPress is installed on a web server, which either is part of an Internet hosting service or is a network host itself. Features include a plugin architecture and a template system.

WordPress powers more than 24% of the web — a figure that rises every day. Everything from simple websites, to blogs, to complex portals and enterprise websites, and even applications, are built with WordPress,

WordPress is the most popular blogging system, powerful CMS (Content Management System) technology used by fortune 500 companies like CNN, Forbes, VW, Jay-Z, The New Your Times and Katy Perry…etc.

WordPress is the dominating the blogging space and is increasingly used by some of the Top Earning Blogs as their preferred blogging platform.

How Top Earning Blogs Making Money From their WordPress Blog?

Today I decided to do my own research (doing research of your own should be your duty) to unpack how these super successful Blogs are making money ONLINE and where is their BIG source of income come from. There is an influx of methods these top blogger’s are using to monetize their blog, different techniques for each niche. Some niche’s are easier to promote products to, some have high paying keywords and some are easy to drive millions of visitors every month!

Personally I was surprised to learn that some of them make a lot of money promoting affiliate programs, this is not rocket science you and I can easily up our game and do exactly the same. Most affiliate programs are from reputable companies that provide quality WordPress Hosting Affiliate Program like TMDHosting WordPress Hosting,

To be a truly successful Affiliate Rock-star or print money in today’s online market space, you have to put in a ton of time to find the best techniques and do your due diligence to increase your odds of stardom on every niche.

Learn From the Best and Put their Practical and TESTED Strategies Into Practice:

To do that, I believe it’s essential that you learn from the experience of others. This helps you avoid mistakes and give you an upper-hand in emulating the practical and tested strategies of successful Top Earning Bloggers to achieve long-lasting success. You need to mapping your approaches into their strategies and amplify them into your mega success.

WordPress Hosting Affiliate Program is the best way to Make Money Online.

EARN MONEY AS A TMDHOSTING AFFILIATE – Make $50 commission for all products!


Unleash the power within – Online Money Making Secret Strategy

How does it work?

Ok! It works like this.

When someone subscribes to any of the TMDHosting WordPress Hosting Affiliate Program using your affiliate link you earn a commission. TMDHosting offer the highest commission percentage of any WordPress Hosting company on the net. All affiliates receive $50 of each sale, which is nearly double the industry standard. You also get paid for any annual subscriptions.

Your affiliates must subscribe within 60 days from the initial visit of the affiliate link. They abide by basic affiliate rules, so the first affiliate to tag the visitor keeps them for 60 days.

You can view your earning on TMDHosting Affiliate Program real time dashboard for affiliates.

Payments

Since PayPal is one of the most popular payment gateways, giving potential blogger the ability to receive paying using it is a surefire way to improve your odds of getting more sales. Payments are made monthly by direct paypal wire deposit once you reach the $100 minimum.

If you would like to run these types of affiliate on your blog, consider the following options:

  • Visitor clicks on an affiliate link on your site or in an email.
  • The visitors IP is logged and a cookie is placed in their browser for tracking purposes.
  • The visitor browses our site, and may decide to order.
  • If the visitor orders (the order need not be placed during the same browser session–cookies and IPs are stored indefinitely), the order will be registered as a sale for you.
  • We will review and approve the sale.
  • You will receive commission payouts on the 15th of every month (if your balance is at least $100) via PayPal.
  • TMDHosting offer a 60 Day Money Back Guarantee, so joining is risk-free!
  • There is absolutely no cost for you to be a TMDHosting affiliate. The earnings potential is substantial.
    • TMDHosting are reliable and solid hosting provider. I recommend them to anyone who want a super-fast website and SSD powered.

      Yeap! That’s it!

      Like any HUMAN BEING on this planet earth, Never EVER doubt your potential! Always remember this; you do have what it takes to replicate what others are already doing to make money online $100 and more RIGHT NOW. Just keep on pressing ahead, never GIVE UP!

      I would love to know about any new products and other affiliate programs related to WordPress that have been working well for you. Use the comments section below to share your thoughts.

      Good luck! and as Richard Quest, presenter of Quest Means Business says: Whatever you’re up to next week, make sure it’s profitable.

      Remember to share this article on Facebook, Twitter and Google Plus.

Best Managed WordPress Hosting Servers

WpOven offers a affiliate program: Best Managed WordPress Hosting Servers – Get Yours Now!

Hosting Servers: Affiliate Program Details
Website: Sites Homepage: WPOven.com
Description: All WPOven hosting plans come with the same features and differ only on resources allocated for the plan. All plans include Free Migration Service.

Affiliates earn 100% of first month’s payment or a minimum of $50 per sale (whichever is more).

Highlights :

◾Get Paid when a referred user signs up to our hosting plan.
◾Get paid 100% of first months payment or minimum 50 USD ( which ever is more )
◾Minimum payout is 100 USD , which are paid monthly
◾Our Tracking cookies last for years

Earnings: 100% of first month payment or $50
Tiers: 1
Method of Payment: Paypal
Pay Date: Monthly
Minimum Payout: $100
Cookie Length: 3 years
Tracking Software: Cookies
Packages: A decent plan starters From $19.95 USD
Features : Dedicated VPS, Dedicated Resources, WordPress, WordPress Hosting, Managed Hosting, Site Builder, WordPress themes, Daily Offsite Backups and one click restore, Daily Malware scanning, Security best practices with firewall and DoS protection, Best Client Panel, etc
◾Click Here to Signup for Your – WordPress Hosting Server

How to Install Let’sEncrypt to work with Nginx HTTPS on Ubuntu Server

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG).

The key principles behind Let’s Encrypt are:

◾ Free: Anyone who owns a domain name can use Let’s Encrypt to obtain a trusted certificate at zero cost.
◾ Automatic: Software running on a web server can interact with Let’s Encrypt to painlessly obtain a certificate, securely configure it for use, and automatically take care of renewal.
◾ Secure: Let’s Encrypt will serve as a platform for advancing TLS security best practices, both on the CA side and by helping site operators properly secure their servers.
◾ Transparent: All certificates issued or revoked will be publicly recorded and available for anyone to inspect.
◾ Open: The automatic issuance and renewal protocol will be published as an open standard that others can adopt.
◾ Cooperative: Much like the underlying Internet protocols themselves, Let’s Encrypt is a joint effort to benefit the community, beyond the control of any one organization.

To benefit fully from this guide I recommend that you learn by practice. Choose Your VPS Plan here at DigitalOcean, or HostGator has quality virtual private server (VPS) server packages. Sign Up for VPS HERE Now!

The New HostGator VPS Is Stronger Than Ever!

A HostGator VPS is completely customizable and can be upgraded any time as your site grows. Full root access allows you total control, as well as the ability to install advanced software and completely customize your hosting environment. It truly is dedicated functionality without the expense.

Download and install git to your system.

root@gs01:~# apt-get install git

Download, Clone and Install Let’s Encrypt

root@gs01:~#sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

Change directory

root@gs01:~# cd /opt/letsencrypt
root@gs01:/opt/letsencrypt#

Create an SSL Certificate
Let’s Encrypt automatically performs Domain Validation (DV) using a series of challenges. The Certificate Authority (CA) uses challenges to verify the authenticity of your computer’s domain. Once your server is validated, the CA will issue SSL certificates to you.

Run Let’s Encrypt with the –standalone parameter. For each additional domain name requiring a certificate, add -d example.com to the end of the command.

To obtain a cert I used the Webroot plugin to request an SSL certificate with these commands.

root@gs01:/opt/letsencrypt#./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/YourFolder/public_html -d magwinya.co.za -d www.magwinya.co.za

Specify an administrative email address. This will allow you to regain control of a lost certificate and receive urgent security notices if necessary. Press TAB followed by ENTER or RETURN to save.

Agree to the Terms of Service.

IMPORTANT NOTES:
 - If you lose your account credentials, you can recover through
   e-mails sent to youremail@yourdoamin.whatever.
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/magwinya.co.za/fullchain.pem. Your cert will
   expire on 2016-06-18. To obtain a new version of the certificate in
   the future, simply run Let's Encrypt again.
 - Your account credentials have been saved in your Let's Encrypt
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Let's
   Encrypt so making regular backups of this folder is ideal.
 - If you like Let's Encrypt, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Configure Your Nginx Server Block to look as follows:

root@gs01:~# cat /etc/nginx/sites-available/magwinya.co.za
# You may add here your
# server {
#       ...
# }
# statements for each of your virtual hosts to this file

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Server Block Configuration for magwinya.co.za
server {
        listen 8080;
#       listen [::]:81 default_server ipv6only=on;

        root /var/www/YourFolder/public_html;
        index index.php index.html index.htm;

        location ^~ /.well-known/ {
        allow all;
        }

        ssl on;
        #listen [::]:443 ipv6only=on;
        listen 443;
        # Make site accessible from http://localhost/
        server_name magwinya.co.za www.magwinya.co.za;
        # rewrite     ^   https://my.magwinya.co.za$request_uri? permanent;

        ssl_certificate /etc/letsencrypt/live/magwinya.co.za/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/magwinya.co.za/privkey.pem;
        ssl_stapling on;
        ssl_stapling_verify on;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
        ssl_dhparam /etc/ssl/certs/dhparam.pem;
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;

        # force https-redirects
        if ($scheme = http) {
        return 301 https://www.magwinya.co.za$request_uri;
        }


        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ /index.php?q=$uri&$args;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }

        location /doc/ {
                alias /usr/share/doc/;
                autoindex on;
                allow 127.0.0.1;
                allow ::1;
                deny all;
        }

        # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
        #location /RequestDenied {
        #       proxy_pass http://127.0.0.1:8080;
        #}

        error_page 404 /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root /usr/share/nginx/html;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
        #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php5-fpm:
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /\.ht/ {
                deny all;
        }
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#       listen 8000;
#       listen somename:8080;
#       server_name somename alias another.alias;
#       root html;
#       index index.html index.htm;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}


# HTTPS server
#
#server {
#       listen 443;
#       server_name localhost;
#
#       root html;
#       index index.html index.htm;
#
#       ssl on;
#       ssl_certificate cert.pem;
#       ssl_certificate_key cert.key;
#
#       ssl_session_timeout 5m;
#
#       ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
#       ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
#       ssl_prefer_server_ciphers on;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}
root@gs01:~#

Manage the Nginx Process

Now that you have your certificate up and running, we can go over some basic management commands.

To stop and then start the service again, type:

root@gs01:~# service nginx restart
root@gs01:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@gs01:~#

Now browse your site and i should be using HTTPS.

Renewing a or Multiple Certificates.

Once you have your certificate setup, you can add a simple shell cron entry to renew the certificate automatically for you:

Change Directory.

root@gs01:~# cd /usr/local/bin

Create a shell script and renew certificates

root@gs01:/usr/local/bin#vi letsencrypt-auto-renew.sh

And then copy and paste this shell script:

#!/bin/bash
#
# Created by Geneva Sibanda 
# For All His eSG NETWORKS - Ubuntu Nginx Web Hosting Servers.
# https://www.esgnet.co.za
#
###########################################
#                                         #
# Execute the Let'sEncrypt-auto renew     #
#                                         #
###########################################
##    all actions and set full path too  ##
web_service='nginx'
cd /opt/letsencrypt
./letsencrypt-auto renew
sudo git pull
# We All Have To Do Something Meaningful In Life.
echo "Reloading $web_service"
/usr/sbin/service $web_service reload
exit 0

Create a new cron job that will execute the letsencrypt-auto renew.

root@gs01:/usr/local/bin#crontab -e 

30 2 * * 1 bash /usr/local/bin/letsencrypt-auto-renew.sh

Save and exit: Now every Monday at 2:30 am, the command will run, check and update your SSL certificate.

Conclusion

That’s it! Your web server is now using a free Let’s Encrypt TLS/SSL certificate to securely serve HTTPS content.

How to Add Package on VestaCP

Previously on How to install VestaCP Nginx Only on ubuntu Server I showed you the installation part. So this article is the next guide about how to configure VestaCP for shared hosting based packages and how to add package on VestaCP server. You can get the basic information on my previous tutorial here.

Step-by-step guide on how to use and add package on VestaCP Server.

Remember the best way to learn any new technical skill, is to play around and see how things work. Get comfortable you’re few steps in right direction. Click HERE to Order Your VPS NOW! so that you can gain the practical experience needed.

Now 50% OFF! VPS hosting solutions optimized for you: Click HERE to Order NOW!

Step One: is “to login to Vesta Control Panel”: https://10.11.1.38:8083/

Then login as Admin and Your Password:

Step Two:Click on Packages and ADDING PACKAGE

Step Three: Adding Hosting Packages

 
	
Package Name
eN-200

Web Template
NGINX

Backend Template
PHP5-FPM

DNS Template
BIND9

SSH Access
nologin

Web Domains
1
  
Web Aliases (per domain)
5
  
DNS domains
1
  
DNS records (per domain)
10
  
Mail Domains
1
  
Mail Accounts (per domain)
20
  
Databases
1
  
Cron Jobs
7
  
Backups
7
Quota (in megabytes)
1000
  
Bandwidth (in megabytes)
1000
  
Name servers
gs1.esgnet.lan
gs2.esgnet.lan

ADD ONE MORE NAME SERVER 

Click Add

At the end Your Package will look as below:

That’s it. It is so easy to use VestaCP. In the next guide I will show you how to add Users and assign hosting packages.

How to Study Bachelor of Science in Computing Through UNISA

Bachelor of Science in Computing

Qualification code: 98906
NQF level: 7
Total credits: 360

I am actually studying a Bachelor of Science in Computing at UNISA (98906).

Studying with UNISA can be both challenging and rewarding. The work load is very hectic, if you are hard working, self-motivated and self discipline you are guaranteed to do exceptionally well.

UNISA encourages you to access all study guides, assignments etc via MyUnisa.

Assignment contributes handsomely towards the year mark. As such you need to take your assignments  very serious. As soon you receive or have access to your  UNISA Official Study Material,  start tackling assignments immediately.

To do exceedingly well in your module exam, you need to make sure that your assignment mark is above 95%, with that % the possibility of passing is high.

To be continued…