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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠