1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Installing Web Server

Discussion in 'Programming & Webmastering' started by Wozzer, Nov 7, 2013.

  1. Wozzer

    Joined:
    Jun 30, 2008
    Messages:
    1,133 (0.50/day)
    Thanks Received:
    68
    Location:
    England
    I've been tasked with setting up a web page running a database in the background which allows my department to log certain activites.

    Having no prior experience with creating / setting up a webserver, I'm in a bit of a dark hole - So I have a couple of questions. Any guidance / feedback would be gratefully appreticated.

    - I've set up a partition on a drive to store the web files.
    First question would be - is this bad practise? Should the web files be on a different drive completely?
    The web page won't have a huge amount of activity, so it shouldn't effect the over performance of the other paritions.

    - Once installed (Perhaps i'm jumping the gun!), how would I access the site.
    I'm used to using XAMPP - so to access the site would be to simply enter 'localhost'. I assume i'd need to enter the IP address of the drive? That brings me to my next point - as there are several partitions on the drive, how would I direct it to that specific partition?

    Apologies for the lengthy and perhaps stupid questions. This is all new to me.

    :toast:
    Last edited: Nov 7, 2013
  2. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,406 (4.72/day)
    Thanks Received:
    3,233
    rather than ask you a bunch of questions about your setup i am just going to go ahead and recommend what you do...

    1. install CentOS with all desktop applications
    -partition your drive so that you have the majority of data in / .
    2. Apache will already be installed so you just have to turn it on
    - www root located at /var/www/html
    3. install MySQL using YUM
    - it will install to /var/lib/mysql
    4. You will only be able to use 'localhost' to access the apache instance locally. for those accessing remotely you will need either the hostname or the IP.
    - make sure you turn off iptables
  3. alexstone New Member

    Joined:
    Nov 4, 2013
    Messages:
    18 (0.06/day)
    Thanks Received:
    0
    Wozzer what is your OS ?
  4. 3rdshiftdj New Member

    Joined:
    Nov 28, 2013
    Messages:
    1 (0.00/day)
    Thanks Received:
    0
    OP, you can symlink from any partition to the root directory of Apache, then browse http://IP/path. You can also change the Document Root of apache to point anywhere.

    for instance:

    I symlink `ln -s /other/software /var/www/software`

    If I browse to http://SERVER/software, it'll show up.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page