Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've inherited the job of maintaining a linux web server (dedicated box) that runs CentOS 5.7 & Apache/2.0.63. the site's domain name was mistyped on setup and now that's strewn across the whole filesystem. I've tried editing named.conf and httpd.conf + .conf includes and restarting named, httpd and cpanel. that didn't work as cpanel still lists the domain with the typo in it. then went trough each of the files listed here. still a no go. any hints on how to do this?

root@svr [/etc]# grep -lir "mistypeddomain" *
domainusers
domainusers,v
httpd/logs/error_log
grep: httpd/logs/fpcgisock: No such device or address
httpd/etc/httpd.conf
httpd/etc/httpd.conf.ea-orig
httpd/etc/httpd.conf,v
httpd/etc/httpd.conf.datastore
httpd/etc/httpd.conf.easyapache_save
httpd/etc/httpd.conf.bak
httpd/conf/httpd.conf
httpd/conf/httpd.conf.ea-orig
httpd/conf/httpd.conf,v
httpd/conf/httpd.conf.datastore
httpd/conf/httpd.conf.easyapache_save
httpd/conf/httpd.conf.bak
localdomains,v
named.conf
named.conf.cache
proftpd/passwd.vhosts
proftpd/passwd.vhosts.cache
trueuserdomains
trueuserdomains,v
userdatadomains
userdatadomains.stor
userdomains
userdomains,v
vftp/passwd.vhosts
vftp/passwd.vhosts.cache

I should point out that this is a live server so I'm limited as to what I can do to it in terms of shutdowns/reboots/etc.

share

migration rejected from stackoverflow.com Jan 13 at 22:26

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by HopelessN00b Jan 13 at 22:26

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 13 at 22:26

2 Answers 2

If it's on cPanel, then do NOT try to change the domain name from the CLI. If you have access to WHM (which it sounds like you probably do), then login to WHM and go to Account Functions -> Modify an Account, and select the domain for which you want to change and click modify.

Here's a how-to for accessing cPanel & WHM: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WebHome

Here's a discussion on cPanel's forums for changing a domain name: https://forums.cpanel.net/f5/rename-domain-68607.html

share

if you have access to WHM panel you can change your misspelled domain name with the domain name by using the modify account.

In you WHM panel

  • select Modify account
  • Selct the domain name
  • Click on the modify button

Now you can change the domain name.

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.