Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

Why is PHP not running on my apache2 server [closed]

$
0
0

I am trying to set up a login and signup page for a website I am working on. I am using the APACHE 2 server and MYSQL database in Ubuntu. I wrote the HTML and PHP code in separate files, creating four files. Now when I open signup.HTML and fill in the credentials and click signup, it is open the signup.PHP file in the text editor rather than executing the code. I have already tried to go through the Apache error log, activated PHP 8.1 module and checked for any syntax error. Especially in the error log there are no PHP related problem what-so-ever. What may I do in this peculiar situation?

I expected the program to execute as normal as soon as i clicked the signup button, it open the file> It is like when you open a website and instead of opening the interface it just open the source code


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>