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.
apache-http-server php ubuntu-18.04 nextcloud
add a comment |
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.
apache-http-server php ubuntu-18.04 nextcloud
add a comment |
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.
apache-http-server php ubuntu-18.04 nextcloud
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
apache-http-server php ubuntu-18.04 nextcloud
asked Nov 18 at 8:59
soriak
1515
1515
add a comment |
add a comment |
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 :)
add a comment |
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 :)
add a comment |
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 :)
add a comment |
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 :)
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 :)
answered Nov 18 at 8:59
soriak
1515
1515
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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