Need help with httpd.conf file

Discussion in 'Apache' started by cupid007, Nov 13, 2008.

  1. #1
    hi
    i cant locate a httpd.conf file in my server.
    but one of my script needs it.
    i have no idea how to do it.
    please give me a simple httpd.conf file.

    also how can i restart my apache

    thanks:(
     
    cupid007, Nov 13, 2008 IP
  2. jphilipson

    jphilipson Peon

    Messages:
    167
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you already have apache running, then you must have a httpd.conf somewhere...

    try "locate httpd.conf" if it's a linux machine
     
    jphilipson, Nov 13, 2008 IP
  3. cupid007

    cupid007 Peon

    Messages:
    938
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    where to type??
    i am using a free hosting account.
    i searched all the directories but there is no such file
    please tell me how to code a simple httpd.conf file......
     
    cupid007, Nov 13, 2008 IP
  4. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #4
    On a free hosting account you do not have access to httpd.conf
    You require root access to the server, so in effect this only occurs when you own the server
     
    Tropp, Nov 14, 2008 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    Without root access of the server you can not edit httpd.conf as well as you can't restart Apache too.

    Kailash
     
    kailash, Nov 16, 2008 IP
  6. cupid007

    cupid007 Peon

    Messages:
    938
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for helping me friends
     
    cupid007, Nov 16, 2008 IP
  7. yajur

    yajur Banned

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    for what reason u need to edit httpd.conf some fucntion can be done by editing php.ini
     
    yajur, Nov 25, 2008 IP
  8. tanweernoor

    tanweernoor Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you can ask your admin to add you as a sudo user for example

    visudo

    and add the below lines .. (for user tanweer)

    tanweer localhost=/sbin/service httpd start,/sbin/service httpd stop, /sbin/service httpd restart
    tanweer localhost=/bin/vi /etc/httpd/conf/httpd.conf


    then u can start and configure httpd.conf
    /bin/vi /etc/httpd/conf/httpd.conf
     
    tanweernoor, Dec 1, 2008 IP