-1

My Laravel 8 application was working fine server, but suddenly it shows a plain text of the php page in /public/index.php, can you help me?

enter image description here

enter image description here

Barbora
  • 921
  • 1
  • 6
  • 11
Jafer P
  • 1
  • 1
  • Which server are you using? Is it Linux? – S N Sharma Aug 18 '21 at 09:30
  • You can try `sudo apt-get install -y libapache2-mod-php` – S N Sharma Aug 18 '21 at 09:30
  • Hello Jafer! Don't forget to explain the question in more detail, it could help others to help you. Instead of having the images linked as they are right now, maybe you could link them with some text that makes sense and describe what you have tried so far. Hope you find you solution in no time! Welcome to S.O! – Guilherme Assemany Aug 19 '21 at 12:32
  • Does this answer your question? [PHP code is not being executed, but the code shows in the browser source code](https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-but-the-code-shows-in-the-browser-source-code) – Don't Panic Sep 05 '21 at 15:21

1 Answers1

0

Looks like your web server isn't parsing PHP correctly

Check log files, they will probably point you to a misconfigured apache or nginx configuration

There isn't much information in your question, so you're going to get blanket answers

ScottSmudger
  • 351
  • 2
  • 8