New Ubuntu User trying to install NextCloud - Help

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.

OK so you’re not really supposed to be moving the data directory willy-nilly, choose your location when installing here:

After that if you want to move the data folder you’ll need to follow steps here:

The default port for mySQL is 3306 - have you changed it, as far as you know? If not, remove the dbport entry all together as it’ll default to the correct port.

1 Like

Hi,

As per your instructions on your website I moved /var/www/html/nextcloud/data/ to /media/data/ successfully.

I ran all the commands you instructed on your website.

At the NextCloud set up page (http://localhost/nextcloud/) I entered /media/data/ in the data folder field. After the set up was complete I accessed the admin page and there was no warning about the data file being accessible from the internet. Which is good.

Then I edited the memcahe as per your instructions on your website:

I followed all instructions then rebooted the PC and I when I type in localhost I see the apache web page. But when I type in http://localhost/nextcloud I receive a blank page.

I have no idea what i am doing wrong.

Here is the error log:

[Fri Aug 25 11:50:08.412548 2017] [mpm_event:notice] [pid 10596:tid 140421897873280] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 11:50:08.412640 2017] [core:notice] [pid 10596:tid 140421897873280] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 11:50:54.730875 2017] [mpm_event:notice] [pid 10596:tid 140421897873280] AH00491: caught SIGTERM, shutting down
[Fri Aug 25 11:50:55.800197 2017] [mpm_prefork:notice] [pid 16784] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 11:50:55.800280 2017] [core:notice] [pid 16784] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 11:50:57.203745 2017] [mpm_prefork:notice] [pid 16784] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 11:50:58.308899 2017] [mpm_prefork:notice] [pid 16892] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 11:50:58.308972 2017] [core:notice] [pid 16892] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 11:53:09.089739 2017] [mpm_prefork:notice] [pid 16892] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 11:53:10.404004 2017] [mpm_prefork:notice] [pid 21884] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 11:53:10.404065 2017] [core:notice] [pid 21884] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 12:16:01.488961 2017] [mpm_prefork:notice] [pid 21884] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 12:16:02.685844 2017] [mpm_prefork:notice] [pid 22250] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 12:16:02.685901 2017] [core:notice] [pid 22250] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 12:18:26.262913 2017] [mpm_prefork:notice] [pid 22250] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 12:18:27.401870 2017] [mpm_prefork:notice] [pid 22329] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 12:18:27.401934 2017] [core:notice] [pid 22329] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 12:40:13.177619 2017] [:error] [pid 22333] [client 127.0.0.1:50248] PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/html/nextcloud/config/config.php on line 23
[Fri Aug 25 12:44:18.457912 2017] [mpm_prefork:notice] [pid 22329] AH00169: caught SIGTERM, shutting down
[Fri Aug 25 12:45:50.854128 2017] [mpm_prefork:notice] [pid 1393] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 25 12:45:50.900923 2017] [core:notice] [pid 1393] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 25 12:47:28.815340 2017] [:error] [pid 1443] [client 127.0.0.1:46898] 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 12:47:39.116537 2017] [:error] [pid 1446] [client 127.0.0.1:47012] 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 12:49:07.128872 2017] [:error] [pid 2349] [client 127.0.0.1:47080] 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 12:56:06.305822 2017] [:error] [pid 1443] [client 127.0.0.1:47086] 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

In your config file I just noticed you’ve put all the fresh caching entries under the closing bracket.

Look at line 22 - );

That should be at the very bottom of the file, the last line.

Delete ); from above memcache and type it under the last ),

),
);
1 Like

Like this?

No, now you’re missing a bracket. I’ve literally typed it out above:

I need to see those two brackets with that combination of comma and semicolon

1 Like

Finally !! lol

Remember this is my first attempt at anything like this :slight_smile:

I think you deserve a case of beer!

Ignore below, i found your instructions on your website about how to access the file.

Edit: The only issue I see now is this. I searched my Ubuntu PC for this file but I can’t seem to find it, so I’m guessing I need to download something else to resolve this???

Nope, you can literally open the PHP.ini file and paste those entries into it.

Open:

/etc/php/7.0/apache2/php.ini

Then add as follows:

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
; End:

See “End” there? Do make sure you paste it between the last existing line and “End” as above, otherwise you’ll see more errors.

1 Like

Just to clarify, I add this to the [opcache] section of the /etc/php/7.0/apache2/php.ini and NOT at the very bottom of the page where i also see ; End:

Also do I delete the existing text under [opcache] section or just add

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
; End:

to the bottom of the section.

Just need to clarify so I don’t screw this up.

Add it where you want, to do it properly you could find every line in the file and uncomment it, but if you pop it at the very bottom of the file as I said above you’ll get going much faster (even if it’s “out of place” with the file).

Just make sure you don’t duplicate End where you paste it, or add end where there shouldn’t be one, if you don’t follow what I said above and choose to put it somewhere else.

1 Like

Got it, thanks for the clarification.

The most elegant way btw is to add the linesto /etc/php/7.0/mods-available/opcache.ini
There they will be automatically added in case the module is actually active.

2 Likes

^^ or that :smiley:

1 Like

@JasonBayton @MichaIng

I added the text to /etc/php/7.0/mods-available/opcache.ini and then restarted apache and then opened NextCloud and it has resolved that issue. There’s no longer a warning.

Thank you very much.

1 Like

One other issue I’ve run into is that I can’t upload any files to NC.

I’m not sure if it is related but i did make this edit in the php.ini file

"Open the php.ini file:

sudo vim /etc/php/7.0/apache2/php.ini

Locate and amend:

upload_max_filesize = 2048M
post_max_size = 2058M

Logs :slight_smile:

Admin - Logging > see what errors

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

Will also show Apache errors