Page 1 of 1

.php files wants to download

Posted: Mon May 05, 2014 11:55 pm
by zumango
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

Re: .php files wants to download

Posted: Tue May 06, 2014 7:50 am
by GOD
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)

Re: .php files wants to download

Posted: Wed May 07, 2014 2:36 am
by zumango
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..