I upgraded a Ubuntu 16.04 to 18.04, weeks later Apache2 stopped working after an update











up vote
0
down vote

favorite












I am wondering what might have gone wrong and how to fix it.



I upgraded Ubuntu from 16 to 18 on September 20th, 2018. I ended up having to re-install PHP at the time to allow proper function, but everything worked and the server was preforming well up until November 13th, 2018 (2 days ago).



The server had a few updates for security to be installed, so I allowed them to install as I do every 3 or so days. At that point, Apache2 went down and I couldn't figure out why so I ran a purge of the app and then reinstalled it. Then the server ran into issues with my virtual hosts listed in the apache2.conf file in this format:



Include /etc/apache2/sites-enabled/

#Virtualhosts
<VirtualHost *:80>
DocumentRoot /var/www
</VirtualHost>

<VirtualHost 111.11.1.111:80>
DocumentRoot /var/www/html/www.domain.com/public_html
ServerName www.domain.com
ServerAlias www.domain.com domain.com
<Directory “/var/www/html/www.domain.com/public_html”>
allow from all
Options +Indexes
</Directory>
HostNameLookups double
IdentityCheck on
</VirtualHost>


When I removed the statements in the Apache2.conf then Apache started up just fine.



The only error I get when running the Apache2 Service Status is that my server does not have a qualified domain name. Everything else passes. I do not think this would cause the issues I am having. I never gave it one to begin with as this is just a test server to see if I want to run my sites off of Ubuntu or not.



I then tried the sites, and not all of them worked so I looked further and found that one of the 3 sites were up so I know the virtual hosts are not functioning correctly. I looked to see what else was broken and found that PHP wasn't functioning, so I repaired it. PHP is now up and fixed, but I still have no virtual hosts available.



I have 3 files that are pointing to my domain.com.conf files in the sites-enabled folder but I still can't get Apache2 to function with them. Every time I try to add a virtual host statement into the Apache2.conf file it comes back as failed when it is restarted. Does the new version of Apache2 not support this?



Any pointers as to what is happening would be great. The server is not a production server yet, as I am making sure I can handle a Ubuntu server to handle our websites before I go live with them.



Also, is it better to just build a new Ubutnu server when upgrading or do most people just do the in-place upgrade on the server like I did when they upgrade to the newest version? Seems going from 16 to 18 wasn't worth it to me. A lot of little issues have popped up since I did this. I never had issues with 16.04, it was only after the in-place upgrade that these things started.



Thanks for any help,
Ross










share|improve this question


























    up vote
    0
    down vote

    favorite












    I am wondering what might have gone wrong and how to fix it.



    I upgraded Ubuntu from 16 to 18 on September 20th, 2018. I ended up having to re-install PHP at the time to allow proper function, but everything worked and the server was preforming well up until November 13th, 2018 (2 days ago).



    The server had a few updates for security to be installed, so I allowed them to install as I do every 3 or so days. At that point, Apache2 went down and I couldn't figure out why so I ran a purge of the app and then reinstalled it. Then the server ran into issues with my virtual hosts listed in the apache2.conf file in this format:



    Include /etc/apache2/sites-enabled/

    #Virtualhosts
    <VirtualHost *:80>
    DocumentRoot /var/www
    </VirtualHost>

    <VirtualHost 111.11.1.111:80>
    DocumentRoot /var/www/html/www.domain.com/public_html
    ServerName www.domain.com
    ServerAlias www.domain.com domain.com
    <Directory “/var/www/html/www.domain.com/public_html”>
    allow from all
    Options +Indexes
    </Directory>
    HostNameLookups double
    IdentityCheck on
    </VirtualHost>


    When I removed the statements in the Apache2.conf then Apache started up just fine.



    The only error I get when running the Apache2 Service Status is that my server does not have a qualified domain name. Everything else passes. I do not think this would cause the issues I am having. I never gave it one to begin with as this is just a test server to see if I want to run my sites off of Ubuntu or not.



    I then tried the sites, and not all of them worked so I looked further and found that one of the 3 sites were up so I know the virtual hosts are not functioning correctly. I looked to see what else was broken and found that PHP wasn't functioning, so I repaired it. PHP is now up and fixed, but I still have no virtual hosts available.



    I have 3 files that are pointing to my domain.com.conf files in the sites-enabled folder but I still can't get Apache2 to function with them. Every time I try to add a virtual host statement into the Apache2.conf file it comes back as failed when it is restarted. Does the new version of Apache2 not support this?



    Any pointers as to what is happening would be great. The server is not a production server yet, as I am making sure I can handle a Ubuntu server to handle our websites before I go live with them.



    Also, is it better to just build a new Ubutnu server when upgrading or do most people just do the in-place upgrade on the server like I did when they upgrade to the newest version? Seems going from 16 to 18 wasn't worth it to me. A lot of little issues have popped up since I did this. I never had issues with 16.04, it was only after the in-place upgrade that these things started.



    Thanks for any help,
    Ross










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am wondering what might have gone wrong and how to fix it.



      I upgraded Ubuntu from 16 to 18 on September 20th, 2018. I ended up having to re-install PHP at the time to allow proper function, but everything worked and the server was preforming well up until November 13th, 2018 (2 days ago).



      The server had a few updates for security to be installed, so I allowed them to install as I do every 3 or so days. At that point, Apache2 went down and I couldn't figure out why so I ran a purge of the app and then reinstalled it. Then the server ran into issues with my virtual hosts listed in the apache2.conf file in this format:



      Include /etc/apache2/sites-enabled/

      #Virtualhosts
      <VirtualHost *:80>
      DocumentRoot /var/www
      </VirtualHost>

      <VirtualHost 111.11.1.111:80>
      DocumentRoot /var/www/html/www.domain.com/public_html
      ServerName www.domain.com
      ServerAlias www.domain.com domain.com
      <Directory “/var/www/html/www.domain.com/public_html”>
      allow from all
      Options +Indexes
      </Directory>
      HostNameLookups double
      IdentityCheck on
      </VirtualHost>


      When I removed the statements in the Apache2.conf then Apache started up just fine.



      The only error I get when running the Apache2 Service Status is that my server does not have a qualified domain name. Everything else passes. I do not think this would cause the issues I am having. I never gave it one to begin with as this is just a test server to see if I want to run my sites off of Ubuntu or not.



      I then tried the sites, and not all of them worked so I looked further and found that one of the 3 sites were up so I know the virtual hosts are not functioning correctly. I looked to see what else was broken and found that PHP wasn't functioning, so I repaired it. PHP is now up and fixed, but I still have no virtual hosts available.



      I have 3 files that are pointing to my domain.com.conf files in the sites-enabled folder but I still can't get Apache2 to function with them. Every time I try to add a virtual host statement into the Apache2.conf file it comes back as failed when it is restarted. Does the new version of Apache2 not support this?



      Any pointers as to what is happening would be great. The server is not a production server yet, as I am making sure I can handle a Ubuntu server to handle our websites before I go live with them.



      Also, is it better to just build a new Ubutnu server when upgrading or do most people just do the in-place upgrade on the server like I did when they upgrade to the newest version? Seems going from 16 to 18 wasn't worth it to me. A lot of little issues have popped up since I did this. I never had issues with 16.04, it was only after the in-place upgrade that these things started.



      Thanks for any help,
      Ross










      share|improve this question













      I am wondering what might have gone wrong and how to fix it.



      I upgraded Ubuntu from 16 to 18 on September 20th, 2018. I ended up having to re-install PHP at the time to allow proper function, but everything worked and the server was preforming well up until November 13th, 2018 (2 days ago).



      The server had a few updates for security to be installed, so I allowed them to install as I do every 3 or so days. At that point, Apache2 went down and I couldn't figure out why so I ran a purge of the app and then reinstalled it. Then the server ran into issues with my virtual hosts listed in the apache2.conf file in this format:



      Include /etc/apache2/sites-enabled/

      #Virtualhosts
      <VirtualHost *:80>
      DocumentRoot /var/www
      </VirtualHost>

      <VirtualHost 111.11.1.111:80>
      DocumentRoot /var/www/html/www.domain.com/public_html
      ServerName www.domain.com
      ServerAlias www.domain.com domain.com
      <Directory “/var/www/html/www.domain.com/public_html”>
      allow from all
      Options +Indexes
      </Directory>
      HostNameLookups double
      IdentityCheck on
      </VirtualHost>


      When I removed the statements in the Apache2.conf then Apache started up just fine.



      The only error I get when running the Apache2 Service Status is that my server does not have a qualified domain name. Everything else passes. I do not think this would cause the issues I am having. I never gave it one to begin with as this is just a test server to see if I want to run my sites off of Ubuntu or not.



      I then tried the sites, and not all of them worked so I looked further and found that one of the 3 sites were up so I know the virtual hosts are not functioning correctly. I looked to see what else was broken and found that PHP wasn't functioning, so I repaired it. PHP is now up and fixed, but I still have no virtual hosts available.



      I have 3 files that are pointing to my domain.com.conf files in the sites-enabled folder but I still can't get Apache2 to function with them. Every time I try to add a virtual host statement into the Apache2.conf file it comes back as failed when it is restarted. Does the new version of Apache2 not support this?



      Any pointers as to what is happening would be great. The server is not a production server yet, as I am making sure I can handle a Ubuntu server to handle our websites before I go live with them.



      Also, is it better to just build a new Ubutnu server when upgrading or do most people just do the in-place upgrade on the server like I did when they upgrade to the newest version? Seems going from 16 to 18 wasn't worth it to me. A lot of little issues have popped up since I did this. I never had issues with 16.04, it was only after the in-place upgrade that these things started.



      Thanks for any help,
      Ross







      linux apache-http-server php virtual-host ubuntu-18.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 at 19:23









      Ross Waters

      764




      764



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375784%2fi-upgraded-a-ubuntu-16-04-to-18-04-weeks-later-apache2-stopped-working-after-an%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375784%2fi-upgraded-a-ubuntu-16-04-to-18-04-weeks-later-apache2-stopped-working-after-an%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Сан-Квентин

          Алькесар

          Josef Freinademetz