phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 233 forks source link

xml.php error 500 #391

Closed DennisdeWitNL closed 3 months ago

DennisdeWitNL commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Show the full page

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context When visiting my status page, it shows an ERROR 500 for xml.php, but when I perform a php xml.php command in the shell, it shows the HTML code just fine.

!! If you have any problems, please set DEBUG to true in phpsysinfo.ini and include any error messages in your bug report / help request !! Doesn't show any errors due to the 500 error.

I have open_basedir open. I have no idea where to look first, I don't see any errors in the error log of Apache either.

DennisdeWitNL commented 3 months ago

This is a problem that happens with PHP 8.1. I use PHP 7.4 now, and it works fine.

namiltd commented 3 months ago

I did the test in Ubuntu 22.04.3 LTS withPHP 8.1.2-1ubuntu2.14 and failed to get the error. Please check /var/log/apache2/error.log for errors.

DennisdeWitNL commented 3 months ago

I was dumb. For those having the same issue: turn OFF secure_php for the domain you are running phpsysinfo on!

I’m so sorry. I had a long day.