PDA

View Full Version : How do I start Apache please?



basil
02-09-2007, 10:40 AM
I'm running Knoppix 5.1 as a LiveCD.

I tried service hhtpd start to start Apache, without success.

Can someone help me please in starting Apache?

patelbhavesh
02-10-2007, 02:44 AM
do su in a console
and then
/etc/init.d/apache start

brass
02-11-2007, 09:21 PM
Go to a Console and type the following command:

/etc/init.d/apache2 start

Don't omit the 2 after apache, it is easy to do !

to stop, change the start to stop
to get the status of apache, change start to status
to reread the config files, change start to reload
to stop and then restart the server, change start to restart

I believe just giving the command apache2 -V at the console will provide info on
config files and the version of apache

WaKa
02-12-2007, 05:01 AM
If the above does not work then try this:
sudo vi /etc/apache2/apache2.conf
and add ServerName localhost at the end of the file.
Press 'i' and a big insert shows up at the bottom command line
now add
ServerName localhost
to the end using the arrows.
press the following keys
Esc > colon > x > Enter
this will write and save and exit vi.
now type in su root
apache2 -k start

hth
(check out apache2 -h for info)