INTERNAL SERVER ERROR Contact to Administrator

Hello,

i m successfully installed nextcloud at my centos machine but now i want to move or reinstall next cloud with different location like /home/user/web/public_html but its all installation is correct with no error but when i try to access 172.16.1.1/nextcloud its given INTERNAL SERVER ERROR pls contact to administrator etc…

Pls anybody help me regarding this issue.

thanks
Mohan

Hi @mohanrao83

Have you perhaps got SELinux enabled or in enforcing mode? If so, please follow the SELinux steps here to set the correct permissions.

If you followed the default install details, please check apache logs (usually /var/log/httpd/access_log and error_log) for details, and post them here?

Also, do you just want to move the data folder or the whole installation directory for nextcloud?

Cheers
Hans

no sir still not working.

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: 172.16.121.7
  • Request ID: W4okz@5-FvS@22a1lucLWgAAAAE

Have you tried disabling SELinux completely? Also, what errors do you get in apache and nextcloud logs? Without those we cannot be of much help.

ok but i have a question pls
is there any issue if i change default location from /var/www/nextcloud to home/user/

Thanks

Mohan

No, there should not be. Granted you make sure apache has r/w access to whatever your folder for Nextcloud is. And that you edit your Virtualhost accordingly.

You can try chown -R apache.apache /directory/to/your/new/install to make sure the permissions are correct. Then also ensure the root directory setting in your Virtualhost file in /etc/httpd/conf.d/nextcloud.conf is pointing to your new directory.
Hth.

i m using Centos 7 with vestacp httpd server.
this command should work for httpd server. ?

But i really very thankful to u for response.

That is the stock command for CentOS httpd server. If you use anything else, I am not sure what the commands would be. Unfortunately the community cannot provide answer for everything out there, so we could only guide you best effort if something is outside the norm of Nextcloud. I would suggest try it and see. First check who owns the folders first and with what permissions, then you can just change it back afterwards if you need.

when i install nextcloud in /var/www/html/nextcloud its working great but when i try to install /home/user/web/public_html its given message …

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: ip address
  • Request ID: W4okz@5-FvS@22a1lucLWgAAAAE

@mohanrao83 I’m afraid I won’t be able to help unless you provide the info asked, or do the commands as instructed and report back the results. You last reply is a replica of your first reporting of the issue.
So until you have done the chown -R command and paste the ligs for nextcloud and apache, I am afraid there is not much I can do anymore. Sorry :wink:

ok thanks for everything

Please, i’ve a similar problem than mohanra83, can you tell me where located the nextcloud logs. Is it there where i can check the “request ID” showed in the web browser when returning the error message? If not, where must i get more information about the problem with installation?

Thanks in advance.

I’m having the same problem, but on a clean installation. Have you managed to fix the issue?

Hello, yes, i finally accomplished to install after several try & error attemps during at least 4 days!! :-o

By default the errors of PHP/Apache when running Nextcloud and any PHP script are dumped to here, and i can confirmed to you that it was very helpful for me:

/var/log/apache2/error.log
/var/log/syslog

Furthermore, Nextcloud echo its error messages to the second file above, i think so. Well, i don’t remember very well which of both files above where, but it’s one of them. In any case, both are useful to be checked during installation.

You must know too that you can modify the config file of Nextcloud:

/PATH/TO/NEXTCLOUD/config/config.php

and set 2 interesting values:

  • 'loglevel' => 0 (0=Debug, 1=Info, 2=Nothing)
  • 'logfile' => '/var/log/nextcloud.log'

Lucky man! :wink:

1 Like

Thank you! I will take a look at those files!