Jump to content
#StayAtHome ×

Need help - when I click on .php file it downloads instead of opening in web browser

Recommended Posts

Posted (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,

Edited by larry29936

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.