-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Server Error (error 500) #24
Comments
Any particular line or all? |
Maybe some of those params changed visibility in 7.2 |
The Apache server error log told me that "php_flag" was an ilegal instruction, so I believe that this instruction was not automatically enabled, as it used to be in the older version of this distro. So, I guess that removing these instructions from .htaccess will turn this script more compatible with similar systems, where php_flag and php_value are disab led in Apache. |
Do you use mod_php or cgi? |
I use mod_php. |
Strange, but you are right. There might be similar situations on other hostings. Need to move these fllags to separate php file and include it. |
Hi, I was wrong about the functioning of PHP 7.2 in Alma Linux 8: I looked at phpinfo, and it does not show mod_php as a module loaded. As follows: • In CentOS 7 with PHP 5.6, we have Apache 2.0 Handler as the SERVER API and mod_php5 as a loaded module. So, as of PHP 7.2, I guess CGI is the default in RHEL like distros. And the script, as it is, will fail. |
That makes sense. |
I used this software with Apache 2.4.6 and PHP 7.1, in CentOS 7 and it worked perfectly. However, I have tried to use it with Apache 2.4.37 and PHP 7.2, in Alma Linux 8, and it does not work, giving me the following error message:
I found out that it occurs due the use of "php_flag" and "php_value" in .htaccess file, as described here: https://stackoverflow.com/questions/22858889/use-php-flag-in-htaccess. If I comment the .htaccess file, the error disappears
So, I ask you: is it possible to transfer these instructions to the script bench.php, using the function ini_set() ?
Regards,
Aldemar Calazans Filho
The text was updated successfully, but these errors were encountered: