Sentora Support Forums

Full Version: Failed to start everything After installing ssl
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i was trying to install an ssl on a domain. followed all the steps, it didnt worked, find out some logs it shows error while starting apache that it has erro on the same configuration in vhost file potion of config is below

Code:
# DOMAIN: ukrphoenix.com <virtualhost *:443> ServerName ukrphoenix.com ServerAlias  www.ukrphoenix.com ServerAdmin ukrphoenix@afterdoor.com DocumentRoot "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com" php_admin_value open_basedir "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com:/var/sentora/temp/" php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" ErrorLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-error.log" CustomLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-access.log" combined CustomLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-bandwidth.log" common <Directory "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com">   Options +FollowSymLinks -Indexes   AllowOverride All   Require all granted </Directory> AddType application/x-httpd-php .php3 .php ErrorDocument 404 /_errorpages/404.html ErrorDocument 510 /_errorpages/510.html ErrorDocument 500 /_errorpages/500.html ErrorDocument 403 /_errorpages/403.html DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm # Custom Global Settings (if any exist) # Custom VH settings (if any exist) SSLEngine on SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.ca-bundle

I removed all the added lines from panel, for overriding ssl also, it doesnt work, not even apache is running, observed few more issues after this
apt-get command is now not working, error while starting apache

Code:
Redirecting to /bin/systemctl restart  apache2.service Failed to issue method call: Unit apache2.service failed to load: No such file or directory.


systemctl result



Code:
proc-sys-fs-binfmt_misc.automount        loaded failed failed    Arbitrary Executable File Formats File System Automount Point sys-devices-virtual-net-gre0.device      loaded active plugged   /sys/devices/virtual/net/gre0 sys-devices-virtual-net-gretap0.device   loaded active plugged   /sys/devices/virtual/net/gretap0 sys-devices-virtual-net-venet0.device    loaded active plugged   /sys/devices/virtual/net/venet0 sys-subsystem-net-devices-gre0.device    loaded active plugged   /sys/subsystem/net/devices/gre0 sys-subsystem-net-devices-gretap0.device loaded active plugged   /sys/subsystem/net/devices/gretap0 sys-subsystem-net-devices-venet0.device  loaded active plugged   /sys/subsystem/net/devices/venet0 -.mount                                  loaded active mounted   / dev-mqueue.mount                         loaded active mounted   POSIX Message Queue File System brandbot.path                            loaded active waiting   Flexible branding cups.path                                loaded active waiting   CUPS Printer Service Spool systemd-ask-password-console.path        loaded active waiting   Dispatch Password Requests to Console Directory Watch systemd-ask-password-wall.path           loaded active waiting   Forward Password Requests to Wall Directory Watch session-83326705.scope                   loaded active running   Session 83326705 of user root session-83326867.scope                   loaded active running   Session 83326867 of user root session-83326931.scope                   loaded active abandoned Session 83326931 of user root atd.service                              loaded active running   Job spooling tools avahi-daemon.service                     loaded active running   Avahi mDNS/DNS-SD Stack console-getty.service                    loaded active running   Console Getty crond.service                            loaded active running   Command Scheduler dbus.service                             loaded active running   D-Bus System Message Bus dovecot.service                          loaded active running   Dovecot IMAP/POP3 email server getty@tty2.service                       loaded active running   Getty on tty2 httpd.service                            loaded failed failed    The Apache HTTP Server mariadb.service                          loaded active running   MariaDB database server named.service                            loaded active running   Berkeley Internet Name Domain (DNS) network.service                          loaded active exited    LSB: Bring up/down networking postfix.service                          loaded failed failed    Postfix Mail Transport Agent proftpd.service                          loaded active running   ProFTPD FTP Server quotaon.service                          loaded active exited    Enable File System Quotas rhel-dmesg.service                       loaded active exited    Dump dmesg to /var/log/dmesg rhel-readonly.service                    loaded active exited    Configure read-only root support sshd.service                             loaded active running   OpenSSH server daemon systemd-journald.service                 loaded active running   Journal Service systemd-logind.service                   loaded active running   Login Service systemd-random-seed.service              loaded active exited    Load/Save Random Seed systemd-sysctl.service                   loaded failed failed    Apply Kernel Variables systemd-tmpfiles-setup-dev.service       loaded active exited    Create static device nodes in /dev systemd-tmpfiles-setup.service           loaded active exited    Create Volatile Files and Directories systemd-udev-trigger.service             loaded active exited    udev Coldplug all Devices systemd-udevd.service                    loaded active running   udev Kernel Device Manager systemd-update-utmp.service              loaded active exited    Update UTMP about System Reboot/Shutdown systemd-user-sessions.service            loaded active exited    Permit User Sessions systemd-vconsole-setup.service           loaded failed failed    Setup Virtual Console -.slice                                  loaded active active    Root Slice system-getty.slice                       loaded active active    system-getty.slice system.slice                             loaded active active    System Slice


Can anyone please help this issue my all sites are down Sad
a wild guess but is <virtualhost *:443> closed in your vhost file?
(06-24-2017, 05:11 PM)Ron-e Wrote: [ -> ]a wild guess but is <virtualhost *:443> closed in your vhost file?

Yes checked, its closed. forgot to copy. its closed.  now i have removed the ssl portion also, but unable to start anything.


Code:
# DOMAIN: ukrphoenix.com <virtualhost *:443> ServerName ukrphoenix.com ServerAlias  www.ukrphoenix.com ServerAdmin ukrphoenix@afterdoor.com DocumentRoot "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com" php_admin_value open_basedir "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com:/var/sentora/temp/" php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" ErrorLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-error.log" CustomLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-access.log" combined CustomLog "/var/sentora/logs/domains/ukrphoenix/ukrphoenix.com-bandwidth.log" common <Directory "/var/sentora/hostdata/ukrphoenix/public_html/ukrphoenix_com">   Options +FollowSymLinks -Indexes   AllowOverride All   Require all granted </Directory> AddType application/x-httpd-php .php3 .php ErrorDocument 404 /_errorpages/404.html ErrorDocument 510 /_errorpages/510.html ErrorDocument 500 /_errorpages/500.html ErrorDocument 403 /_errorpages/403.html DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm # Custom Global Settings (if any exist) # Custom VH settings (if any exist) SSLEngine on SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/ukrphoenix/ukrphoenix_com.ca-bundle </virtualhost> # END DOMAIN: ukrphoenix.com ################################################################
(06-24-2017, 04:34 PM)damanmokha Wrote: [ -> ]
Code:
Redirecting to /bin/systemctl restart  apache2.service Failed to issue method call: Unit apache2.service failed to load: No such file or directory.

Are you on ubuntu?
Your profile says Centos and then you use httpd not apache2.
(06-24-2017, 06:15 PM)Ron-e Wrote: [ -> ]Are you on ubuntu?
Your profile says Centos and then you use httpd not apache2
Hi, yes m on ubutnu, profile message is old sorry for that, will update eve! I tried -r for re checking version and all it also says command not found.
Hi, so sorry this was my bad, i am writing all commands for ubuntu, I installed this OS in 2014, after that for new installations i am using only ubuntu so that skipped though my mind. So sorry this was my bad its up now.
Thank you so much.