Delete website/domain

Issues related to applications and software problems and general support
Post Reply
Kawa
Posts: 1
Joined: 2019/11/03 19:01:58

Delete website/domain

Post by Kawa » 2019/11/04 16:48:48

Hi, how to delete website or domain from my VPS on centos via putty?

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: Delete website/domain

Post by tunk » 2019/11/05 10:54:02

This should stop and disable apache:
systemctl stop httpd
systemctl disable httpd

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Delete website/domain

Post by BShT » 2019/11/05 11:36:26

delete /etc/httpd/conf.d/domainname.conf

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Delete website/domain

Post by jlehtone » 2019/11/05 13:09:18

BShT wrote:
2019/11/05 11:36:26
delete /etc/httpd/conf.d/domainname.conf
You assume that config for the target domain is in descriptively named file.

@Kawa: Your question is:
How to modify via command line the content that httpd serves?

Your "putty" reveals that you are using command line.
The "VPS" is irrelevant and this is CentOS Forum ...

tunk's "Stop the server" gets the job done, but for finer control you have to know how httpd is configured.
On CentOS the base config is in /etc/httpd and data in /var/www (by default).
Apache's documentation should help.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Delete website/domain

Post by TrevorH » 2019/11/05 17:49:23

If you set this up in the first place then the answer would be "do the reverse of what you did to install it".
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply