By estepp2020
I followed the Digital Ocean Guide to installing LEMP on ubuntu 20.04 but I am running into the error after login of my admin panel at:
https://prideleads.com/admin_cpa/
with username & password: admin
It goes to a blank screen(when php.ini error log says On) or HTTP Error 500 when php.ini is off for errors.
The /var/log/nginx/error.log says nothing and so does the /var/log/php5.6-fpm.log
I am stuck! If anyone could help me get past this speed bump I would so much appreciate it :D
My server block:
server {
server_name performacpa.com www.performacpa.com;
root /var/www/performacpa/public;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
P.S. the script works fine on this cPanel hosting I setup: http://cpanetwork.ml/admin_cpa
Same login info.
Thanks for anyone who reaches out for support on this :D
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 there @estepp2020,
I could suggest adding the PHP snippet from this post here on top of the index file of your application:
// Debug - Add this on top of your index.php file
ini_set('error_reporting', E_ERROR);
register_shutdown_function("fatal_handler");
function fatal_handler() {
$error = error_get_last();
echo("");
print_r($error);
}
This should start displaying any errors that occur rather than getting a blank screen.
Also as far as I can see in your Nginx config you are using PHP 7.4 but you are checking the error log for PHP 5.6. Are there any other logs in the /var/logs/ folder for PHP FPM?
Hope that this helps! Regards, Bobby
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.