1

I extracted CodeIgnitor to XAMPP's htdocs and when I tried to access index.php like this:

h t t p://127.0.0.1/ci/index.php

I get the following error message:

Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. Error 403......

How can I troubleshoot this problem?

Anthony
  • 201
  • 1
  • 6
  • 12
  • please paste errors from log files – sdot257 Oct 13 '11 at 15:15
  • This question appears to be off-topic because it is about a one-click *AMP stack installer which are generally considered developer tools and hence off-topic for serverFault. –  Jul 06 '13 at 23:12
  • @kce fair enough, but this is in no way a duplicate of that question. It should have just been marked off topic. – Goose Nov 11 '16 at 14:14

2 Answers2

0

Check your apache error logs to see what apache is saying. You might need to change to LogLevel error and restart to get enough information.

My guess is that apache runs as www-data (or apache) and you extracted the files as your user with a umask that isn't allowing apache to read it.

chmod o+r ci/

and see if that helps. Check the apache error logs if it doesn't and it should give you an idea of why it is having a problem. Maybe there is a deny block covering that directory for some reason in the configs.

0

You need to set the access right in the apache config file like this:

<Directory "c:/htdocs">
    Options +FollowSymLinks -Indexes +ExecCGI
    AllowOverride All
        Order allow,deny
    Allow from all
</Directory>
mgorven
  • 30,036
  • 7
  • 76
  • 121
Lordrach
  • 26
  • 1