How to enable apache web server?

Discussion in 'Linux' started by r.harishnarayanan, Jan 26, 2009.

  1. r.harishnarayanan

    r.harishnarayanan

    Joined:
    Jan 17, 2009
    Messages:
    4
    Likes Received:
    0
    How to enable and configure apache web server in linpus.... am in need to do... thanx in advance
     
    r.harishnarayanan, Jan 26, 2009
    #1
  2. r.harishnarayanan

    dattaway

    Joined:
    Sep 2, 2008
    Messages:
    198
    Likes Received:
    0
    Location:
    Kansas Citeeeeeeeeee, MO
    I don't have Linpus, but you'll just need a valid set of config files in the search order it does on startup. And run the apache binary directly or through a startup script. Running a "tail -f /var/log/..." on the apache log files in a shell helps diagnose what its doing as it happens.
     
    dattaway, Jan 26, 2009
    #2
  3. r.harishnarayanan

    r.harishnarayanan

    Joined:
    Jan 17, 2009
    Messages:
    4
    Likes Received:
    0
    I got it!...

    Its very simple to run...
    just type the command at root... in the terminal window as

    httpd on
    it enables..
    but what i face the difficulty here is.. i cant able to create/paste the files in /var/www/html folder... plz help me out how to paste/create the files at var/www/html directory.

    thanx in advance
     
    r.harishnarayanan, Feb 13, 2009
    #3
  4. r.harishnarayanan

    r.harishnarayanan

    Joined:
    Jan 17, 2009
    Messages:
    4
    Likes Received:
    0
    to start apache server

    /etc/init.d/httpd start

    to start mysql server

    /sbin/service mysqld start
    to restart apache server

    /etc/init.d/httpd restart

    to restart mysql server

    /sbin/service mysqld restart

    to stop apache server

    /etc/init.d/httpd stop

    to stopmysql server

    /sbin/service mysqld stop
     
    r.harishnarayanan, Mar 1, 2009
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.