Problem to access owncloud

currently the file is like this:

# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    # Redirect permanent / http://example.com/

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

and accessing the error page 404

have you reloaded your web server after the changes?

yes, I do it every time

try this command:

sudo a2dismod ssl

restart your web server and try accessing

I always get error 404

can you tell me where your owncloud is?

Is it under /var/www/owncloud?

if I write https: // ... I get the error: safari can not open page192.1 ... / owncloud because it can not connect to server 192.1 ...

yes, the folder data is in /home/username/data

Okay, what is your owncloud folder path?

Is is /var/www/owncloud/ or /var/www/html/owncloud/

This is very important

is /var/www/owncloud

okay, then you need to change this file

/etc/apache2/sites-enabled/000-default.conf

this line

DocumentRoot /var/www/html

should look like this

DocumentRoot /var/www/

I changed the line quoted by you, now when I try to connect to http: //192.../owncloud i have this screen:

if I try to open the page with https: // 192 ... I get the message "Safari can not connect to the server"

Okay, question: do you have sensitive data that you would lose if you can't access your owncloud?

If not, please consider a fresh installation of 10.0.3

At this point, I honestly have no idea what we could try.

You could try reinstalling the php modules for your apache:

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

I backed up a few days ago, but I did not already see the data and the version is 9 ... so I do not know if I actually saved the data

you could try install this modules and see if it helps, if not, I would recommend a fresh install

Ok, I can reproduce your case, partly.

Can you figure out what the servername your server has and try this in your browser?

Thats how it looks in my server, and when I type in localhost/owncloud I get to my owncloud

Sorry, i dom't understad... i can reinstall php or i can't install php and did you write now?

open this file /etc/hosts

and look what is the name of your raspberry pi server.

than try accessing your server not via the ip but with the name, like localhost, or myraspi.local or something like this.

if this does not help, try reinstalling the php modules from my post earlier.

if this does not help, you might have to reinstall owncloud from scratch

it is called raspberrypi, I tried both http: // raspberrypi / owncloud and https: // .... with the first I got the index schrmata, with the second telling me that safari can not connect to the server

with the command you gave me:
6 14:10:21 2017
pi@raspberrypi:~ $ sudo apt install -y apache2 mariadb-server libapache2-mod-php7.0 \

php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
php7.0-intl php7.0-mcrypt php-imagick \
php7.0-zip php7.0-xml php7.0-mbstring

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-php7.0
E: Couldn't find any package by regex 'libapache2-mod-php7.0'
E: Unable to locate package php7.0-gd
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-json
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-mysql
E: Couldn't find any package by regex 'php7.0-mysql'
E: Unable to locate package php7.0-curl
E: Couldn't find any package by regex 'php7.0-curl'
E: Unable to locate package php7.0-intl
E: Couldn't find any package by regex 'php7.0-intl'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Unable to locate package php-imagick
E: Unable to locate package php7.0-zip
E: Couldn't find any package by regex 'php7.0-zip'
E: Unable to locate package php7.0-xml
E: Couldn't find any package by regex 'php7.0-xml'
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by regex 'php7.0-mbstring