Results 1 to 2 of 2

Thread: Trying to install php 5.4

  1. #1
    Join Date
    Sep 2015
    Beans
    4

    Question Trying to install php 5.4

    Hey,
    I'm currently working on a school project which requires me to use PHP version 5.4. However i'm kinda new to ubuntu ( and to Linux in general).
    My problem is that when i use sudo apt-get install php5 it will automatically install the latest recommended version which is at the moment 5.6.X. I did browse google for quite a bit but i cant seem to figure out how to install php 5.4,
    i hope you guys can help me!.
    -Lars

  2. #2
    Join Date
    Aug 2015
    Location
    USA
    Beans
    213
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Trying to install php 5.4

    Maybe this will help - http://tecadmin.net/install-php5-on-ubuntu/#

    These guys have set up a ppa for older versions of php. PHP 5.4 is the first on the page.

    Being that php is mostly backwards compatible I don't see why you would have a problem using the newest version, unless they have specifically said to use that specific version for some reason. I have been using php through a few versions and everything that I wrote in the past on older versions still work on the newest versions.

    Usually php runs on an Apache server, have you already set that up?
    Last edited by brian-mccumber; December 19th, 2015 at 12:39 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •