Running CentOS 7, PHP 7.3.20, httpd 2.4.6-93, MariaDB 10.3. All of the pre-reqs have been installed by following https://docs.nextcloud.com/server/15/admin_manual/installation/source_installation.html
Using setup-nextcloud.php or copying the data from the .zip and running occ gives almost the same result. The error os the same, but occ’ s error is on a plain white page, the php script error has the nextcloud background. Error as follow;
Dependencies not found.
Can’t write to the current directory. Please fix this by giving the webserver user write access to the directory.
I have searched and cannot locate anything on the forum, so if you have any suggestions, I would appreciate it. Any other info that would help, please let me know.
Regards
I forgot to say, /var/www/domain/public_html is set to apache:apache. Tried chmod 777 (I know, not recommended) but no difference.
This is a multi site server using apache virtual hosting and all other hosts are working
Just read a recent response to another ticket that asked if the owner was www-data. That user does not exist on my system or in /etc/httpd/conf/httpd.conf.
Do I just need to create a local user with said name? My ‘default’ apache install uses apache:apache for the user:group
Interesting to note. OwnCloud has the same issue. Just thought I would try as they are branches of the same original build.
Although, it does, by default, give better permissions on the config folder
[root@zaphod public_html]# sudo -u apache php occ maintenance:install --database “mysql” --database-name “owncloud” --database-user “root” --database-pass “Password” --admin-user “admin” --admin-pass “Password”
ownCloud was successfully installed
The was the same command and result with NextCloud, I just did not capture it.
Folder permissions for public_html after running sudo -u apache ls -la public_html/ acquired from another web search;
[root@zaphod owncloud.domain.co.uk]# sudo -u apache ls -la public_html/
total 348
drwxr-xr-x. 14 apache apache 4096 Jul 23 22:37 .
drwxr-xr-x. 3 apache apache 25 Jul 23 22:18 ..
drwxrwxrwx. 22 apache apache 4096 Apr 15 13:37 apps
drwxr-xr-x. 2 apache apache 6 Jul 23 22:37 apps-external
-rw-r--r--. 1 apache apache 8859 Apr 15 13:37 AUTHORS
-rw-r--r--. 1 apache apache 200376 Apr 15 13:37 CHANGELOG.md
drwxrwxrwx. 2 apache apache 79 Jul 23 22:19 config
-rw-r--r--. 1 apache apache 4624 Apr 15 13:37 console.php
-rw-r--r--. 1 apache apache 34520 Apr 15 13:37 COPYING
drwxr-xr-x. 16 apache apache 4096 Apr 15 13:37 core
-rw-r--r--. 1 apache apache 1717 Apr 15 13:37 cron.php
drwxr-xr-x. 2 apache apache 56 Jul 23 22:37 data
-rw-r--r--. 1 apache apache 31204 Apr 15 13:37 db_structure.xml
-rw-r--r--. 1 root root 3269 Apr 15 13:37 .htaccess
-rw-r--r--. 1 apache apache 179 Apr 15 13:37 index.html
-rw-r--r--. 1 apache apache 3524 Apr 15 13:37 index.php
drwxr-xr-x. 6 apache apache 79 Apr 15 13:37 lib
-rwxr-xr-x. 1 apache apache 283 Apr 15 13:37 occ
drwxr-xr-x. 2 apache apache 23 Apr 15 13:37 ocm-provider
drwxr-xr-x. 2 apache apache 73 Apr 15 13:37 ocs
drwxr-xr-x. 2 apache apache 23 Apr 15 13:37 ocs-provider
-rw-r--r--. 1 apache apache 3135 Apr 15 13:37 public.php
-rw-r--r--. 1 apache apache 2157 Apr 15 13:37 README.md
-rw-r--r--. 1 apache apache 5618 Apr 15 13:37 remote.php
drwxr-xr-x. 4 apache apache 39 Apr 15 13:37 resources
-rw-r--r--. 1 apache apache 26 Apr 15 13:37 robots.txt
drwxr-xr-x. 12 apache apache 225 Apr 15 13:37 settings
-rw-r--r--. 1 apache apache 2231 Apr 15 13:37 status.php
drwxr-xr-x. 6 apache apache 150 Nov 14 2019 updater
-rw-r--r--. 1 root root 163 Apr 15 13:37 .user.ini
-rw-r--r--. 1 apache apache 280 Apr 15 13:37 version.php
[root@zaphod owncloud.domain.co.uk]#
Thanks for all of y’all’s help. I have decided to give up on the idea. Shame, but only so many hours in a day.
Answer:- SELinux config - Found out it was enabled (unknown to me)
Just in case it actually helps anyone, but doubtful they will read my testing rants
Laters …
tflidd
July 26, 2020, 1:35pm
9
Unfortunately, that is often the case and makes you lose a lot of time when you don’t think about checking this. Thanks a lot for sharing back this information.