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
Is apache installed there or check the service is running open the terminal and type #rpm -qa | grep httpd #/etc/init.d/httpd start
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]
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
[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
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.