Internal Server Error at the first installation

I have installed:
Centos 7
Nextcloud 15.0.0.0
php 7.0
mysql 5.7
apache 2.4.6
When you first install Nextсloud, the browser shows an error:
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Here are my installation steps, on a clean, freshly installed Centos7, please tell me what am I doing wrong?

yum update -y

   Step 1: Creating MySQL Database

sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum install mysql-community-server

    Starting MySQL

sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo systemctl status mysqld

sudo grep ‘temporary password’ /var/log/mysqld.log
sudo mysql_secure_installation

Enter
XXXXXXX
No
Yes
Yes
Yes
Yes

mysql -u root -p
Select @@GLOBAL.transaction_isolation, @@session.transaction_isolation;
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;
Select @@GLOBAL.transaction_isolation, @@session.transaction_isolation;
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER ‘nextclouduser’@‘localhost’ IDENTIFIED BY ‘XXXXXXX’;
GRANT ALL PRIVILEGES ON nextcloud.* TO ‘nextclouduser’@‘localhost’;
FLUSH PRIVILEGES;
CREATE USER ‘admin’@’%’ IDENTIFIED BY ‘XXXXXXX’;
GRANT ALL PRIVILEGES ON . TO ‘admin’@’%’;
FLUSH PRIVILEGES;
SHOW DATABASES;
SELECT DISTINCT User FROM mysql.user;
SELECT user,authentication_string,plugin,host FROM mysql.user;
SELECT version();
EXIT;

      Step 2: Installing PHP and Apache

yum repolist all
yum --enablerepo="base" -y install yum-utils
yum-config-manager --enable base centosplus contrib extras updates
sudo yum install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi-php70
sudo yum install httpd php php-gd php-json php-mysql php-curl php-mbstring php-intl php-mcrypt php-imagick php-xml php-zip -y

          Step 3: Configuring firewall

sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload
sudo firewall-cmd --state
firewall-cmd --get-default-zone
firewall-cmd --get-active-zones
sudo firewall-cmd --list-all

      Step 4: Downloading Nextcloud

yum install wget -y
yum install unzip -y
wget -P /tmp https://download.nextcloud.com/server/releases/nextcloud-15.0.0.zip
sudo unzip /tmp/nextcloud-15.0.0.zip -d /var/www
sudo chown -R apache: /var/www/nextcloud
ls /var/www/
ls /var/www/nextcloud

          Step 5: Configure Apache

yum install nano -y
sudo nano /etc/httpd/conf.d/nextcloud.conf
Alias /nextcloud “/var/www/nextcloud/”
<VirtualHost *:80>
DocumentRoot /var/www/nextcloud/
ServerName own3.domen.com
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All

Dav off

SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

sudo systemctl restart httpd
sudo systemctl status httpd

nano /etc/httpd/conf/httpd.conf
Change - DocumentRoot “/var/www/nextcloud” to DocumentRoot “/var/www/nextcloud”
Change - <Directory “/var/www/html”> to <Directory “/var/www/nextcloud”>

DirectoryIndex index.html index.php ServerAdmin ignatov@swgroup.ru DocumentRoot /var/www/nextcloud ServerName own3.domen.com:80 ErrorLog logs/own3-error_log CustomLog logs/own3-access_log common

sudo systemctl enable httpd
sudo systemctl restart httpd
sudo systemctl status httpd
service httpd configtest
yum install bind-utils -y
nslookup own3.domen.com
sudo netstat -plunt | grep httpd

     Step 5.1: Configure Apache

yum install policycoreutils-python -y

semanage fcontext -a -t httpd_sys_rw_content_t ‘/var/www/nextcloud/data(/.)?’
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/nextcloud/config(/.
)?’
semanage fcontext -a -t httpd_sys_rw_content_t ‘/var/www/nextcloud/apps(/.)?’
semanage fcontext -a -t httpd_sys_rw_content_t ‘/var/www/nextcloud/.htaccess’
semanage fcontext -a -t httpd_sys_rw_content_t ‘/var/www/nextcloud/.user.ini’
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.
)?’
restorecon -R ‘/var/www/nextcloud/’
setsebool -P httpd_can_network_connect on

sudo systemctl restart httpd
sudo systemctl status httpd

nano /etc/php.ini
Change memory_limit = 512

yum install php-process -y
cd /var/www/nextcloud

sudo -u apache php occ maintenance:install --database “mysql” --database-name “nextcloud” --database-user “nextclouduser” --database-pass “XXXXXXX” --admin-user “admin” --admin-pass “XXXXXXXX”

No errors occurred during installation.

File log - /var/log/httpd/own4-error_log

ХвОдка

[Sun Jan 20 16:42:03.053404 2019] [:error] [pid 24980] [client 192.168.1.15:59033] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140, referer: http://192.168.69.24/nextcloud/
[Sun Jan 20 16:42:03.053471 2019] [:error] [pid 24980] [client 192.168.1.15:59033] {“reqId”:“XER6qnBikFuObP3u9VReUAAAAAQ”,“level”:3,“time”:“2019-01-20T13:42:03+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php\/csrftoken",“message”:“fileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140”,“userAgent”:“Mozilla\/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident\/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)”,“version”:“15.0.0.10”}, referer: http://192.168.69.24/nextcloud/
{“file”:"\/var\/www\/nextcloud\/lib\/private\/TemplateLayout.php",“line”:154,“function”:“findJavascriptFiles”,“class”:“OC\\TemplateLayout”,“type”:"::",“args”:[[“vendor\/core”,“js\/merged-template-prepend”,“search\/js\/search”,“core\/l10n\/ru”,“js\/backgroundjobs”,“search\/l10n\/ru”,“search\/js\/searchprovider”,“js\/jquery-ui-fixes”,“js\/files\/fileinfo”,“js\/files\/client”,“js\/contactsmenu”,“js\/contactsmenu_templates”]]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:211,“function”:"__construct",“class”:“OC\\TemplateLayout”,“type”:"->",“args”:[“guest”,""]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:301,“function”:“printPage”,“class”:“OC\\Template\\Base”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/base.php",“line”:690,“function”:“printGuestPage”,“class”:“OC_Template”,“type”:"::",“args”:["",“error”,{“errors”:[{“error”:“Your data directory is not writable”,“hint”:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 https:\/\/docs.nextcloud.com\/server\/14\/go.php?to=admin-dir_permissions."}]}]},{“file”:"\/var\/www\/nextcloud\/lib\/base.php",“line”:1068,“function”:“init”,“class”:“OC”,“type”:"::",“args”:[]},{“file”:"\/var\/www\/nextcloud\/index.php",“line”:40,“args”:["\/var\/www\/nextcloud\/lib\/base.php"],“function”:“require_once”}],“File”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“Line”:97,“CustomMessage”:"–"},“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.306573 2019] [:error] [pid 24978] [client 192.168.1.15:59086] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.306603 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/index.php",“message”:“fileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140”,“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.306634 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"\/index.php",“message”:{“Exception”:“OCP\\Files\\NotFoundException”,“Message”:"",“Code”:0,“Trace”:[{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“line”:216,“function”:“getFileInfo”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“line”:117,“function”:“getPermissions”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Folder.php",“line”:155,“function”:“checkPermissions”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[4]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/AppData\/AppData.php",“line”:114,“function”:“newFolder”,“class”:“OC\\Files\\Node\\Folder”,“type”:"->",“args”:[“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSCombiner.php",“line”:97,“function”:“newFolder”,“class”:“OC\\Files\\AppData\\AppData”,“type”:"->",“args”:[“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSResourceLocator.php",“line”:114,“function”:“process”,“class”:“OC\\Template\\JSCombiner”,“type”:"->",“args”:["\/var\/www\/nextcloud",“core\/js\/merged-template-prepend.json”,“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSResourceLocator.php",“line”:70,“function”:“cacheAndAppendCombineJsonIfExist”,“class”:“OC\\Template\\JSResourceLocator”,“type”:"->",“args”:["\/var\/www\/nextcloud",“core\/js\/merged-template-prepend.json”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/ResourceLocator.php",“line”:78,“function”:“doFind”,“class”:“OC\\Template\\JSResourceLocator”,“type”:"->",“args”:[“js\/merged-template-prepend”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/TemplateLayout.php",“line”:315,“function”:“find”,“class”:“OC\\Template\\ResourceLocator”,“type”:"->",“args”:[[“vendor\/core”,“js\/merged-template-prepend”,“search\/js\/search”,“core\/l10n\/ru”,“js\/backgroundjobs”,“search\/l10n\/ru”,“search\/js\/searchprovider”,“js\/jquery-ui-fixes”,“js\/files\/fileinfo”,“js\/files\/client”,“js\/contactsmenu”,“js\/contactsmenu_templates”]]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/TemplateLayout.php",“line”:154,“function”:“findJavascriptFiles”,“class”:“OC\\TemplateLayout”,“type”:"::",“args”:[[“vendor\/core”,“js\/merged-template-prepend”,“search\/js\/search”,“core\/l10n\/ru”,“js\/backgroundjobs”,“search\/l10n\/ru”,“search\/js\/searchprovider”,“js\/jquery-ui-fixes”,“js\/files\/fileinfo”,“js\/files\/client”,“js\/contactsmenu”,“js\/contactsmenu_templates”]]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:211,“function”:"__construct",“class”:“OC\\TemplateLayout”,“type”:"->",“args”:[“guest”,""]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:301,“function”:“printPage”,“class”:“OC\\Template\\Base”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/base.php",“line”:690,“function”:“printGuestPage”,“class”:“OC_Template”,“type”:"::",“args”:["",“error”,{“errors”:[{“error”:“Your data directory is not writable”,“hint”:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 https:\/\/docs.nextcloud.com\/server\/14\/go.php?to=admin-dir_permissions."}]}]},{“file”:"\/var\/www\/nextcloud\/lib\/base.php",“line”:1068,“function”:“init”,“class”:“OC”,“type”:"::",“args”:[]},{“file”:"\/var\/www\/nextcloud\/index.php",“line”:40,“args”:["\/var\/www\/nextcloud\/lib\/base.php"],“function”:“require_once”}],“File”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“Line”:97,“CustomMessage”:"–"},“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307144 2019] [:error] [pid 24978] [client 192.168.1.15:59086] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307172 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/index.php",“message”:“fileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140”,“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307202 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"\/index.php",“message”:{“Exception”:“OCP\\Files\\NotFoundException”,“Message”:"",“Code”:0,“Trace”:[{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“line”:216,“function”:“getFileInfo”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“line”:117,“function”:“getPermissions”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Folder.php",“line”:155,“function”:“checkPermissions”,“class”:“OC\\Files\\Node\\Node”,“type”:"->",“args”:[4]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Files\/AppData\/AppData.php",“line”:114,“function”:“newFolder”,“class”:“OC\\Files\\Node\\Folder”,“type”:"->",“args”:[“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSCombiner.php",“line”:97,“function”:“newFolder”,“class”:“OC\\Files\\AppData\\AppData”,“type”:"->",“args”:[“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSResourceLocator.php",“line”:114,“function”:“process”,“class”:“OC\\Template\\JSCombiner”,“type”:"->",“args”:["\/var\/www\/nextcloud",“core\/js\/merged-template-prepend.json”,“core”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/JSResourceLocator.php",“line”:70,“function”:“cacheAndAppendCombineJsonIfExist”,“class”:“OC\\Template\\JSResourceLocator”,“type”:"->",“args”:["\/var\/www\/nextcloud",“core\/js\/merged-template-prepend.json”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/ResourceLocator.php",“line”:78,“function”:“doFind”,“class”:“OC\\Template\\JSResourceLocator”,“type”:"->",“args”:[“js\/merged-template-prepend”]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/TemplateLayout.php",“line”:315,“function”:“find”,“class”:“OC\\Template\\ResourceLocator”,“type”:"->",“args”:[[“vendor\/core”,“js\/merged-template-prepend”,“search\/js\/search”,“core\/l10n\/ru”,“js\/backgroundjobs”,“search\/l10n\/ru”,“search\/js\/searchprovider”,“js\/jquery-ui-fixes”,“js\/files\/fileinfo”,“js\/files\/client”,“js\/contactsmenu”,“js\/contactsmenu_templates”,“core\/js\/merged-share-backend”]]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/TemplateLayout.php",“line”:154,“function”:“findJavascriptFiles”,“class”:“OC\\TemplateLayout”,“type”:"::",“args”:[[“vendor\/core”,“js\/merged-template-prepend”,“search\/js\/search”,“core\/l10n\/ru”,“js\/backgroundjobs”,“search\/l10n\/ru”,“search\/js\/searchprovider”,“js\/jquery-ui-fixes”,“js\/files\/fileinfo”,“js\/files\/client”,“js\/contactsmenu”,“js\/contactsmenu_templates”,“core\/js\/merged-share-backend”]]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:211,“function”:"__construct",“class”:“OC\\TemplateLayout”,“type”:"->",“args”:[“error”,""]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/Template\/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",“line”:360,“function”:“printPage”,“class”:“OC\\Template\\Base”,“type”:"->",“args”:[]},{“file”:"\/var\/www\/nextcloud\/index.php",“line”:69,“function”:“printExceptionErrorPage”,“class”:“OC_Template”,“type”:"::",“args”:[{“class”:“OCP\\Files\\NotFoundException”},500]}],“File”:"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php",“Line”:97,“CustomMessage”:"–"},“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307589 2019] [:error] [pid 24978] [client 192.168.1.15:59086] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307610 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/index.php",“message”:“fileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140”,“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/
[Sun Jan 20 16:42:46.307639 2019] [:error] [pid 24978] [client 192.168.1.15:59086] {“reqId”:“XER61v@NV7BMSjcxPXZHkwAAAAI”,“level”:3,“time”:“2019-01-20T13:42:46+00:00”,“remoteAddr”:“192.168.1.15”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/index.php",“message”:“chmod(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#141”,“userAgent”:“Mozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36”,“version”:“15.0.0.10”}, referer: http://own4.swgroup.ru/

file log - /var/log/httpd/own4-access_log

ХвОдка

192.168.1.15 - - [20/Jan/2019:16:42:02 +0300] “GET /nextcloud/index.php/csrftoken HTTP/1.1” 500 289
192.168.1.15 - - [20/Jan/2019:16:42:41 +0300] “GET /index.php HTTP/1.1” 500 289
192.168.1.15 - - [20/Jan/2019:16:42:46 +0300] “GET /index.php HTTP/1.1” 500 289

It all worked for me. What I’ve done:
change -
sudo nano /etc/httpd/conf.d/nextcloud.conf
<VirtualHost *:80>
DocumentRoot /var/www/nextcloud/
ServerName own2.domen.ru

<Directory “/var/www/nextcloud”>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

and

Disabled SELinux

sestatus

nano /etc/selinux/config

SELINUX=disabled

reboot
Nextсloud works.

1 Like