SonoDavid2 wrote
I am running the DokuWiki on a shared server. It runs on the same IP-adress as another website, but in a subdomain.
virtualdomain
SonoDavid2 wrote
<snipped>
I am able to log in to the server using ftp (using FileZilla on Windows 10) and found the etc folder in the root, but there are only two files: group and passwd. No other folders though.
You are running as a user, not as root.
You are looking at
/home/$User/etc, not
/etc
e.g.
# ls -al /home/$SomeUser/etc
total 12
drwxr-xr-x 3 $SomeUser $SomeUser 4096 Jun 24 2015 .
drwxr-x--- 14 $SomeUser $SomeUser 4096 Jun 24 2015 ..
drwxr-xr-x 2 $SomeUser $SomeUser 4096 Dec 20 2012 php5
lrwxrwxrwx 1 $SomeUser $SomeUser 12 Jun 24 2015 php.ini -> php5/php.ini
[/color]
as opposed to:-
# ls -al /etc
total 964
drwxr-xr-x 107 root root 4096 May 25 11:00 .
drwxr-xr-x 21 root root 4096 Apr 16 12:58 ..
drwxr-xr-x 3 root root 4096 May 13 2015 acpi
-rw-r--r-- 1 root root 2981 May 13 2015 adduser.conf
-rw-r--r-- 1 root root 44 May 13 2015 adjtime
-rw-r--r-- 1 root root 213 Jun 23 2015 aliases
-rw-r--r-- 1 root root 12288 Jun 23 2015 aliases.db
drwxr-xr-x 2 root root 16384 Jan 28 09:11 alternatives
drwxr-xr-x 9 root root 4096 Mar 20 14:01 apache2
drwxr-xr-x 4 root root 4096 Apr 30 09:15 apparmor.d
drwxr-xr-x 6 root root 4096 Nov 5 2015 apt
drwxr-xr-x 2 root root 4096 Mar 20 16:47 awstats
-rw-r--r-- 1 root root 1863 Nov 13 2014 bash.bashrc
drwxr-xr-x 2 root root 4096 Apr 30 09:15 bash_completion.d
drwxr-sr-x 2 root bind 4096 Mar 10 09:59 bind
-rw-r--r-- 1 root root 367 May 19 2014 bindresvport.blacklist
drwxr-xr-x 2 root root 4096 Apr 18 2015 binfmt.d
drwxr-xr-x 3 root root 4096 May 13 2015 ca-certificates
-rw-r--r-- 1 root root 8668 Jan 28 09:10 ca-certificates.conf
-rw-r--r-- 1 root root 7773 May 13 2015 ca-certificates.conf.dpkg-old
drwxr-xr-x 2 root root 4096 May 13 2015 calendar
drwxr-xr-x 5 root root 4096 Jun 23 2015 clamav
drwxr-xr-x 4 root root 4096 May 13 2015 cloud
drwxr-xr-x 2 root root 4096 May 13 2015 console-setup
drwxr-xr-x 2 root root 4096 Apr 30 09:16 cron.d
drwxr-xr-x 2 root root 4096 Apr 6 22:08 cron.daily
drwxr-xr-x 2 root root 4096 Sep 10 2015 cron.hourly
drwxr-xr-x 2 root root 4096 Sep 10 2015 cron.monthly
-rw-r--r-- 1 root root 722 Oct 26 2014 crontab
drwxr-xr-x 2 root root 4096 Sep 10 2015 cron.weekly
drwxr-xr-x 4 root root 4096 Sep 10 2015 dbus-1
-rw-r--r-- 1 root root 2969 Mar 19 2015 debconf.conf
-rw-r--r-- 1 root root 4 Mar 14 10:45 debian_version
-rw-r--r-- 1 root root 0 Mar 19 2015 debsums-ignore
drwxr-xr-x 2 root root 4096 May 16 18:35 default
-rw-r--r-- 1 root root 604 May 16 2012 deluser.conf
drwxr-xr-x 4 root root 4096 Jan 15 09:21 dhcp
<snipped many more file listings>
[/color]
You're confusing the root of your home directory with the root of the file system. No matter. Your hosting provider is using the default modsecurity-crs base rules. They need to unblock dokuwiki uploads. example only, your hosting provider likely/should have a per-domain modsec policy (as root):-
echo "SecRuleRemoveById 960010" >> /etc/asl/modsecurity_crs_30_http_policy.conf
[/color]
That would append a new rule to the modsec policy which will allow safe upload requests for dokuwiki to be allowed.
Speak to the hosting providers support. Show them your logged errors and they should be able to help you.