S
S
Sergey2018-12-22 20:26:16
Apache HTTP Server
Sergey, 2018-12-22 20:26:16

How to fix 500 error?

Good evening, I have a VPS with a BrainyCP control panel.
Put there REG.Panel from reg.ru. The panel refused to work and began to knock out the error "500 internal server". I looked at the Apache logs, there I saw the following line ".htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration". I realized that the error was with the php flag and commented out the line “php_flag register_globals Off” in .htaccess.
After that, REG.Panel refused to work at all.
Well, what is the “php_flag register_globals Off” parameter for and how to fix the error “.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration” in order to activate it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-12-22
@t3g1ng

The parameter register_globals Offis needed in order to turn off register_globals , who would have thought. This mode was considered obsolete for many years, and was completely cut out six years ago.
The php_flag directive only works if php is connected to Apache as mod_php.
You have options:
1. figure out what it is and set it up
2. hire an admin or contact technical support
3. throw away this squalor entirely.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question