.htaccess and index.php forbidden

.htaccess and index.php forbidden

I want to install gitlist in /home/gitlist/public_html/gitlist. I have
unpac the 4.0 version to that dir:
ls -la
razem 60
drwxr-xr-x. 6 gitlist gitlist 4096 09-02 15:46 .
drwxr-xr-x. 4 gitlist gitlist 4096 09-02 15:34 ..
-rw-r--r--. 1 gitlist gitlist 374 06-01 20:16 boot.php
-rw-r--r--. 1 gitlist gitlist 888 09-02 14:49 config.ini
-rw-r--r--. 1 gitlist gitlist 267 09-02 15:41 .htaccess
-rw-rw-r--. 1 gitlist gitlist 0 09-02 15:34 index.html
-rw-r--r--. 1 gitlist gitlist 639 06-01 20:16 index.php
-rw-r--r--. 1 gitlist gitlist 2241 06-01 20:16 INSTALL.md
-rw-r--r--. 1 gitlist gitlist 1477 06-01 20:16 LICENSE.txt
-rw-r--r--. 1 gitlist gitlist 557 06-01 20:16 phpunit.xml
-rw-r--r--. 1 gitlist gitlist 5148 06-01 20:16 README.md
drwxr-xr-x. 3 gitlist gitlist 4096 06-01 20:16 src
drwxr-xr-x. 9 gitlist gitlist 4096 09-02 14:47 vendor
drwxr-xr-x. 2 gitlist gitlist 4096 09-02 14:47 views
drwxr-xr-x. 6 gitlist gitlist 4096 09-02 14:47 web
When I access the host/~gitlist/gitlist o got:
Forbidden
You don't have permission to access
/home/gitlist/public_html/gitlist/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
However when I comment 1 line in file .htaccess:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/gitlist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,NC] # this line TO COMMENT
</IfModule>
<Files config.ini>
order allow,deny
deny from all
</Files>
GitList displays: The "/home/gitlist/public_html/gitlist/cache" folder
must be writable for GitList to run.
while:
~/public_html] $ ls -la
razem 16
drwxr-xr-x. 4 gitlist gitlist 4096 09-02 15:34 .
drwx--x--x. 4 gitlist gitlist 4096 09-02 15:51 ..
drwxrwxrwx. 2 gitlist gitlist 4096 09-02 14:50 cache
drwxr-xr-x. 6 gitlist gitlist 4096 09-02 15:51 gitlist
What is wrong with the .htacces file and the cache directory?