Re: How do you automatically start Apache, Bind, etc. in a jail?
On 7/22/10 7:19 PM, Ed Flecko wrote: Oh, O.K., so I CAN just download the tarball (from http://httpd.apache.org/), unpack and install it (just like any other source install) and specify the jail as the target or did I misinterpret you? Do it from _inside_ the jail, not from the host. Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do you automatically start Apache, Bind, etc. in a jail?
Oh, O.K., so I CAN just download the tarball (from http://httpd.apache.org/), unpack and install it (just like any other source install) and specify the jail as the target or did I misinterpret you? Sorry if I've missed your point! :-) Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do you automatically start Apache, Bind, etc. in a jail?
On 7/22/10 7:07 PM, Glen Barber wrote: Also, do you know for sure that compiling from source and specifying the install target (i.e., ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc???) won't work? It will work, sure, but make(1) and the port Makefile does this for you. To be clear, you'd need the apache22 source tarball for that to work. That isn't in the port directory (/usr/ports/www/apache22). make(1) in the port directory fetches the source tarball when the build starts.\ Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do you automatically start Apache, Bind, etc. in a jail?
On 7/22/10 6:51 PM, Ed Flecko wrote: Thanks Glen. :-) I'm not clear how I get the 'make config' to show the configuration screen or the 'make install' to compile and install??? Depending on what you've previously done in the www/apache22 directory, a configuration may already exist. 'make showconfig' will tell you. If so, you can run 'make rmconfig' in the apache22 port directory, and a subsequent 'make config' will display the configuration screen. (Actually, I believe www/apache22 does this automatically if a configuration doesn't already exist.) That might allow me to install Apache (with a limited number of modules) like I want, but I don't understand what you're suggesting. The config screen will allow you to select/deselect various build-time options, such as DAV, AUTH_BASIC, etc. Also, do you know for sure that compiling from source and specifying the install target (i.e., ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc???) won't work? It will work, sure, but make(1) and the port Makefile does this for you. Thank you again! You're welcome. Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do you automatically start Apache, Bind, etc. in a jail?
Thanks Glen. :-) I'm not clear how I get the 'make config' to show the configuration screen or the 'make install' to compile and install??? That might allow me to install Apache (with a limited number of modules) like I want, but I don't understand what you're suggesting. Also, do you know for sure that compiling from source and specifying the install target (i.e., ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc???) won't work? Thank you again! Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do you automatically start Apache, Bind, etc. in a jail?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/22/10 6:20 PM, Ed Flecko wrote: > Hi folks, > I have Apache installed in a "qjail" named "webserver" (I.P. address > 192.168.225.130) using the "pkg_add -r apache22" command, but how do > you get Apache (or Bind, etc.) to automatically start upon boot? > > I got the jail to start by adding qjail_enable="YES" to hosts' > /etc/rc.conf and I also added apache22_enable="YES", but that doesn't > seem to work. > You would need to add apache22_enable="YES" to the jail's rc.conf, not the host's. > Suggestions? > > > > Also, when I console into the jail, and issue an "apachectl start" > command, I get the following error: > > httpd: apr_sockaddr_info_get() failed for webserver > httpd: Could not reliably determine the server's fully qualified > domain name, using 127.0.0.1 for ServerName > Edit httpd.conf, adding a ServerName directive. (An example exists in the file, so you can model after that.) If you don't have a FQDN, use the jail's hostname, and add that hostname to the jail's /etc/hosts. > I figured out if I add the IP address of the jail as well as > "webserver" to the jails' hosts file, I can start Apache, but I still > get this error: > > httpd: Could not reliably determine the server's fully qualified > domain name, using 192.168.225.130 for ServerName > > What am I doing wrong? > > > > Finally, rather than installing Apache using the typical "pkg_add -r > apache22" command, is there a way to install Apache using the > ./configure script? In MY case, I know the EXACT parameters I want to > pass to the ./configure script (like enabling SSL, etc), but I don't > know how to do this in a "jail". > You can build from source if you like, but ports are easier, IMHO. Have a look here for more information on the ports tree: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html >>From the jail console, I tried: > > cd /usr/ports/www/apache22 > ./configure --enable-ssl...etc., etc., etc.??? > 'make config' to show the configuration screen; 'make install' to compile and install. > but this doesn't work. > > Do I need to do the opposite, i.e., from the HOST console: > > ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc??? > Nope; have a look at the link I pasted above. I think you might like the ports tree rather than compiling from source, since all of the "hard work" has already been taken care of for you. Regards, - -- Glen Barber -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxIyKEACgkQeHhHJjlriYVw0QCeMvja3z3manD9lHgBk7VTfocI iCoAn1F4ycv7P+dPv6GhWpghEIOgOxRm =wLii -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"