Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 on install #7207

Open
MCCMorgan opened this issue Dec 9, 2024 · 3 comments
Open

Error 403 on install #7207

MCCMorgan opened this issue Dec 9, 2024 · 3 comments

Comments

@MCCMorgan
Copy link

I am doing a new install on a SiteGround shared server. I followed the instructions and the files are all under /churchcrm directory. Yet when I go to run the setup by going to the web, I get a 403 error.

2024-12-09 01:29:33 UTC [apache][autoindex:error] [pid 27844:tid 27844] [client 172.78.81.196:12148] AH01276: Cannot serve directory /home/u449-4eue21hgwu0g/www/mccilliana.org/public_html/churchcrm/: No matching DirectoryIndex (index.html,Index.html,index.shtml,index.php,Index.php,index.phtml,Index.phtml,index.htm,Index.htm,home.htm,Home.htm,Default.htm,Default.html,default.htm,default.html) found, and server-generated directory index forbidden by Options directive

When I look at the files, I don't see any index files and all the permissions look correct. Did I do something wrong or is there something else I need to do to get it to the next step?
Thanks,
Michael

@MCCMorgan MCCMorgan added the bug label Dec 9, 2024
@DAcodedBEAT
Copy link
Contributor

Hi @MCCMorgan ,

The 403 error might be due to missing or incorrect file permissions, missing file(s), or incorrectly configured Apache. Here’s a few things to check:

  1. Check for index.php
    Make sure there is an index.php file in the /churchcrm directory. If it’s missing, please re-install the ChurchCRM files. If this is a selfhosted environment, feel free to use https://github.com/ChurchCRM/CRM/blob/master/install/install.sh

  2. Set Correct Permissions
    Ensure files are set to 644 and directories to 755 as per https://github.com/ChurchCRM/CRM/wiki/File-System-Permissions . You can do this with:

    find . -type f -exec chmod 644 "{}" \;
    find . -type d -exec chmod 755 "{}" \;
  3. Check PHP
    Create a temporary test phpinfo.php file with <?php phpinfo(); ?> to confirm PHP is running correctly.

After following these steps, try accessing the setup again at https://mccilliana.org/churchcrm. Let us know if it still doesn’t work.

@MCCMorgan
Copy link
Author

I erased the directory and started over. I moved the files in the CRM-master zip over to the server. There is not an index.php in the top directory though I do see one in the scr folder. But that’s how it is in the zip folder. My permissions look correct and I am on a hosted SiteGround server but have no idea what protocol it’s running. Here are screen shots of the directory on the server. Still getting the 403 error.

image002
image001

@DAcodedBEAT
Copy link
Contributor

@MCCMorgan Please use the latest release zip: https://github.com/ChurchCRM/CRM/releases/tag/5.12.0

The files are transformed and built into a usable application in the release and retrieving the sourcecode directly from Github would not go through this build process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants