0

I wanted php5.5 on my Debian 7 server so I added the Dotdeb repository to my sources.list since they have php5.5 in their repository

I first removed the defualt php5.4 which come with Debian 7 and after that I installed php5.5 by running

apt-get install php5

I know php 5.5 is installed by running

php -v

but now my php webpages do not get interpreted by php. How can I fix this issue?

I have tried re installing apache as well but it did not fix the issue.

9
  • try sudo apt-get install libapache2-mod-php5 -> service apache2 restart Commented Jul 21, 2014 at 21:30
  • @dave I tried that. I even removed apache and re installed it. Commented Jul 21, 2014 at 21:34
  • thats strange, my next step would be to delete everything and try with apt-get install lamp-server^ and then remove mysql if you dont need it Commented Jul 21, 2014 at 21:36
  • Check if PHP5 module/service is configured to be loaded in web server. Commented Jul 21, 2014 at 21:43
  • @dvm which file do I need to check for that? Commented Jul 21, 2014 at 21:47

1 Answer 1

1

For anyone else who runs into this problem. Here is how I solved issue.

Run this command

a2enmod php5
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.