|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|
|||
FreeBSD 6.2 w/HTTPD2.2.8
So although I'm fairly a newb at this I do know a bit of how to get around. I've been able to get FreeBSD 6.2 installed. I've been able to get SSH working with a sysadmin account for remote access. I've have downloaded two versions of Apache, 1.3, and 2.2. I would like to just use 2.2 which I think I think I have installed. One thing I'm looking for is how to edit the /etc/rc.conf file to allow apache/httpd to startup. If i go to /usr/local i have an -apache2- folder and an -httpd-2.2.8- folder. WHich i think both came from the HTTPD-2.2.8.tar.gz install. I can manually start up httpd if i go into the /usr/local/httpd-2.2.8/ directory. Is there a way i can find what ports are installed, and what name they reference in rc.conf? For example when i downloaded Apache1.3 it said to use apachect1 start, but now they say use apache2_enable="YES".
|
|
||||
Quote:
Please read Chapter 4 of the FreeBSD handbook.
__________________
Kill your t.v. |
|
|||
....not really the right answer but ok
So I've typed in 'find / -name apache' and nothing comes back. next please.
can i just download the newest version and place it in the /usr/ports directory? cause im going to need some dependancies like LIBXML also and PERL/PHP |
|
|||
Quote:
However it looks like even though i tried to install all ports, they didnt make it over. I have downloaded the HTTPD2.2.8. directly from Apache.org and have tried extracting that into the /usr/ports/lang dir. So here is my next newb Q: since sysinstall doesnt seem to want to install apache right, is the correct method: chdir into /usr/ports/lang/httpd-2.2.8/; ./configure; make; make install clean then this should install and configure the apache and httpd daemons for use, once i find the appropriate daemon starters under /etc/rc.d -to add-> to the rc.conf |
|
|||
as suggested above ... install from ports. As root run:
cd /usr/ports/www/apache22 && make all install clean edit /usr/local/etc/apache22/httpd.conf file: ServerAdmin webmaster@your_domain.it ServerName your_domain.it:80 edit /usr/local/etc/apache22/extra/httpd-default.conf file: ServerTokens Prod ServerSignature Off HostnameLookups Off echo 'apache22_enable="YES"' >> /etc/rc.conf /usr/local/etc/rc.d/apache22 start Test visiting "http://your_domain.it/” |
|
|