By JamesAus
I have recently setup a new LAMP server, everything is working fine for my webapp except when trying to export files using fpdf. It worked fine on my other hosting provider but I cannot get it to work here. I get a “This page isn’t working” “xxxxxx is currently unable to handle this request” “HTTP ERROR 500”
Is there some web configuration I have overlooked to allow this to work ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @JamesAus,
I would recommend checking out your error logs. The information should be displayed there as to why it’s not working and it’s giving you this one.
Usually, the HTTP ERROR 500 is related to the code itself rather than the server so you’ll need to create a php error_log and recreate the issue. Once the issue is recreated the error will be logged in the file you’ve created. To enable PHP error logging, you need to set two directives in your php.ini file:
log_errors
error_log
First, use a text editor to set the log_errors directive as shown:
log_errors = On
Next, set the error_log directive to log PHP errors to a specific file. Replace path with the path to the log file, and filename with the log filename:
error_log = /path/filename
That’s it, you now have the error log enabled.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.