Question

Site does not load after upgrading to 18.04

Posted November 6, 2021 100 views
ApacheWordPressLet's EncryptUbuntu 18.04

I upgraded from 16.04 to 18.04 and now when I visit the site, it says “ERRCONNECTIONREFUSED”.

Running WordPress

I thought it was maybe certbot, and tried renewing certs which gives the error

The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')

I tried visiting via IP address and it also says “ERRCONNECTIONREFUSED”

Your help would be appreciated.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @MPA,

I think Cerbot crashed before it obtained the certificate for you.

You can fix that problem by also adding /usr/local/bin/certbot-auto –apache –apache-server-root /etc/httpd –apache-ctl apachectl. That will allow you to get a new certificate.

Hope helps you,
Sergio Turpín

  • But if the site already had a cert before upgrading, does it matter?

    • The apache configuration is correct?

      apachectl configtest

      Are you checking the apache log for another mistake?

      Best regards,
      Sergio Turpín

      • When I run it, this is what I get

        [Sat Nov 06 12:44:03.604889 2021] [so:warn] [pid 2288] AH01574: module php7_module is already loaded, skipping
        apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/security2.load: Cannot load /usr/lib/apache2/modules/mod_security2.so into server: /usr/lib/apache2/modules/mod_security2.so: cannot open shared object file: No such file or directory
        Action 'configtest' failed.
        The Apache error log may have more information.
        

        I think I fixed it with

        apt install libapache2-mod-security2 -y
        

        Now I just need to figure out how to fix

        Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/plugins/LayerSlider/wp/widgets.php on line 4
        
        Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/plugins/essential-grid/essential-grid.php on line 101
        
        Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php on line 258
        
        Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/church-suite/inc/widgets/woocommerce-header-cart.php on line 58
        
        Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/church-suite/inc/plugins/woocommerce/index.php on line 66
        
        Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
        
        Error thrown
        [] operator not supported for strings