I have buy a new server and I got dedicate IP address. How can I setup the server to host multiple sites on that server. Which is the best linux distribution for this and some free alternative to WHM/cpanel?
And how can I setup all of this?
|comments disabled on deleted / locked posts|
This question came from our site for professional and enthusiast programmers.
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.
Go on a course - something like a 3-4 year BSc in IT, go get a couple of years experience working in a environment where they spend a lot of time setting up web servers, read a few good books on the topic in your spare time.
Research how the different distributions implement releases, both the reporting/delivery mechansim and the frequency with which critical updates are released. Try out some different distributions on virtual machines.
Plan a business model for your website and work out what levels of support its going to need - if necessary recruit staff and/or set up service contracts with suppliers.
Then cross your fingers and plug it in.
To install LAMP (Linux, Apache, MySQL, PHP) on your server follow the instructions:
better way for you is take non free solution like directadmin.com but remember you have to install fresh linux distribution (forexample CENTOS).
if you want to try free solution and if you beginner, it will hard for you. I suggest you to use "webmin" webmin.com/intro.html
Since you're asking this question you may not be the right person to build and expose a WebServer to the outside but... As a starting point you may install an OS with a decent security level by default such as OpenBSD and his chrooted httpd, you'll have to write your code with security in mind to avoid voiding the benefits of a secured install and also don't install packages that may increase the surface attack of your server and fine tune the firewall as required.
For your server operating system here are my list of the major contenders:
But it totally depends on what the server will be used for, there is so many factors/
It's not really that complex to get the fundamentals in place, you have to install the following applications
Open up a shell window and type the following:
And when this is completed you then can install PHP
After this is completed you can then install the mod for apache to work with PHP5 correctly
Ok so now your Server with PHP is installed you can start the MySQL Installation of by running the following command:
follow the on screen instructions and then the client
The is no password for MySQL at the moment so yo u can set the root one up now:
You also need to enable the mysql lib for PHP in
You should be up and running now, but before oyu start you need to restart apache:
You can now go to your localhost and should be able to access it.
When your going to be external you need edit accordingly the following file:
hope this helps dood :)
you could even do:
for an all in one installation
Install Ubuntu Server with long term support (LTS). It will present you with a list of functions you want your server to do, and doesn't come with all the desktop bloat of SUSE and Red Hat. Simply boot the install disc follow the guided install, and you will be presented with options of installing server packages for DNS, LAMP (Linux Apache Mysql Php), Mail Server, OpenSSH, PostgreSQL, Print, Samba (windows file share), Tomcat Java (websites written in Java), and Virtual Machine host. You can manage this list later with the program
For a free cpanel replacement, I've heard good recommendations on ISPConfig or webmin+virtualmin, but most people seem to agree that cpanel is well worth the money with no real competition.
If you are doing much more than some low-traffic web hosting, you may want to switch from Apache to something else, like nginx (most popular), lighttpd (some really popular sites) or litespeed (I think requires license for virtual hosts). It's not a difficult switch, especially if you don't install Apache in the first place, but you'll have some reading to do on security and configuration (or hire someone).