Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

.php files wants to download

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
zumango
Posts: 3
Joined: Mon May 05, 2014 11:46 pm

.php files wants to download
  • Quote

Post by zumango » Mon May 05, 2014 11:55 pm

Hi
Just switching to VestaCP from cPanel.
Most of the install went OK. Created user and site. Default page loads fine when going to website url.
But it try to open any php file (phpinfo.php) it wants to download and not display. Searched all over and couldn't find the solution.
Centos6 - 64
Latest Vesta
Thanks
Top

GOD
Posts: 4
Joined: Tue May 06, 2014 7:20 am

Re: .php files wants to download
  • Quote

Post by GOD » Tue May 06, 2014 7:50 am

zumango wrote:Hi
Just switching to VestaCP from cPanel.
Most of the install went OK. Created user and site. Default page loads fine when going to website url.
But it try to open any php file (phpinfo.php) it wants to download and not display. Searched all over and couldn't find the solution.
Centos6 - 64
Latest Vesta
Thanks
Change Apache to phpcgi (or phpcgid if you prefer). You can still use nginx for the hosting option (just be sure that the php file extension is not listed under it)
Top

zumango
Posts: 3
Joined: Mon May 05, 2014 11:46 pm

Re: .php files wants to download
  • Quote

Post by zumango » Wed May 07, 2014 2:36 am

Thank you, GOD
:-)
What would be the best Apache and Nginx selection? Now I reinstalled everything and kept it at default and seems to be working.
About security I have installed CSF, Mod_Evasive and Fail2Ban. What else I can do?
Won't be using email from this server and disabled Dovecot and Exim.

Appreciate your help..
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password