This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
#1
Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
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
Reply
Thanks given by:
#2
RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
There are two ways:

1 - You could use the command line to create a new one:

Code:
setso --set apache_changed true

Then run the daemon:
Code:
sudo /usr/bin/php -q /etc/sentora/panel/bin/daemon.php

In case you need to restart apache:

Code:
UBUNTU: service apache2 restart
CENTOS: service httpd restart

2 - 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.)
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: nscloud
#3
RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
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.
Reply
Thanks given by:
#4
RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
Me.B knows of s few ways that work well. They have to be configured manually and work outside of Sentora.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
RE: Urgent: Accidentally deleted httpd-vhosts.conf file any one have this file pls share
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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
How to set up File Manger for Sentora? donaldaugust 1 3 ,475 01-11-2022, 05:01 AM
Last Post: Nigel
Site Not Updating changes made in The HTML file me7leelee 4 8 ,501 05-20-2020, 06:29 PM
Last Post: 5050
Security issue urgent johnnyp 7 13 ,935 02-27-2020, 06:19 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)