The first time I installed apache 2.4.46 from source downloaded on the Internet , I just run "./configure && make && make install", so the default directories for this are :
ServerRoot :: /usr/local/apache2
DocumentRoot :: /usr/local/apache2/htdocs
However, my team-lead need to install with "ServerRoot=/etc/httpd" and "DocumentRoot=/var/www/html'
Thus, I remove /usr/local/apace2 folder and reinstall with command
"./configure --prefix=/etc/httpd --docdir=/var/www/html" and then, make && make install.
The problem is when I start apache, it has an error that "httpd: Could not open configuration file /usr/local/apache2/conf/httpd.conf: No such file or directory".
I then run "/etc/httpd/bin/apachectl -V" command and found out that the HTTP_ROOT is still associtated with /usr/local/apache.
[root@localhost ~]# /etc/httpd/bin/apachectl -V
Hence, my question is, how can I change this PATH for HTTPD_ROOT like this "HTTPD_ROOT=/etc/httpd".?
Thanks a lot for all your support, guys and I'll appreciate it