# PHP not executing just showing source

**URL:** <https://www.phphelp.com/t/php-not-executing-just-showing-source/31945>\
**Category:** PHP Installation and Configuration\
**Created:** [May 25, 2020, 5:36pm UTC](https://www.phphelp.com/t/php-not-executing-just-showing-source/31945 "2020-05-25T17:36:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theyikes](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@theyikes](https://www.phphelp.com/u/theyikes)\
**Post date:** [May 25, 2020, 5:36pm UTC](https://www.phphelp.com/t/php-not-executing-just-showing-source/31945/1 "2020-05-25T17:36:15Z")

</div>

Hi! Before I begin I need to let you know I’m relatively new to php. I have apache installed and the current php release. Apache is running fine but when I try to execute a php file it just displays the source code to the php file.

Iv’e got no idea where to begin fixing this. Has anyone else had a similar experience?

---

<div class="post-metadata">

**Author:** ![theyikes](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@theyikes](https://www.phphelp.com/u/theyikes)\
**Post date:** [May 25, 2020, 8:17pm UTC](https://www.phphelp.com/t/php-not-executing-just-showing-source/31945/2 "2020-05-25T20:17:17Z")

</div>

Got it sorted. I started httpd from the command line and it gave me back error messages I could understand. Added lines to httpd.conf and php.ini.
