Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

icode15's avatar

Laravel Internal Server Error on Centos Panel

hi, i have a 500 internal error with Laravel on centos 6 i gave permission to apache ,check picture here -> http://nimb.ws/pMS2Xm my server path is \home\MY_USERNAME\public_html\blog

No Laravel Log but on apache log i see this

SoftException in Application.cpp:249: File "/home/MY_USERNAME/public_html/blog/public/index.php" is writeable by group,

original htaccess on public folder here

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

    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]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

might be suphp problem, i'am still checking

0 likes
1 reply
icode15's avatar
icode15
OP
Best Answer
Level 1

this solution worked for me

This is due to the server running SuPHP and the files having higher permissions than allowed, to fix this problem you need to make sure your files are chmod 644 for all PHP based files and 755 for directories in order for them to work with SuPHP.

Please or to participate in this conversation.