Port was replaced with Listen in Apache 2.0

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » Apache Related Information

Port was replaced with Listen in Apache 2.0Last Modified: Jun 5, 2011, 3:13 pm
When staring apache, you get an error similar to:

Starting httpd: Syntax error on line 12 of /usr/local/directadmin/data/users/username/httpd.conf:
Port was replaced with Listen in Apache 2.0

that would mean that your directadmin.conf is missing


1) Add apache_ver=2.0 to your directadmin.conf (do not add apache_ver=2.2, always use 2.0 for apache 2.x)

2) Ensure it's set correctly, type:

cd /usr/local/directadmin
./directadmin c | grep apache_ver

If it shows apache 1.3 still, then it's not correctly set.  Check for extra spaces in the value, and ensure there is a newline character at the bottom of the directadmin.conf file (go to the end, and press enter)

3) Once set, restart DA and rewrite the configs:

cd /usr/local/directadmin
killall -9 directadmin
./directadmin d
cd custombuild
./build rewrite_confs

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST