Hello everyone ! I am confronted with a problem for which, despite 2 days of research, I can’t find any solution.
I have update my dedicated server in debian 9 / php 7.1.6 and since that, my nextcloud shows me a 503 error, without error log (apache log empty, php log empty, .,. .)
I tried to reinstall completely nextcloud and the installation process (database etc …) works but once the configuration is executed => 503 error.
Will any of you have an idea to help me move forward on the problem? A suggestion peharps?
Any help would be appreciate
Thx in advance!
================================
Nextcloud version: 12.0.0
Operating system and version: Debian 9
Apache: Apache/2.4.25 (Debian)
PHP version: PHP 7.1.6
Apache has an access and an error logfile. You can also set the logging behaviour in your apache config. Increase the log level, you should be able to get more detailed information about your 503 error.
When your hard disk/partition is full, log files can’t be written (happened to me once )
I tried putting the highest log level on apache and still nothing. In access.log I have the error 503 which appears as many times as I try to refresh the page of the nextcloud. I checked but I have plenty of space available on the hard drive
So for now I’m still stuck with this damn error 503
Same thing with php 7.0 so i think the problem come from my server but any clue at the moment. If you have any idea… i take!
(no more error log with php 7.0)
Just in addition, on this same server I have prestashop and phpmyadmin which work without any problem, with almost similar vhosts and on php 7.1 in the same way.
I agree with that but unfortunately I have no log that is filled.
If on another site, I voluntarily causes a 503 I have a log, but not in the case of nextcloud and I can not find an explanation.
On apache, the default setup uses mod_php. All other modules are a bit problematic and unfortunately we don’t have a default configuration you can test. There were several issues over the time but I don’t know if anybody managed to set up a fully working NC.
You can as well use nginx for a smaller footprint where default configs are available.
I FOUND THE SOLUTION!
Instead of put ProxyPassMatch ^/(…php(/.)?)$ fcgi://127.0.0.1:9000/var/www/nextcloud/$1 in my apache vhost, i need to put <FilesMatch ^(.+\.php)(/.+)$> SetHandler "proxy:fcgi://localhost:9000/" </FilesMatch>