Hi. I have the Project Pier files unzipped on my server, in a directory called "projectpier" in my public_html directory. But when I navigate in my browser to mydomain.com/projectpier/public/install, I get:
---
Forbidden
You don't have permission to access /projectpier/public/install on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mydomain.com Port 80
---
I checked the directory and file permissions and they all seem correct. Suggestions would be appreciated!
A 404 error from you web server literally means it did not find the file. In the /public/install directory do you have a file called index.php? If you uploaded the files individually (as opposed to unzipping the installation file on the server) are you sure that all the files uploaded successfully?
I think the 404 error refers to the server not finding the proper error document.
The real error that Sissel received seems to be "Forbidden".
I'm thinking that it could be that index.php is not used as a default file to serve on a directory. The Forbidden would come from the fact that you can't get the index of directories. Sissel, can you try opening public/install/index.php instead?
Also, what happens when you go to public/? Do you have a message saying ProjectPier is not installed and that you need to go to public/install or does it says "Forbidden" as well?
If you can access index.php, you need to add index.php to the default pages to serve in the Apache configuration.
Tim
In the /public/install directory do you have a file called index.php?
Yes.
If you uploaded the files individually (as opposed to unzipping the installation file on the server) are you sure that all the files uploaded successfully?
I did upload the files individually, having unzipped them locally. I can't vouch that every single file was uploaded successfully, but the job completed normally and to superficial inspection the tree looks the same. Definitely /public/install is populated the same way.
...can you try opening public/install/index.php instead?
Trying this produces the same result that I described in my opening post.
Also, what happens when you go to public/?
I get the same result. What's weird is that I have other directories in /public_html that I can view just fine. At the top it says "Index of xxx..." then the list of files, then
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mydomain.ca Port 80
I suspect that it's some kind of general permission problem, not specific to PP, but I can't think of what it is. The directory perms are 0755 in each case. File perms are appropriate too. I'm using cpanel - anyone have experience with a similar indexing issue?
Thanks.
I should add that cpanel has an "Index Manager" that lets me select between a default style, no indexes, or two types of indexing. The /projectpier directory has the default style, but even if I force it to a "yes, index" style it still doesn't index.
### EDIT: Hold the phone. There WAS something wonky with the file permissions. I'm making some kind of progress and will update later.
It's not related to the "Index Manager" in cPanel. cPanel's index manager simply controls if and how a list of files in a directory is shown if there is no default document (no index.php, no index.htm, etc.) in the directory. Sometimes people use this feature to show a list of files visitors can download and the index manager allows you to control how that file list looks.
I believe you are looking for the
Main >> Service Configuration >> Apache Configuration >>Edit Apache DirectoryIndex
... which you can probably only get to through the Webhost Manager. It's quite likely only your hosting provider has access to this if you have a cPanel account, at least that's been my experience unless you have purchased a VPS or dedicated server.
Sissel, did you get this error fixed?
I seem to have the same issue, with project pier hosted with HostGator.
What did you do to fix it?
Thanks.
I too have hostgator and trouble with my installation. I am on a shared server, cpanel Server is
Apache version 2.2.15
MySQL version 5.1.48
PHP version 5.2.13
Please help! Feel free to email me directly!
Strangely enough, this issue is still around.
If the scripts are run as a user different from their owner, many folders simply can not be accessed.
You can circumvent this by adding 'rX' to all folders recursively (in linux: 'chmod -R a+rX .' from inside the document root).
I'm not sure though whether this creates any security issues.
I had same problem,
I found After extract zip archive directory permission set to 700 and its cause forbidden error.
I delete all files and upload extracted version. (extract on local machine then upload files to server). after that I see all directory have 755 permission and there is no error :)
linux/cpanel