Hosting without control panel
It’s a must to know if you’re planning to enter the field of server and website administrating, for example, all what the control panels do i.e:
First of all you’ll need to install LAMP, I am not going to cover it in this tutorial but I will in another one later on.
LAMP is a software bundle that includes all the essential packages we need, including the following:
Now after you’ve installed LAMP, there comes the most important part that would let you provide hosting without control panel, which is the apache configuration files, I have some servers that I use for my tutorial writing, without going to the linux flavor dilemma, I will be using a CentOS server.
You’ll need basic knowledge of text editing on linux, I prefer using nano or vi.
Each of them got it’s own cons and pros. I know this one will start a comments war at some point which one is better, but I still tend to prefer nano over vi
Yes vi is included in all linux OSs, but for example where I am right now in istanbul, the keyboard layout got a major problem with vi, I can’t use the insert or “i” Mode.
So we will start editing our apache configuration file, I wrote a tutorial before about the location of the log files on linux at this link.
Now search for the following string by pushing ctrl+w “<VirtualHost *:80>” You’ll find out it’s commented out with a “#” At the beginning of the line, remove that “#”.
Then we will find in the next lines “DocumentRoot” And “ServerName” These are the most important variables to provide hosting without control panel.
if you’ve created a folder for your content, then you will need to add it right next to the DocumentRoot, if not you can create a new folder using the mkdir command.
Afterwards the ServerName is basically the domain name that you’ll be hosting without control panel.
I tend to add also ServerAlias, with the domain name plus www, but it’s not a mandatory step, so make sure none of the following line is commented out with a “#” Save the file by pushing ctrl+x then y.
Now you’re ready to browse to your domain name, but don’t forget to add an iptables rule for apache server, or stop the firewall all together, which I don’t recommend except for learning purposes.
Comments are closed.