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 & Php) Stack on Debian 8 ServerInstall LAMP (Linux Apache, Mysql Server and Php) on an Ubuntu 14.04 64bit VPS Server
CentOS compiler installed under the Apache, PHP, MySQL
How to use LNMP install Website environment
Installing ServerPilot and Creating an App on Ubuntu 14.04 LTS 64bit
comments (9)
حيدر
- 7 years agoشكرا لكم
phu
- 7 years agoapp game
Banshi
- 7 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
- 7 years agoGreat tutorial
nnn
- 7 years agogood
KAKATO
- 7 years agoHOW I CAN ADD CPANLE ON Ubuntu
KAKATO
- 7 years agoHOW I CAN ADD CPANLE ON Ubuntu
hassan
- 7 years agothank you very much
DemonicF
- 5 years agoand where are the rest of the steps???