Setting Up Basic Web Server In CentOS

Discussion in 'Site & Server Administration' started by sami1255, Oct 3, 2008.

  1. #1
    hi i am learning server administration myself, DP helped me selecting the best open source operating system in a previous thread.. now that i got centos 5 installed.. iam kinda confused..

    1) centos do have apache mysql php built in or i have to install them?

    2) I've been using XAMPP in windows where i place .html / .php in htdocs and check them using http://localhost in my browser.. i want to achieve the same thing here centOS..

    3) once 1 & 2 are done.. i want to point various domains to this new small home server via dns etc..

    Kindly point me in the right direction.. I'll be really grateful !
     
    sami1255, Oct 3, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    if u install a control panel like lxadmin than apache and mysql and stuff will be installed automatically
     
    Bohra, Oct 3, 2008 IP
  3. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should look into securing your server first as the following will all be worthless if your server is infiltrated. Anyways, here is how to install the Apache, MySQL, PHP:

    1) yum install httpd php-common php-mysql mysql mysql-devel mysql-server
    2) You can specify the path to your website in /etc/httpd/conf/httpd.conf
    3) yum install bind-chroot caching-nameserver

    You can use the -y flag with yum to prevent having to press "y" for yes all the time during the install.
     
    jliu, Oct 3, 2008 IP
  4. stmiki

    stmiki Peon

    Messages:
    523
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's not that easy,

    You need to configure bind so your domain will work correctly
     
    stmiki, Oct 3, 2008 IP
  5. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That is true. You should setup DNS zone files for your localhost, reverse DNS, your domain, etc. I would go into detail but honestly all the questions in the OP's post are highly documented and very easy to find answers. A simple Google search will yield all your answers.
     
    jliu, Oct 3, 2008 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Its better you install a control panel as normally it has most of things with it
     
    Bohra, Oct 4, 2008 IP