Where do I change Apache ServerAdmin email address in httpd.conf?

outofcontrol

Active Member
May 18, 2009
27
1
53
Montreal
Hello,

I am quite familiar with Linux and Apache, and normally configure by hand my files. I now have my first cPanel box and seem to be at a loss on how to change the ServerAdmin email address in httpd.conf. Currently my cPanel box is up and running and properly hosting sites.

I have looked in the control panel at domain.com:2087 under Apache Configuration and Basic cPanel/WHM Setup, as well as having gone through the other configuration files in the left column. Where an email address is requested, I have entered my valid email. However, when the apache file is rebuild it shows the original email address from when I first got the server which is [email protected].

It would appear obvious that I have missed something, but for the life of me, I cannot find what.

Is there anyone out there that can offer me a suggestion on how to make this change.

Thank you.
 

outofcontrol

Active Member
May 18, 2009
27
1
53
Montreal
I just checked /var/cpanel/cpanel.config and see no address there, but saw that I should run /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings after changes. I did that, however, the wrong address still shows in /usr/local/apache/conf/httpd.conf
 

outofcontrol

Active Member
May 18, 2009
27
1
53
Montreal
Okay, found it. I had to manually edit /var/cpanel/conf/apache/main to make the change. I then rebuilt the apache files and all is fine now.

I am not aware of a control panel area for changing this.
 

outofcontrol

Active Member
May 18, 2009
27
1
53
Montreal
As far as I know I am pretty current. The server is only a couple of weeks old. This is what the control panel says:

cPanel 11.24.4-S35075 - WHM 11.24.2 - X 3.9
REDHAT Enterprise 5.3 i686 standard on myserver
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator