Q . Installed php in ubuntu 14.04 but not executing.

Brad Johnson. asked, Dec 27 ' 2015

Hi 

I have installed php 5.5 in ubuntu 14.04 but is not executing in the server. All the php code is showing in the browser. I really appreciate if any one will help me.

  • PHP
  • install
  • execution

1 Answers

Typing:

sudo apt-get install apache2 php5 libapache2-mod-php5

will install everything you need and will start the apache server with support for PHP.

To verify that the php module is loaded, type:

a2query -m php5

if not enabled, then load with:

sudo a2enmod php5

and restart apache:

sudo service apache2 restart

 

Note :- Even if it is not working than read carefully the errors in the terminal and install all the dependecy packages.

Leave a Ansewer