Why does nextcloud not work after dist upgrade to Ubuntu 18.04?











up vote
0
down vote

favorite












I recently did a dist upgrade on my nextcloud machine form Ubuntu 16.04 to Ubuntu 18.04.
After that I got an "Internal Server Error" when trying to access nextcloud. I didn't find anything in the Apache logs, so I searched with cat /var/log/syslog | grep PHP any relevant information on PHP errors.
I found:



    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zip.so' - /usr/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0


I checked for the package php-zip and found it to be installed for php7.2 which was the version of php referred to by Ubuntu (checked with php -v).



I could find the reason why Libraries where not used. I want to share the solution, so anyone else in this case can solve it more easily.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I recently did a dist upgrade on my nextcloud machine form Ubuntu 16.04 to Ubuntu 18.04.
    After that I got an "Internal Server Error" when trying to access nextcloud. I didn't find anything in the Apache logs, so I searched with cat /var/log/syslog | grep PHP any relevant information on PHP errors.
    I found:



        PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zip.so' - /usr/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0


    I checked for the package php-zip and found it to be installed for php7.2 which was the version of php referred to by Ubuntu (checked with php -v).



    I could find the reason why Libraries where not used. I want to share the solution, so anyone else in this case can solve it more easily.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I recently did a dist upgrade on my nextcloud machine form Ubuntu 16.04 to Ubuntu 18.04.
      After that I got an "Internal Server Error" when trying to access nextcloud. I didn't find anything in the Apache logs, so I searched with cat /var/log/syslog | grep PHP any relevant information on PHP errors.
      I found:



          PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zip.so' - /usr/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0


      I checked for the package php-zip and found it to be installed for php7.2 which was the version of php referred to by Ubuntu (checked with php -v).



      I could find the reason why Libraries where not used. I want to share the solution, so anyone else in this case can solve it more easily.










      share|improve this question













      I recently did a dist upgrade on my nextcloud machine form Ubuntu 16.04 to Ubuntu 18.04.
      After that I got an "Internal Server Error" when trying to access nextcloud. I didn't find anything in the Apache logs, so I searched with cat /var/log/syslog | grep PHP any relevant information on PHP errors.
      I found:



          PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zip.so' - /usr/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0


      I checked for the package php-zip and found it to be installed for php7.2 which was the version of php referred to by Ubuntu (checked with php -v).



      I could find the reason why Libraries where not used. I want to share the solution, so anyone else in this case can solve it more easily.







      apache-http-server php ubuntu-18.04 nextcloud






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      soriak

      1515




      1515






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          I created a info.php:



          <?php
          phpinfo();
          ?>


          to find that Apache was using php7.0 instead of php7.2.
          The fix then was pretty simple:



          sudo a2enmod php7.2
          sudo a2dismod php7.0
          sudo service apache2 restart


          After that nextcloud worked as expected. I found it strange that the dist upgrade didn't ensure that apache was using the most recent version of php. I hope this helps someone in trouble :)






          share|improve this answer





















            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%2f1376396%2fwhy-does-nextcloud-not-work-after-dist-upgrade-to-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            I created a info.php:



            <?php
            phpinfo();
            ?>


            to find that Apache was using php7.0 instead of php7.2.
            The fix then was pretty simple:



            sudo a2enmod php7.2
            sudo a2dismod php7.0
            sudo service apache2 restart


            After that nextcloud worked as expected. I found it strange that the dist upgrade didn't ensure that apache was using the most recent version of php. I hope this helps someone in trouble :)






            share|improve this answer

























              up vote
              1
              down vote













              I created a info.php:



              <?php
              phpinfo();
              ?>


              to find that Apache was using php7.0 instead of php7.2.
              The fix then was pretty simple:



              sudo a2enmod php7.2
              sudo a2dismod php7.0
              sudo service apache2 restart


              After that nextcloud worked as expected. I found it strange that the dist upgrade didn't ensure that apache was using the most recent version of php. I hope this helps someone in trouble :)






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                I created a info.php:



                <?php
                phpinfo();
                ?>


                to find that Apache was using php7.0 instead of php7.2.
                The fix then was pretty simple:



                sudo a2enmod php7.2
                sudo a2dismod php7.0
                sudo service apache2 restart


                After that nextcloud worked as expected. I found it strange that the dist upgrade didn't ensure that apache was using the most recent version of php. I hope this helps someone in trouble :)






                share|improve this answer












                I created a info.php:



                <?php
                phpinfo();
                ?>


                to find that Apache was using php7.0 instead of php7.2.
                The fix then was pretty simple:



                sudo a2enmod php7.2
                sudo a2dismod php7.0
                sudo service apache2 restart


                After that nextcloud worked as expected. I found it strange that the dist upgrade didn't ensure that apache was using the most recent version of php. I hope this helps someone in trouble :)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                soriak

                1515




                1515






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376396%2fwhy-does-nextcloud-not-work-after-dist-upgrade-to-ubuntu-18-04%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

                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                    Alcedinidae

                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]