![]() |
|
what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - 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: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf (/showthread.php?tid=10129) Pages:
1
2
|
what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - mungujakisa - 08-09-2018 Hello, I'm trying to trace the origin of a file that always reconfigures my /etc/sentora/configs/apache/httpd-vhosts.conf file everytime I add or remove a domain. Interestingly, I also suspended a client and got the same error. There are two problems that I get:
I currently workaround it using the following steps (second pic):
RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - inkoop@topmatica.nl - 08-10-2018 mungujakisa, Look at /var/sentora/backups there you find the VHOST files that will be placed by the cron job that testing Apache. Work with the Sentora panel. Don't mess with httpd-vhost.conf files. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - mungujakisa - 08-10-2018 (08-10-2018, 04:49 AM)inkoop@topmatica.nl Wrote: mungujakisa, Thanks inkoop@topmatica.nl, I've looked through but still not found a solution to my problem. I've looked through each and every file in the backup folder you mentioned, and they are exactly the way I edited them, I know because I simply commented out the offending line in the original file. My problem is that if I add or remove a domain or suspend a client, the file will be edited with the NameVirtualHost entry which will render all my websites inaccessible. I know not to mess with apache files, but I have no option at the moment. By the way, I only started messing with them when Sentora panel caused these errors... Thanks. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - TGates - 08-11-2018 The file that creates the httpd-vhosts.conf file is this one: https://github.com/sentora/sentora-core/blob/master/modules/apache_admin/hooks/OnDaemonRun.hook.php We do know it needs to be updated for sites that use SSL (Remove SSL entries and just show non-ssl expired/exceeded/etc. page or keep SSL entries and show the expired/exceeded/etc. page) RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - mungujakisa - 08-11-2018 Thanks TGates, your direction helped me to solve this mystery. Apparently SSL added the erronous lines as a global entry and this file was faithfully replicating it everytime I added a new domain or removed one. I don't know if it's the certificate manager that did this or Lets Encrypt that I was testing. I corrected the errors in the global entry via Sentora panel and now all is well! Another mystery I have to resolve is why apache needs a reboot like every three to four days, it just gets an error and shows a database connection error. Have a blessed day! RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - TGates - 08-12-2018 (08-11-2018, 03:45 PM)mungujakisa Wrote: Thanks TGates, your direction helped me to solve this mystery. Apparently SSL added the erronous lines as a global entry and this file was faithfully replicating it everytime I added a new domain or removed one. I don't know if it's the certificate manager that did this or Lets Encrypt that I was testing. I corrected the errors in the global entry via Sentora panel and now all is well!Glad that helped you to solve your issue! (08-11-2018, 03:45 PM)mungujakisa Wrote: Another mystery I have to resolve is why apache needs a reboot like every three to four days, it just gets an error and shows a database connection error.That is odd. Apache shouldn't shut down because of a MySQL issue. Are you sure MySQL is not shutting down? Have you checked your available disk space? The logs can get very large and eat up a lot of storage space which will cause MySQL to crash. Check the MySQL log, apache log and syslog to help you find out what is going on. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - mungujakisa - 08-13-2018 (08-12-2018, 04:36 AM)TGates Wrote: Glad that helped you to solve your issue! The errors just happened again, and the error files are slim. I had to reboot the whole server for my websites to come back online. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - TGates - 08-16-2018 Did you check how much free space is on your hard drive? It sounds like the drive is full which in turn will shut down MySQL. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - mungujakisa - 08-16-2018 (08-16-2018, 06:48 AM)TGates Wrote: Did you check how much free space is on your hard drive? It sounds like the drive is full which in turn will shut down MySQL. I have lots of space, more than 400G free of my 500G available as seen in the attached screenshot. This happens like once every week or so. RE: what files edit /etc/sentora/configs/apache/httpd-vhosts.conf - TGates - 08-17-2018 Outside of drive space, I am not sure what would cause this on a 'regular' basis. Hopefully somebody else has more things for you to check.
|