How do i hide sql error messages
How do I disable verbose sql errors in mybb. they're giving away too much information
Hovatek Forum | Hovatek Blog |

Hovatek....just a button away!
Go to your forum's settings > Server and Optimization Settings

Logging medium: Log and email
Error type medium: Hide Errors and Warnings
Error logging location: ./error.log (or to any path relative to your forum root where you want errors to be logged)

! Make sure you disallow access to error.log from the browser. If you're using Apache, add this to your htaccess file (note: this will block access to all files ending in ".log"):

<Files  ~ "\.log$">
  Order allow,deny
  Deny from all

CHMOD the file to 644 so that it can be written to. Now it will be inaccessible over the web, but you can download it via FTP. You'll also have errors emailed to your admin address.
PGP Key (Fingerprint: 23B6 F4C0 FE2D 45AA 61A0 1E86 DB87 09DC DD87 6E40)

Forum Jump:

Users browsing this thread: 1 Guest(s)