1

I'm running CentOS7 in virtualbox on a mac (osx 10.9.3).

Ultimately, I want to access the website on my Guest VM from my Host. I can Ping and SSH to VM but I can't access the webpage when entering the VM's IP in Host browser. When running

systemctl status httpd.service 

I get 2 errors:

1) "No listening sockets available". Netstat tells me there is no process on port 80. I'm not out of disk space. Error log is empty (for today) In "/etc/httpd/conf/httpd.conf" I put:

Listen 80

2) "Unable to open logs". In "/var/log/httpd" I did

chmod 777 error_log acces_log

I'm stuck; been trying to access this webpage for a day now.

  • what is the output of journalctl --unit httpd.service ? – Rabin Jul 20 '14 at 17:56
  • logs begin at (today) 18:44 end at (today) 19:52 – RobSeg Jul 20 '14 at 17:58
  • try running systemctl start httpd and then print the output of journalctl --unit httpd.service. also what is the output of netstat -lnpt? , also you need to make sure that firewalld is configured to allow access to the vm machine. – Rabin Jul 20 '14 at 18:04
  • after 'systemctl start httpd' the log end changes to (today) 20:05. 'netstat -lnpt' gives 127.0.0.1:25, 0.0.0.0:22, ::1:25, :::8080, :::22. state all listen. (Can't copy from VM to Host, I hope u understand output. – RobSeg Jul 20 '14 at 18:09
  • So what's on 8080? – goldilocks Jul 20 '14 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.