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
已提问 5 个月前136 查看次数
1 回答
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
专家
已回答 5 个月前
  • 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?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则