Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

diazfarindra's avatar

httpd centos 7 shows code instead executing

I have a problem where when I deploy my application on the centos 7 servers using httpd, httpd only renders code from index.php but is not executed. I have used all permissions and I have loaded the PHP module, but it doesn't show any changes, what should I do?

0 likes
2 replies
diazfarindra's avatar
diazfarindra
OP
Best Answer
Level 1

I figured out my problem that mod_php is not default installed after I install PHP and httpd, now it works with this command: yum install mod_php and systemctl restart httpd

Please or to participate in this conversation.