Results 1 to 2 of 2
Hi guys
Yesterday i tried to set up the apache server on my server end but couldnt view the html file. Service httpd is running, i created a test.html file ...
- 02-19-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
Couldnt view webpage from apache
Hi guys
Yesterday i tried to set up the apache server on my server end but couldnt view the html file. Service httpd is running, i created a test.html file under /var/www/html/ . Below are the configs :
/etc/sysconfig/network -:
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=testbox
GATEWAY=192.168.1.254
/etc/hosts -:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 testbox localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.20 testbox
im remotely accessing the test server within the subnet. firewall config is done also. this is the url i use to access http://192.168.1.20/test.html , but doesnt work. Pls advise on this.
Thanks in advance
- 02-19-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
Well, those are not apache configuration files. What you are looking for usually resides on /etc/apache2/ howadays. The place can change from distro to distro. So, you should really check the documents for your distribution.
You need to search a place to set the DOCUMENT_ROOT on the apache configuration files. By default, in most distros, it's set to /var/www/localhost/htdocs/. But, even if you did not put your test file in the right place, you should still get the famous apache test page, which is something like this:
http://www.janinedalton.com/blog/ima..._test_page.gif
So, if you can't even see this, then there's a problem. Most surely, your apache server hasn't been started. You will also need to check your distro documents to see how to start and stop services. Or at least, let us know, so someone around can help you.
The management of services is a distro-specific task.


Reply With Quote
