New Ubuntu User trying to install NextCloud - Help

Hi,

Iā€™m referring to this page https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html

Section:

Example Installation on Ubuntu 16.04 LTS Server

On a machine running a pristine Ubuntu 16.04 LTS server, you have two options:

To install the Nextcloud Snap Package, run the following command in a terminal:

sudo snap install nextcloud

I ran the sudo snap install nextcloud in terminal and it appeared to work.

I am assuming from this webpage that I must must now install the following:

Install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:

apt-get install apache2 mariadb-server libapache2-mod-php7.0
apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip

When i run this command in terminal: apt-get install apache2 mariadb-server libapache2-mod-php7.0

This is the result:

c3po@c3po-HP-Compaq-8200-Elite-SFF-PC:~$ apt-get install apache2 mariadb-server libapache2-mod-php7.0
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

So obviously Iā€™m doing something wrong, could someone be so kind as to point me in the right direction? Iā€™m new to using Linux computers and I purchased this one purely for NextCloud.

Thank you. :slight_smile:

You need to use ā€˜sudoā€™:

1 Like

Thank you very much that worked. Totally new to this but Iā€™ll learn as i progress.

I have downloaded nextcloud-12.0.1.tar.bz2 to my downloads older. Iā€™m assuming from this article that I have to now unpack it into a server directory, is that correct?

Source: https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html#apache-web-server-configuration

Now you can extract the archive contents. Run the appropriate unpacking command for your archive type:

tar -xjf nextcloud-x.y.z.tar.bz2
unzip nextcloud-x.y.z.zip

This unpacks to a single nextcloud directory. Copy the Nextcloud directory to its final destination. When you are running the Apache HTTP server you may safely install Nextcloud in your Apache document root:

cp -r nextcloud /path/to/webserver/document-root

where /path/to/webserver/document-root is replaced by the document root of your Web server:

cp -r nextcloud /var/www

It would seem that I can not unpack the contents of nextcloud-12.0.1.tar.bz2 to /var/www/

Iā€™m getting a little confused by these directions on the NextCloud website.

Hey, try my guide: https://bayton.org/docs/nextcloud/installing-nextcloud-on-ubuntu-16-04-lts-with-redis-apcu-ssl-apache/

Iā€™m not sure what youā€™re aiming for here; if you use the snap you donā€™t need to install NC manually, but it looks like you did the snap install and then continued to manually install.

If you run sudo snap list it should tell you if NC is there and if it is you may be able to access it via a browser already, or maybe not now since you have two competing webservers installed (the snap includes a webserver)

1 Like

Hey, thanks mate.

As you can tell I have very little idea o what Iā€™m doing but Iā€™m determined to learn. Everything is confusing when you start out lol

I might start with a fresh install of Ubuntu again and read through your guide and go from there.

Again, thank you very much or taking the time to reply, I do appreciate it a lot.

No need to reinstall at this point; you can remove the snap and continue the install manually, or remove Apache, mySQL and PHP from the server and the snap should function.

You need to decide what you want to do -

  • snap = simple but no configuration as itā€™s all read-only
  • Server = more involved but a better learning experience and more flexibility
1 Like

Ok, I think Iā€™ll remove the snap and go with the server, Iā€™d rather learn how to do this correctly and end up with a better understanding. Thanks again.

1 Like

Then you should be able to pick up where youā€™re at with the install and add anything missing as you go through my guide :slight_smile:

1 Like

Sorry to bother you again. I just need to clarify something.

I did in fact re-install Ubuntu desktp 16.0.4 as I wanted to start fresh. But i have the sense that i should have the server version of Ubuntu installed and not the desktop version.

Please bear with me as i learn this, iā€™m very very keen to learn.

I have Ubuntu desktop 16.0.4 install on a PC.

Section 4: ā€œSetting up the environmentā€ of your guide appears to indicate I must install ubuntu Server https://bayton.org/docs/nextcloud/installing-nextcloud-on-ubuntu-16-04-lts-with-redis-apcu-ssl-apache/

It indicates here to download and install https://bayton.org/docs/linux/lxd/lxd-zfs-and-bridged-networking-on-ubuntu-16-04-lts/

Since iā€™m using Ubuntu desktop 16.0.4 am i required to follow all of this page?

At what section of your guide should I start at?

Thanks.

I think the only difference is that the desktop version installs a lot of GUI stuff that is not needed on a server. When you remove the desktop stuff, the versions are identical though it is a bit tedious to do it.

The guide points to lxd as an option, if you have Ubuntu youā€™re good to go, desktop or server.

Follow the commands as written and itā€™ll run the same, just consider Ubuntu desktop uses more resources

1 Like

Next, run the client:

sudo ./certbot-auto --apache --agree-tos --rsa-key-size 4096 --email user@domain.org --redirect -d nc.domain.org

Ok, right, Im suppose to put my email address and the domain name I just purchased in here right?

I ran this without realizing that. lol

Honestly I can only do so much :sweat_smile:

Yes, your email and your own domain, or a subdomain of it (like cloud.yourdomain.com if thatā€™s the way you want to go)

1 Like

Jason,

Apart from the SSL part of the installation guide I have followed everything you instructed. I have NextCloud running on 127.0.0.1/nextcloud - I will figure out the domain name and ssl cert issue later.

At this stage Iā€™m trying to move the data base outside of /var/www/. What is an example location I can move the /nextcloud/data/ to?

I also created the database

"Now weā€™ll create a dedicated database and user for Nextcloud with the following commands:

CREATE DATABASE nextcloud;
CREATE USER ā€˜myusernameā€™@ā€˜localhostā€™ IDENTIFIED BY ā€˜mypasswordā€™;
GRANT ALL PRIVILEGES ON nextcloud . * TO ā€˜myusernameā€™@ā€˜localhostā€™;

Then exit the mysql session with quit"

The screenshot is where I am up to.

The connection refused error looks like you donā€™t have 443 open to your NC server from the internet.

You can have the data folder pretty much anywhere, though I like using /media/, however /opt/, /var/ or otherwise will work. Just avoid /home/

When youā€™ve decided, create a data folder and assign the user www-data ownership rights with sudo chown -R www-data:www-data /path/to/data then choose that from the setup wizard.

Input the database details youā€™ve created, or use the mySQL root account to have Nextcloud generate it all for you.

1 Like

Ok,

Is this correct?

Re: ā€œWith Redis configured, we can add the caching configuration to the Nextcloud config file:

sudo vim /var/www/html/nextcloud/config/config.phpā€

ps thanks for your time, big learning curve for me.

That looks correct.

If it doesnā€™t run, your Apache kids should give you a reason:

sudo less /var/log/apache2/error.log

Iā€™ve been travelling the last few days so can only reply sporadically. Iā€™ll ping @tflidd and @MichaIng just in case theyā€™re here more often (but will otherwise reply as I can :slight_smile:)

1 Like

@JasonBayton, @tflidd and @MichaIng

To make sure I did this right according to your guide I reinstalled Ubuntu and started fresh. All Iā€™ve done is what the guide instructs, as far as I am aware.

See images @ imgur

I ran sudo less /var/log/apache2/error.log and this is what it states

[Fri Aug 25 04:59:51.186590 2017] [mpm_event:notice] [pid 13883:tid 139729613387648] AH00489: Apache/2.4.18 (Ubuntu) confi
gured -- resuming normal operations
[Fri Aug 25 04:59:51.186658 2017] [core:notice] [pid 13883:tid 139729613387648] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:00:36.286781 2017] [mpm_event:notice] [pid 13883:tid 139729613387648] AH00491: caught SIGTERM, shutting dow
n
[Fri Aug 25 05:00:37.353214 2017] [mpm_prefork:notice] [pid 20084] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming 
normal operations
[Fri Aug 25 05:00:37.353288 2017] [core:notice] [pid 20084] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:00:38.746961 2017] [mpm_prefork:notice] [pid 20084] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 05:00:39.840025 2017] [mpm_prefork:notice] [pid 20195] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming 
normal operations
[Fri Aug 25 05:00:39.840071 2017] [core:notice] [pid 20195] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:03:12.921978 2017] [mpm_prefork:notice] [pid 20195] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 05:03:14.070067 2017] [mpm_prefork:notice] [pid 25215] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming 
normal operations
[Fri Aug 25 05:03:14.070128 2017] [core:notice] [pid 25215] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:26:41.325893 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.338368 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"file_get_contents(\\/var\\/www\\/html\\/nextc
loud\\/data\\/appdata_ocni87y8cvqu\\/js\\/core\\/merged-template-prepend.js.deps): failed to open stream: No such file or 
directory at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Files\\/Storage\\/Local.php#209","userAgent":"Mozilla\\/5.0
 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.338583 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.338603 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"Invalid argument supplied for foreach() at \\
/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Template\\/JSCombiner.php#107","userAgent":"Mozilla\\/5.0 (Windows NT 6.2;
 rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.351878 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.351908 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"file_get_contents(\\/var\\/www\\/html\\/nextc
loud\\/data\\/appdata_ocni87y8cvqu\\/css\\/core\\/8422af5e95175a58af85864ca60d24f1-server.css.deps): failed to open stream: No such file or directory at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Files\\/Storage\\/Local.php#209","userAge
nt":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.352070 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.352104 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"Invalid argument supplied for foreach() at \\
/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Template\\/SCSSCacher.php#145","userAgent":"Mozilla\\/5.0 (Windows NT 6.2;
 rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.355749 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.355771 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"file_get_contents(\\/var\\/www\\/html\\/nextc
loud\\/data\\/appdata_ocni87y8cvqu\\/css\\/core\\/8422af5e95175a58af85864ca60d24f1-share.css.deps): failed to open stream:
 No such file or directory at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Files\\/Storage\\/Local.php#209","userAgen
t":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.355931 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.355948 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"Invalid argument supplied for foreach() at \\
/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Template\\/SCSSCacher.php#145","userAgent":"Mozilla\\/5.0 (Windows NT 6.2;
 rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.356930 2017] [:error] [pid 25220] [client 127.0.0.1:55868] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:26:41.356951 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"fileperms(): stat failed for \\/var\\/www\\/h
tml\\/nextcloud\\/data\\/nextcloud.log at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Log\\/File.php#122","userAgent
":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:26:41.356973 2017] [:error] [pid 25220] [client 127.0.0.1:55868] {"reqId":"xPHTyBm3hRDTy5D1u01U","level":3,
"time":"2017-08-24T19:26:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"GET","url":"\\/nextcloud\
\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v2\\/notifications","message":"chmod(): No such file or directory at \\/var\
\/www\\/html\\/nextcloud\\/lib\\/private\\/Log\\/File.php#123","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\
\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:33:20.359507 2017] [mpm_prefork:notice] [pid 25215] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 05:33:21.801947 2017] [mpm_prefork:notice] [pid 26388] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming 
normal operations
[Fri Aug 25 05:33:21.802009 2017] [core:notice] [pid 26388] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:38:41.581229 2017] [:error] [pid 26391] [client 127.0.0.1:55948] PHP Warning:  fileperms(): stat failed for
 /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:38:41.581277 2017] [:error] [pid 26391] [client 127.0.0.1:55948] {"reqId":"neJKSm6Qb0WDn8L0v1pE","level":3,
"time":"2017-08-24T19:38:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"POST","url":"\\/nextcloud
\\/index.php\\/heartbeat","message":"file_get_contents(\\/var\\/www\\/html\\/nextcloud\\/data\\/appdata_ocni87y8cvqu\\/js\
\/core\\/merged-template-prepend.js.deps): failed to open stream: No such file or directory at \\/var\\/www\\/html\\/nextc
loud\\/lib\\/private\\/Files\\/Storage\\/Local.php#209","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100
101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:38:41.603760 2017] [:error] [pid 26391] [client 127.0.0.1:55948] PHP Warning:  fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:38:41.603778 2017] [:error] [pid 26391] [client 127.0.0.1:55948] {"reqId":"neJKSm6Qb0WDn8L0v1pE","level":3,"time":"2017-08-24T19:38:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"POST","url":"\\/nextcloud\\/index.php\\/heartbeat","message":"file_get_contents(\\/var\\/www\\/html\\/nextcloud\\/data\\/appdata_ocni87y8cvqu\\/css\\/core\\/8422af5e95175a58af85864ca60d24f1-share.css.deps): failed to open stream: No such file or directory at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Files\\/Storage\\/Local.php#209","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:38:41.603897 2017] [:error] [pid 26391] [client 127.0.0.1:55948] PHP Warning:  fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:38:41.603907 2017] [:error] [pid 26391] [client 127.0.0.1:55948] {"reqId":"neJKSm6Qb0WDn8L0v1pE","level":3,"time":"2017-08-24T19:38:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"POST","url":"\\/nextcloud\\/index.php\\/heartbeat","message":"Invalid argument supplied for foreach() at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Template\\/SCSSCacher.php#145","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:38:41.604806 2017] [:error] [pid 26391] [client 127.0.0.1:55948] PHP Warning:  fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122
[Fri Aug 25 05:38:41.604819 2017] [:error] [pid 26391] [client 127.0.0.1:55948] {"reqId":"neJKSm6Qb0WDn8L0v1pE","level":3,"time":"2017-08-24T19:38:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"POST","url":"\\/nextcloud\\/index.php\\/heartbeat","message":"fileperms(): stat failed for \\/var\\/www\\/html\\/nextcloud\\/data\\/nextcloud.log at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Log\\/File.php#122","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:38:41.604832 2017] [:error] [pid 26391] [client 127.0.0.1:55948] {"reqId":"neJKSm6Qb0WDn8L0v1pE","level":3,"time":"2017-08-24T19:38:41+00:00","remoteAddr":"127.0.0.1","user":"Simon","app":"PHP","method":"POST","url":"\\/nextcloud\\/index.php\\/heartbeat","message":"chmod(): No such file or directory at \\/var\\/www\\/html\\/nextcloud\\/lib\\/private\\/Log\\/File.php#123","userAgent":"Mozilla\\/5.0 (Windows NT 6.2; rv:50.0) Gecko\\/20100101 Firefox\\/50.0","version":"12.0.2.0"}
[Fri Aug 25 05:44:24.881794 2017] [mpm_prefork:notice] [pid 26388] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 05:44:25.987101 2017] [mpm_prefork:notice] [pid 26512] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 05:44:25.987154 2017] [core:notice] [pid 26512] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:47:51.099437 2017] [:error] [pid 26515] [client 127.0.0.1:55956] PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /var/www/html/nextcloud/index.php:69\nStack trace:\n#0 {main}\n  thrown in /var/www/html/nextcloud/index.php on line 69
[Fri Aug 25 05:47:58.454174 2017] [:error] [pid 26516] [client 127.0.0.1:55958] PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /var/www/html/nextcloud/index.php:69\nStack trace:\n#0 {main}\n  thrown in /var/www/html/nextcloud/index.php on line 69
[Fri Aug 25 05:48:10.802247 2017] [:error] [pid 26517] [client 127.0.0.1:55960] PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /var/www/html/nextcloud/index.php:69\nStack trace:\n#0 {main}\n  thrown in /var/www/html/nextcloud/index.php on line 69
[Fri Aug 25 05:48:59.646476 2017] [mpm_prefork:notice] [pid 26512] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 05:51:58.620328 2017] [mpm_prefork:notice] [pid 1348] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 05:51:58.646234 2017] [core:notice] [pid 1348] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 05:57:48.243712 2017] [:error] [pid 1424] [client 127.0.0.1:39400] PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /var/www/html/nextcloud/index.php:69\nStack trace:\n#0 {main}\n  thrown in /var/www/html/nextcloud/index.php on line 69
(END)

Fix this as follows:

'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '5432',

Are you running a non-standard port for mySQL? Whyā€™s that?

When you say youā€™ve reinstalled Ubuntu, are you suggesting you manually moved the data directory after installation, or did you set it up during the installation as per previous screenshots?

At what point does it go blank? Directly after adding caching?

1 Like

To clarify, after my last post 4 days ago I reinstalled Ubuntu and wiped all data on the HDD. Then I started the NC installation again.

Iā€™m not sure how I did that with the host & port number, but Iā€™ll remedy it. What port do you suggest for MySQL?

I manually moved the data directory AFTER installation of NC and after I accessed the admin page of NC.

Yes, after adding the caching it goes blank.

As always thank you very much for your help.