/cpanel redirect to port 2082 not working

danitfk

Registered
Feb 18, 2015
2
0
1
cPanel Access Level
Root Administrator
Hello fellows :)

In this week I did change some variables in httpd.conf about Directory options , But I did restore to default.

Now I have some problem , Like when I open this address http://mydomain.com/cpanel will not redirect tohttp://myhostname.com:2082 or http://mydomain.com:2082 It will show 404 not found page. Also I have some problem with KCFinder and I faced to Internal Server error.

How I can restore apache config (httpd.conf) to default setting?
 

24x7ss

Well-Known Member
Sep 30, 2014
272
17
68
India
cPanel Access Level
Root Administrator
Twitter
Hello,

I would suggest you to take backup of httpd.conf and rebuild it with below command:

/scripts/rebuildhttpdconf

If you want to make any custom changes in httpd.conf, you need to run the destiler to make it permanent. You should run below command after making custom changes:

/usr/local/cpanel/bin/apache_conf_distiller --update
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Is the issue isolated to that particular domain name? For instance, is /cPanel accessible from the hostname or IP Address?

Thank you.