# Mautic 5 VPS See only content of index.php

**URL:** <https://forum.mautic.org/t/mautic-5-vps-see-only-content-of-index-php/30510>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 15, 2024, 7:32pm UTC](https://forum.mautic.org/t/mautic-5-vps-see-only-content-of-index-php/30510 "2024-01-15T19:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdiver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mcdiver/32/6618_2.png) [@mcdiver](https://forum.mautic.org/u/mcdiver)\
**Post date:** [January 15, 2024, 7:32pm UTC](https://forum.mautic.org/t/mautic-5-vps-see-only-content-of-index-php/30510/1 "2024-01-15T19:32:24Z")

</div>

Good evening Mautic-Community (at least, where I am is evening 😉 )

My Mautic version is: 5.0.1  
My PHP version is: 8.1  
My Database type and version is: MySQL

My problem is:  
After setting up a VPS (apache2) with Mautic, I want to go to the login page and setup Mautic itself. Unfortunately, I simply see the content of the index.php file in my browser.

These errors are showing in the log: No log available, probably because nothing happend yet

Steps I have tried to fix the problem:  
I checked the permissions of www-data in /var/www and set it correctly  
Checked all firewalls  
Checked the .conf in sites-available  
I tried to add manually /index.php/installer but without success

I think, it is not much wrong, but unfortunately I cannot find the last bit, which is missing. Thank you for your comments!

Kind regards,  
mcdiver

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 16, 2024, 9:48am UTC](https://forum.mautic.org/t/mautic-5-vps-see-only-content-of-index-php/30510/2 "2024-01-16T09:48:21Z")

</div>

Hi there!

It sounds like there’s something wrong with how you’ve set up your server.

First hit on Google was this:

> <https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-but-the-code-shows-in-the-browser-source-code>

Maybe the selected answer might give you some pointers?

---

<div class="post-metadata">

**Author:** ![mcdiver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mcdiver/32/6618_2.png) [@mcdiver](https://forum.mautic.org/u/mcdiver)\
**Post date:** [January 16, 2024, 5:39pm UTC](https://forum.mautic.org/t/mautic-5-vps-see-only-content-of-index-php/30510/3 "2024-01-16T17:39:12Z")

</div>

Hey thank you the pointer was succesful!  
I then found this method: [https://linuxconfig.org/linux-apache-not-executing-php-files-solution](https://linuxconfig.org/linux-apache-not-executing-php-files-solution)

So now I have been able to setup mautic, but unfortunately after the setup comes a 404 for my mautic instance. This is what I am currently investigating
