-1

I just upgraded my Ubuntu server 12.x to 14.04, which upgraded the PHP to 5.5.9 - and now my core LAMP application doesn't work.

Is there a way to tweak my server's PHP settings, to serve up legacy PHP code? I think this is zend framework. I am not a PHP developer.

zoomiest
  • 1
  • 1
  • which kind of error do you have? cause if i remember correctly on php 5.5 short_tag get turned off by default, maybe can be the cause... if that's the case go /etc/php5/apache2/php.ini and enable short tag, after that restart apache2 ^_^ – Aliceiw Oct 10 '14 at 13:54
  • 1
    "my core LAMP application doesn't work." Some error messages would be nice. As it stands your problem is too broad. – sjagr Oct 10 '14 at 13:54
  • You can install a second (or third, fourth, fifth, etc.) version of PHP using [phpfarm](https://github.com/cweiske/phpfarm). – i alarmed alien Oct 10 '14 at 13:54

1 Answers1

0

Try adding the line

AddType x-httpd-php54 .php

to your .htaccess file

It's supported by most servers

andrew
  • 9,313
  • 7
  • 30
  • 61
  • you are a rockstar. You solved my problem! I can now see my system!!!! The PHP white screen of death has been overcome. Thank you for this suggestion, 4 years ago!!! – zoomiest Dec 18 '18 at 11:27