Lightsail LAMP - File permission

0

I have a Lamp Stack installed in php 8.1, i have hosted a php application which worked fine in a shared hosting beofore, Since i moved the file here i feel some files are not loading, For some requests, i get 500 servers,I know there is nothing wrong in the system as the same program works perfectly fine in Windows EC2, and shared hosting both same times,,

Does anybody know the reason for this,My Guess is the File permissions structure on the lightsail,any suggestions or a way i can check this,

thanks !+-

Jayanga
asked 5 months ago125 views
1 Answer
0

Hello.

Have you checked Apache error logs or PHP application logs?
If you look at these logs, you will probably find an explanation that is causing the error.

profile picture
EXPERT
answered 5 months ago
  • Thank you for the comment. Where can I check those,,I tried these to check,, but no luck.

    sudo cat /etc/php/8.1/fpm/php-fpm.conf | grep error_log sudo tail -f /path/to/your/error.log sudo cat /etc/php/8.1/fpm/pool.d/www.conf | grep error_log sudo cat /etc/php/8.1/cli/php.ini | grep error_log sudo cat /etc/php/8.1/cli/php.ini | grep error_log sudo ls /var/log/php-fpm/ sudo tail -f /path/to/your/error.log

  • I think it depends on the OS, but are there any error logs output under "/var/log/httpd"? Also, how did you set up that LAMP?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions