![]() |
|
Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share (/showthread.php?tid=4134) |
Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - nscloud - 10-19-2017 Hi, I accidentally deleted httpd-vhosts.conf in the folder ( /etc/sentora/configs/apache/httpd-vhosts ) it was happen while iam editing an value in the file. I mean I have used WinSCP for editing and uploading new files to folders in the server, when I have enable lets encrypt SSL some of the thing are not working so Iam testing by changing some values in the httpd-vhosts.conf file. After editing it WinSCP shows it was under queen and so i thong it was only modifying the server so I called the Queue process suddenly the file was disappeared from the server. Now all of my websites are down did any one know how to recover it or how to regenerate it using command line .? Please help me now. It was very urgent. If any one have the file please share with me I will change the values to like tdl other to my server . Iam using Centos 7 RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - TGates - 10-19-2017 There are two ways: 1 - You could use the command line to create a new one: Code: setso --set apache_changed trueThen run the daemon: Code: sudo /usr/bin/php -q /etc/sentora/panel/bin/daemon.phpIn case you need to restart apache: Code: UBUNTU: service apache2 restart
CENTOS: service httpd restart2 - There should be backups in: /var/sentora/backups/ which you would need to copy to the /etc/sentora/configs/apache/ folder and rename as httpd-vhosts.conf (The most recent file is obviously the most recent backup.) RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - nscloud - 10-19-2017 Dear TGates , Thanks for your reply, I have chosen the second option, the file backup was already there in different name and I and moved it the folder and renamed it. It is working very fine, any how let me know is there any option which we can backup the main resources like this to another server using auto back up or ftp backup. If you know any please tell. RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - TGates - 10-20-2017 @[Me.B] knows of s few ways that work well. They have to be configured manually and work outside of Sentora. RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share - Me.B - 10-20-2017 What do you want to backup ? For http conf files, no need as you can generate them on the fly using cron bot. You need mainly to backup sentora DB that holds the key. M B |