1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

/var/www/html Doesnt Exsist . How Should i Host in my vps ? CENTOS

Discussion in 'Site & Server Administration' started by vishal172, Jan 15, 2010.

  1. #1
    hello ,

    I Recently brought a VPS with linux centos installed in it . But my problem is that their is no /var/www/html folder so how should i host something in my vps . and also when i type my ip as http://ip in firefox . it shows page can not be displayed . I rebuild My vps many times still problem not solved . So kindly help me .

    Best Regards,
    Vish
     
    vishal172, Jan 15, 2010 IP
  2. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Is apache installed there or check the service is running

    open the terminal and type

    #rpm -qa | grep httpd

    #/etc/init.d/httpd start
     
    sahabcse, Jan 15, 2010 IP
  3. vishal172

    vishal172 Peon

    Messages:
    352
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this is error which i got
    [root@ /]# /etc/init.d/httpd start
    Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 77.92.94.96 for ServerName
    (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    [FAILED]
     
    vishal172, Jan 15, 2010 IP
  4. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #4
    past the o/p of below command

    #ps -ax | grep httpd
     
    sahabcse, Jan 15, 2010 IP
  5. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #5
    This error indicates that apache is already in use and you can't start it. In order to solve it use

    fuser 80/tcp

    You will get few hanging apache process, you need to kill those and have to restart apache.

    kill -9 <pid>
    server httpd restart

    Thanks
     
    hostechsupport, Jan 19, 2010 IP
  6. vishal172

    vishal172 Peon

    Messages:
    352
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    [root@vishal172 ~]# service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 77.XX.XX.XX for ServerName

    aww same problem .. pls help
     
    vishal172, Mar 2, 2010 IP
  7. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #7
    In your httpd.conf file, look for the ServerName variable and replace the value. The server should be running though, as that is just a warning message.
     
    RHS-Chris, Mar 2, 2010 IP
  8. vishal172

    vishal172 Peon

    Messages:
    352
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No isn't running . . I changed the their to my ip . . And my websites in my vps aren't running . .
     
    vishal172, Mar 2, 2010 IP
  9. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #9
    which control panel you are using?
     
    Guttu, Mar 3, 2010 IP
  10. vishal172

    vishal172 Peon

    Messages:
    352
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hypervm / kloxo
     
    vishal172, Mar 3, 2010 IP
  11. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #11
    You changed the IP address of the accounts and they are not loading now, is that correct?
     
    RHS-Chris, Mar 3, 2010 IP