500 Internal Server Error
InfinityFree Forum [Unofficial]
May 12, 2026
Website URL
500 Internal Server Error Something on the website crashed!
Other Information
I developed a school website using Laravel and I would like to test it before actually using a paid hosting for full implementation. Unfortunately, I am getting the error stated above everytime I try to access the website.
Here’s what I have done so far:
- Created a Database and imported tables without error
- Configured database as per my MySQL Connection Details (yes, the app does uses MySQL)
- Moved .htaccess in /htdocs (originally placed inside public folder)
- Modified .env file to reflect the server’s configurations
.env config
APP_NAME=DCCP-ABRA
APP_ENV=production
APP_KEY=base64:IAMNOTGONNAUSETHEACTUALKEY
APP_DEBUG=true
APP_URL=http://dccp-abra.ct.ws
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
# PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=sql311.infinityfree.com
DB_PORT=3306
DB_DATABASE=IAMNOTGONNASHOWITHERE
DB_USERNAME=IAMNOTGONNASHOWITHERE
DB_PASSWORD=IAMNOTGONNASHOWITHERE
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
# CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}"
.htaccess config
Options -MultiViews -Indexes
RewriteEngine On
RewriteRule (.*) /public/$1 [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
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 (.*) /public/$1 [L]
What am I doing wrong or what did I miss? Thank you in advance.
Discussion in the ATmosphere