500 Server Error Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
luckydead21
Forum Newbie
Posts: 2
Joined: Thu Dec 02, 2021 12:48 am

500 Server Error Help

Post by luckydead21 »

Hello,
I have uploaded my cms system in my website hosting but when i open the website it shows 500 Internal Server Error
and i think it comes from this .htaccess file

Code: Select all

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

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ ^$1 [N]

    RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
    RewriteRule ^(.*)$ public/$1 

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ server.php
php_value max_input_vars 2000


</IfModule>
This is the information inside of it i had checked in phpinfo of hosting i have max_input_vars 5000 by default.
what maybe is the problem here if i delete all lines website it loads
User avatar
Benjamin
Site Administrator
Posts: 6925
Joined: Sun May 19, 2002 10:24 pm

Re: 500 Server Error Help

Post by Benjamin »

It's probably the "php_value max_input_vars 2000" line. Remove that.
Post Reply