2/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_charset_lite.la /usr/local/libexec/a pache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_deflate.la /usr/local/libexec/apache 22/ Making install in loggers /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_log_config.la /usr/local/libexec/apa che22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_logio.la /usr/local/libexec/apache22 / Making install in metadata /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_env.la /usr/local/libexec/apache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_mime_magic.la /usr/local/libexec/apa che22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_cern_meta.la /usr/local/libexec/apac he22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_expires.la /usr/local/libexec/apache 22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_headers.la /usr/local/libexec/apache 22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_usertrack.la /usr/local/libexec/apac he22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_unique_id.la /usr/local/libexec/apac he22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_setenvif.la /usr/local/libexec/apach e22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_version.la /usr/local/libexec/apache 22/ Making install in ssl /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_ssl.la /usr/local/libexec/apache22/ Making install in http /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_mime.la /usr/local/libexec/apache22/ Making install in dav/main /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_dav.la /usr/local/libexec/apache22/ Making install in generators /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_status.la /usr/local/libexec/apache2 2/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_autoindex.la /usr/local/libexec/apac he22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_asis.la /usr/local/libexec/apache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_info.la /usr/local/libexec/apache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_cgi.la /usr/local/libexec/apache22/ Making install in dav/fs /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_dav_fs.la /usr/local/libexec/apache2 2/ Making install in mappers /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_vhost_alias.la /usr/local/libexec/ap ache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_negotiation.la /usr/local/libexec/ap ache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_dir.la /usr/local/libexec/apache22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_imagemap.la /usr/local/libexec/apach e22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_actions.la /usr/local/libexec/apache 22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_speling.la /usr/local/libexec/apache 22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_userdir.la /usr/local/libexec/apache 22/ /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_alias.la /usr/local/libexec/apache22 / /usr/ports/www/apache22/work/httpd-2.2.4/srclib/apr/libtool --silent --mode=install cp mod_rewrite.la /usr/local/libexec/apache 22/ Making install in support Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_default.la mod_authn_alias.la mod_authz_host.la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authz_default.la mod_auth_basic.la mod_auth_d igest.la Building shared: mod_file_cache.la mod_cache.la mod_disk_cache.la Building shared: mod_dumpio.la Building shared: mod_include.la mod_filter.la mod_charset_lite.la mod_deflate.la Building shared: mod_log_config.la mod_logio.la Building shared: mod_env.la mod_mime_magic.la mod_cern_meta.la mod_expires.la mod_headers.la mod_usertrack.la mod_unique_id.la mod_setenvif.la mod_version.la Building shared: mod_ssl.la Building shared: mod_mime.la Building shared: mod_dav.la Building shared: mod_status.la mod_autoindex.la mod_asis.la mod_info.la mod_cgi.la Building shared: mod_dav_fs.la Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_imagemap.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la Installing configuration files mkdir /usr/local/etc/apache22 mkdir /usr/local/etc/apache22/extra mkdir /usr/local/share/examples/apache22 mkdir /usr/local/share/examples/apache22/extra Installing HTML documents mkdir /usr/local/www/apache22 mkdir /usr/local/www/apache22/data Installing error documents mkdir /usr/local/www/apache22/error Installing icons mkdir /usr/local/www/apache22/icons Installing CGIs mkdir /usr/local/www/apache22/cgi-bin Installing header files mkdir /usr/local/include/apache22 Installing build system files mkdir /usr/local/share/apache22 mkdir /usr/local/share/apache22/build Installing man pages and online manual mkdir /usr/local/share/doc/apache22 To run apache www server from startup, add apache22_enable="YES" in your /etc/rc.conf. Extra options can be found in startup script. ===> Installing rc.d startup script(s) ===> Compressing manual pages for apache-2.2.4_2 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for apache-2.2.4_2 ===> SECURITY REPORT: This port has installed the following files, which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/lib/libapr-1.so.2 This port has installed the following startup scripts, which may cause these network services to be started at boot time. /usr/local/etc/rc.d/apache22 If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://httpd.apache.org/ [phoenix@ /usr/ports/www/apache22]$ sudo pico /etc/rc.conf Password: Sorry, try again. Password: UW PICO(tm) 4.10 File: /etc/rc.conf # -- sysinstall generated deltas -- # Thu Jun 28 20:25:24 2007 # Created: Thu Jun 28 20:25:24 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. usbd_enable="YES" sshd_enable="YES" samba_enable="YES" apache22_enable="YES" ifconfig_fxp0="inet 64.81.142.142 netmask 255.255.255.0" route add default 64.81.142.1 [ Wrote 13 lines ] [phoenix@ /usr/ports/www/apache22]$ cd /usr/local/etc [phoenix@ /usr/local/etc]$ ls apache22 openldap rc.d scponly smb.conf.sample sudoers.default cups pam.d samba smb.conf sudoers sudoers.sample [phoenix@ /usr/local/etc]$ cd rc.d [phoenix@ /usr/local/etc/rc.d]$ ls -la total 24 drwxr-xr-x 2 root wheel 512 Jul 14 22:34 . drwxr-xr-x 9 root wheel 512 Jul 14 22:33 .. -r-xr-xr-x 1 root wheel 4720 Jul 14 22:34 apache22 -r-xr-xr-x 1 root wheel 508 Oct 16 2006 cupsd -r-xr-xr-x 1 root wheel 4895 Jul 14 20:42 samba -r-xr-xr-x 1 root wheel 4388 Jul 13 09:01 samba.sh [phoenix@ /usr/local/etc/rc.d]$ sudo /usr/local/etc/rc.d/apache22 route: writing to routing socket: File exists add net default: gateway 64.81.142.1: route already in table Usage: /usr/local/etc/rc.d/apache22 [fast|force|one](start|stop|restart|rcvar|reload|graceful|gracefulstop|configtest|status|po ll) [phoenix@ /usr/local/etc/rc.d]$ sudo /usr/local/etc/rc.d/apache22 start route: writing to routing socket: File exists add net default: gateway 64.81.142.1: route already in table Performing sanity check on apache22 configuration: httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK Starting apache22. httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [phoenix@ /usr/local/etc/rc.d]$ sudo ps -wwaux | grep httpd phoenix 75665 0.0 0.3 1592 1040 p0 S+ 8:46PM 0:00.00 grep httpd [phoenix@ /usr/local/etc/rc.d]$ sudo ps aux | grep "httpd" phoenix 75667 0.0 0.3 1592 1040 p0 S+ 8:47PM 0:00.00 grep httpd [phoenix@ /usr/local/etc/rc.d]$ sudo ps aux | grep "apache" phoenix 75669 0.0 0.3 1592 1040 p0 S+ 8:47PM 0:00.00 grep apache [phoenix@ /usr/local/etc/rc.d]$ sudo /usr/local/etc/rc.d/apache22 stop route: writing to routing socket: File exists add net default: gateway 64.81.142.1: route already in table apache22 not running? (check /var/run/httpd.pid). [phoenix@ /usr/local/etc/rc.d]$ cd /var/run [phoenix@ /var/run]$ ls cron.pid dmesg.boot log nmbd.pid smbd.pid syslog.pid devd.pid ld-elf.so.hints logpriv ppp sshd.pid syslogd.sockets devd.pipe ld.so.hints named sendmail.pid sudo utmp [phoenix@ /var/run]$ cd /usr/local/etc [phoenix@ /usr/local/etc]$ sudo /usr/local/etc/rc.d/apache22 start route: writing to routing socket: File exists add net default: gateway 64.81.142.1: route already in table Performing sanity check on apache22 configuration: httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK Starting apache22. httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [phoenix@ /usr/local/etc]$ route: writing to routing socket: File exists add net default: gateway 64.81.142.1: route already in table -bash: route:: command not found [phoenix@ /usr/local/etc]$ add net default: gateway 64.81.142.1: route already in table Performing sanity check on apache22 configuration: httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK Starting apache22. -bash: add: command not found [phoenix@ /usr/local/etc]$ Performing sanity check on apache22 configuration: httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK Starting apache22. httpd: apr_sockaddr_info_get() failed for httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName -bash: Performing: command not found [phoenix@ /usr/local/etc]$ httpd: apr_sockaddr_info_get() failed for -bash: syntax error near unexpected token `(' [phoenix@ /usr/local/etc]$ httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName > Syntax OK > Starting apache22. > httpd: apr_sockaddr_info_get() failed for > httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName -bash: httpd:: command not found [phoenix@ /usr/local/etc]$