≡ Menu

/usr/local/etc/rc.d/apache22

FreeBSD: Restart Apache Server

How can I restart Apache web server under FreeBSD operating systems?

To restart the Apache version 2.2 under FreeBSD, run the following as root user:
# /usr/local/etc/rc.d/apache22 restart
To stop Apache, run:
# /usr/local/etc/rc.d/apache22 stop
To start Apache, run:
# /usr/local/etc/rc.d/apache22 start

Q. I've installed Apache 2.2 from FreeBSD 7.0 ports and when I try to start I get following warning on screen:

Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
[Wed Sep 17 22:01:58 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

How do I fix this error?
[click to continue…]

Q. I've installed Apache2 and mod_security21 under FreeBSD. Whenever I try to restart apach22 process I get following error:

Performing sanity check on apache22 configuration:
httpd: Syntax error on line 106 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so: Undefined symbol "xmlFree"

How do I fix this problem?
[click to continue…]

Q. How do I install and configure Apache web server under FreeBSD 7.x operating systems?
[click to continue…]