Create your very own Web Server with Virtualmin/Webmin, MySQL, Apache
This tutorial covers a fully functional web server and what which tools you require for this purpose are as follows:
- Virtualmin
- A LAMP stack (Apache, PHP and MySQL) to serve websites and web applications.
- BIND (DNS Server).
- PostFix (Mail Server).
- Configuration of SPF and Dkim (to avoid mail delivery in spam/junk folders)
Please Note: Do Not follow this tutorial on a live production pre-configured Apache, MySql and PHP server as this may cause loss, Use a Newly Created VPS server and transfer your data once you have followed all the configuration steps.
Prerequisites
To complete this tutorial you will need:
- A VPS Server with Newly installed Debian 9 on it.
- A Fully Qualified Domain Name configured to point your server.
- Two registered custom nameservers for use with Virtualmin to setup.
Step 1 - Setting the Hostname and FQDN for your VPS Server
First you need to login to your VPS server by SSH, in this tutorial we will be using PuTTY & run this command:
apt-get update
Then upgrade necessary packages by running:
apt-get upgrade
Once upgrade is completed, Write this command to check the current server hostname:
hostname-f
In order to change your current hostname you will need to edit /etc/hostname file to your choice of text editor, here we are using nano.
nano /etc/hostname
Delete the current hostname and replace it with your choice of hostname: your_hostname
Related Tutorials
Installing LAMP (Linux Apache MySQL and PHP) Stack on CentOS 7 64bitSetup a Master-to-Master Replication Between Two MariaDB Servers
Setup and Configuration of FreeRadius + MySql on Ubuntu 14.04 64bit
Installing Wordpress on Debian 8 Server
Installing and Configuring Wordpress on an Ubuntu 14.04 64bit Server
comments (9)
حيدر
- 5 years agoØ´Ùرا ÙÙÙ
phu
- 5 years agoapp game
Banshi
- 5 years agoI decided to buy VPS from your company, but want to test it first. Since I'm new to it, I use this tutorial to setup a server. But why here is the Step 1 only?? Where are the other steps? How do I setup the server? Well...I think I'll choose more user-friendly company
Juken
- 5 years agoGreat tutorial
nnn
- 5 years agogood
KAKATO
- 5 years agoHOW I CAN ADD CPANLE ON Ubuntu
KAKATO
- 5 years agoHOW I CAN ADD CPANLE ON Ubuntu
hassan
- 5 years agothank you very much
DemonicF
- 3 years agoand where are the rest of the steps???