Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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|improve this question
add comment

migrated from stackoverflow.com Dec 17 '11 at 9:26

This question came from our site for professional and enthusiast programmers.

2 Answers

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|improve this answer
add comment

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|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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