[STDERR] PHP Parse error: syntax error, unexpected '"<style>@media (prefers-color-' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /usr/local/lib/php/autoindex/autoindex_include.php on line 462
For a couple of days has been giving us a 500 error on websites that do not have any index.php or similar, instead of listing the files it shows a 500 error.
egrep -ria -e 'autoindex_include' /var/log/apache2/error_log
Change in file: /usr/local/lib/php/autoindex/autoindex_include.php
Line 462
From this:
"<style>@media (prefers-color-scheme:dark){body{background-color:#000!important}}</style></head>\n"
To this:
. "<style>@media (prefers-color-scheme:dark){body{background-color:#000!important}}</style></head>\n"
-
Hey there! What is the output of the following command on the server?
grep Indexes /etc/apache2/conf/httpd.conf
0 -
[root@cp2 ~]# grep Indexes /etc/apache2/conf/httpd.conf
Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI
[root@cp2 ~]#0 -
Thanks for that. Do you see any helpful details in the main Apache error log at /etc/apache2/logs/error_log that could provide more details?
0 -
Open /usr/local/lib/php/autoindex/autoindex_include.php and add a ". " which is a "period and a space" on line which starts with "<style>@media " .
0
Please sign in to leave a comment.
Comments
4 comments