Support Center > Knowledgebase > DirectAdmin > Apache Related Information > Port was replaced with Listen in Apache 2.0
Port was replaced with Listen in Apache 2.0
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
apache_ver=2.0
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
Also Read