crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.71k stars 1.59k forks source link

Setup 500 Internal error #563

Closed nathaliedup closed 2 years ago

nathaliedup commented 2 years ago

Describe the bug I have followed the manual installation instruction. When i try to access the url (/public folder) to start the setup i have this error :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Expected behavior Access the setup page after manual installation

Please complete the following information:

Optional info

nathaliedup commented 2 years ago

Was able to fix. I have replaced the content of the .htaccess in /crater/public to this :

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteBase /
    Options +FollowSymLinks
    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
sbarkerzamora commented 2 years ago

This worked for me, Shared Hosting at Dreamhost. Thanks for sharing.

mohitpanjwani commented 2 years ago

Thanks for the fix @nathaliedup

Glad to know that you managed to fix this yourself.

ninoskuflic commented 2 years ago

Hi, I've tried to put the same file in .htaccess but unfortunately, this did not work for me. I still get error 500 during setup.

BuLLHACK commented 2 years ago

I can confirm the issue is still there on version 6.0.6

realkaldy commented 2 years ago

I'm having the same issue

orangpelupa commented 2 years ago

same issue on windows 11 with caddy2 server, php 7.4

nathalizator commented 11 months ago

I have this issue again and unable to fix this :( Anybody has find a solution on shared hosting ?