Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache error when setting up Silex Bootstrap: unable to check htaccess file

I'm trying to set up a website using Silex Bootstrap. I've put it in my folder with other web projects and changed the DocumentRoot in the Apache config.

<Directory /folder/to/silex_projects/web>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride All
     Order allow,deny
      allow from all
</Directory>

But I can't open the index page of the framework, Apache gives:

[Mon Dec 17 21:10:52 2012] [crit] [client 127.0.0.1] (13)Permission denied: /folder/to/silex_project/web/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

I've chmod'ed the whole project folder with chmod a+r -R. Other projects in the same folder are working fine with the .htaccess file.

The .htaccess file does exist.

like image 419
OrangeTux Avatar asked Dec 17 '12 20:12

OrangeTux


People also ask

Why is my htaccess file not working?

Improper syntax being used It is quite common for a syntax error to be the reason for an . htaccess file not working. If you are familiar with how to read and configure . htaccess rules, double check your configuration.

Where can I find htaccess file in Apache?

htaccess file can be found at /opt/bitnami/APPNAME/. htaccess. Some applications do not have the /opt/bitnami/apache2/conf/vhosts/htaccess/APPNAME-htaccess.


1 Answers

chmod 755 -R /silex_project/ solved my problem. I still don't know why Apache needs write permissions to work.

like image 169
OrangeTux Avatar answered Sep 25 '22 00:09

OrangeTux