I tried to run occ and I got this:
An unhandled exception has been thrown:
ParseError: syntax error, unexpected ‘array’ (T_ARRAY), expecting ‘)’ in /var/www/nextcloud/config/config.php:7
Stack trace: #0 /var/www/nextcloud/lib/private/Config.php(59): OC\Config->readData() #1 /var/www/nextcloud/lib/base.php(131): OC\Config->__construct(‘/var/www/nextcl…’) #2 /var/www/nextcloud/lib/base.php(607): OC::initPaths() #3 /var/www/nextcloud/lib/base.php(1092): OC::init() #4 /var/www/nextcloud/console.php(48): require_once(‘/var/www/nextcl…’) #5 /var/www/nextcloud/occ(11): require_once(‘/var/www/nextcl…’) #6 {main}root@admin01-Latitude-E6410:/var/www/nextcloud#
After that I cannot access my nextcloud anymore! Gives me error 500
Somebody please help!
I was only trying to follow the instructions to get rid of the /nextcloud/index.php/
Currently it’s something like this
array
0==localhost
1==internal ip of server
2==public ip: port
I need someone else to help me do the mapping to domain name tonight
thought it would be great to get rid of the /nextcloud/index.php/ now
You can redact your address and passwords. There seems to be a syntax error. Other config.php’s won’t help you because all the credentials, salts, … are different and won’t work like this on other machines.
There you should rather use a public hostname, because when links are generated or send out, localhost won’t be accessible anywhere but on the server itself.
Do you have a static ip? If not you should consider using a dyndns-service to have a hostname that does not change.
Thanks a lot, I will try again.
Do you know if there is a similar document that teaches how to get rid of nextcloud/?
Either my eyes are playing tricks on me after 2 days without sleeping… or the article just disappeared…
Not sure if there is an article. For nginx they provide two configurations one with and one without subdirectory.
On apache you normally would just change the DocumentRoot to /var/www/nextcloud and remove Alias /nextcloud "/var/www/nextcloud/" from your webserver-config. But please open a new topic if you have a problem here and provide more information about the webserver used and your current configuration.