Slim PHP 500 Internal Server Error

Julian Laval

I'm currently attempting to set up a Slim project with the following directory tree:

public_html
|-- Mini
|-- public
|-- vendor
|-- index.php (Slim)
|-- .htaccess

The document root is public_html, and the contents of the .htaccess are as follows:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

Despite this seemingly simple structure, I am unable to get anything other than a 500 Internal Server Error when trying to access the domain root or any subdirectories.

This all works on my local WAMP setup.

Any help would be much appreciated!

Julian Laval

Solved!

Issue was tantamount to permissions, and was resolved with the following:

chmod -R u+rwX,go+rX,go-w /path

Found at https://superuser.com/a/91966/334807

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Heroku php slim app - 500 internal server error

500 internal server error with POST request - Slim framework

AJAX post in using slim framework outputs 500 (Internal Server Error)

Unexplained PHP error (Internal Server Error 500)

PHP code giving 500 internal server error

POST 500 Internal Server Error -- PHP

Internal Server Error 500 on .PHP pages only

500 internal server error php, how to solve?

Internal Server Error (500)

PHP SQL Server : 500 Internal server error with specific query

Slim Framework - Getting "500 Internal Server Error" for a simple "$request->get"

php MySQL insert into error, 500 internal server error

removing php extension in htaccess returns an internal server error (500)

Why "500 internal server error" with index.php permission 666?

Codeigniter 500 internal server error due to index.php

Getting on 500 Internal Server Error On PHP saving Canvas as Image

500 Internal Server Error in PHP 8.1 Array with wordpress

Php file sometimes causing 500 Internal Server Error

update-php class causing 500 internal server error

IIS Giving a 500 Internal Server Error When Serving a PHP file

PHPMyAdmin 500 Internal Server Error in Apache due to PHP Version

500 Internal Server Error PHP Script - Tried most answers

Internal server error 500 when calling php script

NetworkError: 500 Internal Server Error - php web service

phpMyadmin Internal Server Error 500

500 internal server error on laravel?

Retrofit: 500 internal server error

500 Internal Server Error Heroku

500 Internal Server Error Hosting