| setting up a very simple apache webserver on Linux (Fedora 12) |
|
| sysadmin |
|
The following article describes how to setup a very simple apache webserver on Linux (Fedora 12).
Step 1: Install Apache
run the following command as root:
Step 2: create a html page
go to the "html" directory:
and open a new file called "index.html"
write the following html code into that file and save & close the file with ":wq"
Step 3: start apache
If you want apache to start at boot time:
To start apache now manually:
Now open a browser window and go to "http://localhost" or "http://127.0.0.1".
SELinuxIf You have SELinux enabled you have to make sure the security context of your new file is "httpd_sys_content_t". run "ls -laZ" to check the security context:
If it is NOT httpd_sys_content_t you can restore the context with restorecon:
Comments (1)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |

