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
demandé il y a 5 mois136 vues
1 réponse
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
répondu il y a 5 mois
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions