Apache2 not working after SSL certificate remove - apache

im using vesta cp i remove the keys on the settings of the domain and the apache is not working how can i make it work again
Restarting web server apache2
...fail!
The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 83 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf.d/vesta.conf: Syntax error on line 1 of /home/admin/conf/web/sapache2.conf: without matching section
Action 'configtest' failed.
The Apache error log may have more information.
Error log
[Sun Dec 04 06:43:37.530259 2016] [:notice] [pid 1881]
mod_ruid2/0.9.8 enabled
[Sun Dec 04 06:43:37.535379 2016] [ssl:warn] [pid 1881] AH02292:
Init: Name-based SSL virtual hosts only work for clients with TLS
server name indication support (RFC 4366)
[Sun Dec 04 06:43:37.535844 2016] [mpm_prefork:notice] [pid 1881]
AH00163: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.17
OpenSSL/1.0.1f configured -- resuming normal operations
[Sun Dec 04 06:43:37.535858 2016] [core:notice] [pid 1881] AH00094:
Command line: '/usr/sbin/apache2'
[Mon Dec 05 18:42:53.735381 2016] [mpm_prefork:notice] [pid 1881]
AH00169: caught SIGTERM, shutting down

Run as root this command:
v-rebuild-user admin

Related

Apache stop working. This site can’t be reached

My apache web server goes down several moment ago. I have Ubuntu 14.04 on digitalocean with PHP 7. When I visit my site, it shows this:
This site can’t be reached
crystalcrowd.ge refused to connect.
When I run service apache2 restart command, it Shows this:
* Restarting web server apache2
Segmentation fault (core dumped)
Action 'start' failed.
The Apache error log may have more information.
last Error in the error_log:
[Thu Dec 08 08:55:41.970435 2016] [mpm_prefork:notice] [pid 25213] AH00169: caught SIGTERM, shutting down
[Thu Dec 08 08:55:42.995218 2016] [mpm_prefork:notice] [pid 30673] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Thu Dec 08 08:55:42.995313 2016] [core:notice] [pid 30673] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 08 08:58:17.074621 2016] [mpm_prefork:notice] [pid 30673] AH00169: caught SIGTERM, shutting down
[Thu Dec 08 08:58:18.087459 2016] [mpm_prefork:notice] [pid 30738] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Thu Dec 08 08:58:18.087522 2016] [core:notice] [pid 30738] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 08 09:28:16.914107 2016] [mpm_prefork:notice] [pid 30738] AH00169: caught SIGTERM, shutting down
Last moment I was trying to set up mail server.

Having problems accessing Apache Webserver from Webmin

I'm running apache on AMI, and I am unable to start the server through webmin. When I try, I get:
Failed to start apache : Apache does not appear to be running :
[Wed Sep 07 20:53:22.937284 2016] [suexec:notice] [pid 9985] AH01232: suEXEC >mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Sep 07 20:53:22.958565 2016] [auth_digest:notice] [pid 9986] AH01757: generating secret for digest authentication ...
[Wed Sep 07 20:53:22.959164 2016] [lbmethod_heartbeat:notice] [pid 9986] AH02282: No slotmem from mod_heartmonitor
[Wed Sep 07 20:53:22.983021 2016] [mpm_prefork:notice] [pid 9986] AH00163: Apache/2.4.23 (Amazon) PHP/5.6.24 configured -- resuming normal operations
[Wed Sep 07 20:53:22.983041 2016] [core:notice] [pid 9986] AH00094: Command line: '/usr/sbin/httpd'
This is my first time setting up a site on AWS, and any help would be greatly appreciated!
Make sure whether Apache is running or not by issuing the below command:
ps ax | grep httpd | grep -v grep
or try to visit your index.html page.
Also, just for your reference, webmin was dropped by Ubuntu https://help.ubuntu.com/community/WebMin

Apache restarting on its own and errors on log

I have three separate boxes running Apache 2.4, all with the same config and modules. On CentOS 7, Apache 2.4, PHP 5.6.
Two issues that could possibly be related. On one hand, I have not forced a restart, yet it would appear that apache restarted itself based on error_log being purged and having the below.
Second issue are the actual errors or warnings displayed. I can't figure out how to resolve them and if they could be the reason that Apache restarts itself in the first place, or be creating other issues elsewhere.
[Sun Jul 19 03:39:02.241577 2015] [auth_digest:notice] [pid 904] AH01757: generating secret for digest authentication ...
[Sun Jul 19 03:39:02.243161 2015] [lbmethod_heartbeat:notice] [pid 904] AH02282: No slotmem from mod_heartmonitor
[Sun Jul 19 03:39:02.246337 2015] [ssl:warn] [pid 904] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Jul 19 03:39:02.292119 2015] [mpm_prefork:notice] [pid 904] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Sun Jul 19 03:39:02.292151 2015] [core:notice] [pid 904] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Would appreciate any guidance?

Apache httpd, starts but failed. Fedora 19 and webmin

I have a problem start apache from webmin, it works but webmin not registre it's running. And the log shows this failed.
In running procsses it work, and the testpages running on the server.
Fedora 19
Apache version 2.4.6
Webmin 1.660
What to do. please help?
---------------LOG----------------
Failed to start apache : Apache does not appear to be running :
[Thu Dec 05 23:57:56.773010 2013] [core:notice] [pid 4712] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 05 23:57:56.774357 2013] [suexec:notice] [pid 4712] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Dec 05 23:57:56.860940 2013] [auth_digest:notice] [pid 4712] AH01757: generating secret for digest authentication ...
[Thu Dec 05 23:57:56.975651 2013] [mpm_prefork:notice] [pid 4712] AH00163: Apache/2.4.6 (Fedora) OpenSSL/1.0.0-fips PHP/5.5.6 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Thu Dec 05 23:57:56.975690 2013] [core:notice] [pid 4712] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Error after upgrading to Apache 2.4.6

The "a2ensite""a2dissite" are not working
Echo:
ERROR: Site XXXXXX does not exist!
I swear it exists in sites-available folder.
After I typed a2ensite and double clicked the Tab button, it shows the /root directory.
There must be something wrong with the a2en/dissite script.
How can I make it back to work?
=====================
Here are the last lines of the error log:
[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down
[Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2'
Renaming site configuration files in /etc/apache2/sites-available/* into *.conf helped.
Example, when enabling site dummy.com, configuration file must be named dummy.com.conf.
Another solution is to change this line in /etc/apache2/apache2.conf from:
IncludeOptional sites-enabled/*.conf
to:
IncludeOptional sites-enabled/*