Home : Linux : Red Hat 9 : Apache

How to start the Apache Web Server in Redhat 9.0

Redhat 9 comes with Apache webserver. This is installed by default, but does not run at boot up.

To run Apache type the following at the command prompt:

/etc/init.d/httpd start

To test it type:

/etc/init.d/httpd status

If apache is running you should see something like the following:

httpd (pid 1844 1843 1842 1841 1840 1839 1838 1837 1828) is running...

There are several ways to run Apache at bootup, and here is one of the simple ones.
To run Apache at bootup type:

vi /etc/rc.local

This will open rc.local in the text editor "vi". Arrow down to the bottom of the text (there may not be any yet, in which case it will be the first line) and add:

/etc/init.d/httpd start

Then type :w and enter it (writes the file, i.e. saves it)
Followed by :q and enter it (quits the vi text editor)

Subscribe to us on YouTube