Shared webserver

Discussion in 'Web Server' started by Kirk, Oct 31, 2011.

  1. Kirk

    Kirk New Member Staff Member

    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    0
    How I can set up a webserver without using cPanel or Plesk?

  2. gcawood

    gcawood Administrator Staff Member

    Messages:
    49
    Likes Received:
    17
    Trophy Points:
    0
    Hi Toni,
    Setting up a web server without using cPanel or Plesk is simple. Essentially, all you would need to do is download the installation media of your preferred Linux OS, run through the install, selecting web server (so that you get apache/mysql,php etc...) and you are just about done!

    However, administering a bear bones server may be too complicated for a novice user. It will require you to edit the config files manually in order to setup the server, and also schedule updates to the server manually. If you are interested in running a server like this, we would be happy to help you get started, or even do the initial setup for you. Just email hosting@IQnection.com and we can get you started on the right foot.

    Greg
  3. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    198
    Trophy Points:
    43
    Hey there Toni,

    Assuming you have apache installed - along w/ anything you'll want to use like php, mysql, etc.. you can set up a web server relatively easily..

    First off, create a spot where you want your site to live - let's say you're setting up Linuxforum.com:

    Code:
    mkdir -p /home/sites/linuxforum.com
    (the -p will create parent directories if they don't exist)

    Then, edit the /etc/httpd/conf/httpd.conf (CentOS, Red Hat, etc..) to add your site. Add this to the bottom of the file:
    Code:
    <VirtualHost *:80>
        ServerAdmin webmaster@linuxforum.com
        DocumentRoot /home/sites/linuxforum.com
        ServerName www.linuxforum.com
        ServerAlias linuxforum.com
        ErrorLog logs/linuxforum.com-error_log
        CustomLog logs/linuxforum.com-access_log common
    </VirtualHost>
    
    (replacing w/ your info of course)

    Restart apache:
    CentOS/Red Hat/etc..
    Code:
    service httpd restart
    
    That will get it going in a very basic way and bring up a website on the box assuming it's the same ip as the server.

    Like gcawood said - if you're newish to Linux, we'd suggest going with control panel software like cPanel at first.
  4. MustangV10

    MustangV10 New Member

    Messages:
    87
    Likes Received:
    3
    Trophy Points:
    0
    Do you have a VPS or Dedicated server to go from already?

Share This Page