Hi ! Iām new to nextcloud because Iāve got a VPS since some months and I would like to have my personnal cloud and edit files directly online.
My VPS runs Debian 9 and I want my cloud to be accessible through ācloud.mydomain.comā
Following installation instructions, I unzipped the archive and putted it in /var/www/cloud.mydomain.com then setted the vhost as I want but it tells me āinternal server errorā and I donāt know whatās wrong or how to debug.
500 means Server error, that can mean a lot.
Do your provider have any log files, for the vHost, you can post?
Can you open a Textfile from your NextCloud Installation like http://cloud.mydomain.com/robots.txt ???
If you have installed nextcloud, there must be a robots.txt. If you open a .php file, it will be parsed from the server and the server only give you the output. If you open a .txt file, it opens directly. So we can see, if itās a php / server error or not. Maybe you have used a wrong Directory for your installation if you have a 404 error.
Is there a āerror.logā or something from Apache?
Sorry Iāve found the robots.txt file, it contains :
User-agent: *
Disallow: /
And the apache log file ends with :
[Sun Jul 08 17:10:45.968009 2018] [:error] [pid 20498] [client 92.170.211.216:60092] {āreqIdā:āB6gtyYR19sXEiBQdundtā,ālevelā:3,ātimeā:ā2018-07-08T15:10:45+00:00ā,āremoteAddrā:ā92.170.211.216ā,āuserā:āāā,āappā:āPHPā,āmethodā:āPOSTā,āurlā:ā/nextcloud/index.php/heartbeatā,āmessageā:āchmod(): No such file or directory at /var/www/cloud.mydomaine.com/nextcloud/lib/private/Log/File.php#137ā,āuserAgentā:āMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36ā,āversionā:āā}
Is there a āerror.logā or something from Apache?
How much log Files do you see? If itās a VPS, maybe itās storaged in /var/log/apache
The situation you describe may caused by a lot of errors, you must show us some logfile, that we can help you:
Yes I can open http://cloud.mydomain.com/robots.txt on my browser. And my vhost is correctly configured because I see the blue home page of nextcloud but it tells me (in french) : āInternal server error, the servor cannot execute your request.ā
Iāve made some modifications to show you Here you can see : http://145.239.223.19/index.php
NOW i understood what you say. Iāll think the Apache WebServer server got the 500 error Message.
Have you edit the file
/var/www/cloud.mydomain.com/config/config.php
and set up ālogfileā, āloglevelā and ālog_typeā?
My setup is:
and I didnāt made any changes on it. I checked the file and your values are the same that default ones.
I checked and saw that log file didnāt exists so I did copy the sample config file to config.php but it didnāt change anything : no log file was created on /var/log/
I also tried to put only your rules on config.php as :
but no log file Here are the actual rights of the nextcloud folder :
drwxr-xr-x 13 root root 4096 juil. 8 17:55 html
my others directories (that contains others websites) are owned by āwww-dataā so I tried to change owner to make nextcloud work but it didnāt changed anythingā¦
OMG youāre the bests but why isnāt it automatic ?
I have a little other question : the vhost of the documentation is juste an example ? We can use our own virtualhost file ?
mine is a āscriptā (ansible playbook). when you run it, it will install nextcloud completely. nevertheless it wonāt run on your server because you have already an existing apache installation. my script canāt handle this.
but you find many information here:
all the setup and configs in my scripts are from this page.
<VirtualHost *:80>
DocumentRoot ā/var/www/cloud.mydomain.comā
ServerName cloud.mydomain.com
<Directory ā/var/www/cloud.mydomain.comā>
Options +FollowSymlinks
AllowOverride All
allow from all
Options None
Require all granted