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
feita há 5 meses136 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 5 meses
  • 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?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas