Click to See Complete Forum and Search --> : How do I configure Apache in Linux?


Out50Stang
06-03-2003, 12:30 PM
where is Apache installed in Linux? if i got to http://localhost it takes me to my apache server, so it works, but now i just have to find out how to edit it......

serz
06-03-2003, 12:37 PM
You have to edit its config.

locate httpd.conf

That's the config file, every time ou make changes you have to restart the apache server.

apachectl restart

Choozo
06-03-2003, 12:40 PM
(Seeing from your signature that you run Mandrake 8.2, but its always good to include that kind of info in your post ..... many people may ignore 'signatures').

Your config file for apache is named 'httpd.conf' and may be found by issuing the command locate httpd.conf.

Remember to restart apache (as root) after making changes to this file: /etc/rc.d/init.d/httpd restart

Cheers :)


Yay!.... serz beat me to it :D

Out50Stang
06-03-2003, 12:40 PM
where is the page that loads when i go to http://localhost ??

thats what i really want to edit....

Choozo
06-03-2003, 12:42 PM
Look for 'DocumentRoot' in your config file, and edit the index.html file located there.

Out50Stang
06-03-2003, 12:53 PM
awesome! thanks so much! i will have to get to work on this now :)

sharth
06-03-2003, 01:02 PM
/home/httpd and /var/www are common.

could also try this...

updatedb
locate index.html

serz
06-03-2003, 02:01 PM
I had Apache in different dirs, it depends on the distro and the version, I think.

It could be in:
/var/www
/var/www/html (Redhat)
/var/www/htdocs (Slackware)

Later.

Out50Stang
06-03-2003, 02:30 PM
it's in /var/www somewhere, im not at the computer anymore but thats where i found it

xxispawn01xx
06-04-2003, 04:22 PM
install the newest package of apache, then set the directory to where everything will be, this is the directory in which the apache sample files are located, and if you are doing this for fun, try to learn how to secure the daemons, hackers use them to get acess 99% of the time, they are always running and no one really cares, also check your system log files, if you see ten failed logins and several different symobls that might represent cracking passwords, then shutdown your server until you can secure it