Why is PHP file getting downloaded instead of running?
Why is PHP file getting downloaded instead of running? If PHP files are getting downloaded from your stack, this simply means Apache is not processing php files, it is just treating then as files. Some browsers show php as text and some downloads it. First check on console that php is available or not by php -v if it gives you version then check in httpd. How do I make my PHP file downloadable? There are a few different methods you can do this , my favorite is PHP-based . Start by creating a new file on your server or...