larry29936 Posted March 21, 2020 Share Posted March 21, 2020 (edited) Since I installed apache2, php, and phpmyadmin on my linux machine when I click on a .php file it downloads instead of opening in a web browser. It didn't do this prior to the install, so I suspect it's a config error. Can someone help me on this? Thanks in advance, Larry Edited March 21, 2020 by larry29936 Quote Link to comment https://forums.phpfreaks.com/topic/310339-need-help-when-i-click-on-php-file-it-downloads-instead-of-opening-in-web-browser/ Share on other sites More sharing options...
requinix Posted March 29, 2020 Share Posted March 29, 2020 It didn't do what prior to what install? It almost sounds like you're saying you had PHP working before you installed Apache and PHP... If you're using php-fpm (which you generally should be) then you need to tell Apache that it should run .php files through the service. Check the online documentation for how. If you're using mod_php then I'm pretty sure you haven't actually installed it. Beyond that, it depends what operating system you're using. Quote Link to comment https://forums.phpfreaks.com/topic/310339-need-help-when-i-click-on-php-file-it-downloads-instead-of-opening-in-web-browser/#findComment-1576016 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.