Results 1 to 6 of 6

Thread: PHP4 installation

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    PHP4 installation

    I am currently in a web development class and the server we have to submit assignments on is using PHP4. Doing all my PHP work on the school's VPN has been unbearably slow so I would like to install PHP4 on my own computer to speed things up. The only problem is that the Karmic repositories only have PHP5. What repositories do I need to add to install PHP4 instead? Does anyone have any good links to guides on PHP4 installation?

  2. #2
    Join Date
    Apr 2007
    Location
    Souf Cackalacky
    Beans
    603
    Distro
    Ubuntu Development Release

    Re: PHP4 installation

    You'll probably need to compile php4 yourself. Check out the php website for more.

    Don't worry, it won't be too hard. A few tips: you'll need to

    sudo apt-get install build-essential

    which will give you gcc, g++, etc.
    and probably

    sudo apt-get build-dep php5

    which will build the dependencies of php automatically, so you only have to compile php4 itself.
    Last edited by fluffman86; November 18th, 2009 at 12:56 AM.

  3. #3
    Join Date
    Nov 2009
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PHP4 installation

    I have been looking around for PHP4 downloads and have had no luck so far. Everything I find that talks about PHP4 is too old to be helpful, and everything else I can find is PHP5.

  4. #4
    Join Date
    Dec 2009
    Beans
    1

    Re: PHP4 installation

    Quote Originally Posted by Yarui View Post
    I have been looking around for PHP4 downloads and have had no luck so far. Everything I find that talks about PHP4 is too old to be helpful, and everything else I can find is PHP5.

    Did you ever get an answer to this? I am also looking for how to install php4 on karmic.

  5. #5
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    Re: PHP4 installation

    Here's how you can install PHP4 in Ubuntu:

    1. Install dependencies for PHP4.

    Code:
    sudo apt-get install build-essential flex bison libicu-dev libxml2-dev
    2. Download PHP4 Source.

    Code:
    wget http://www.php.net/get/php-4.4.9.tar.gz/from/this/mirror
    3. Configure Makefile for compilation.

    Code:
    ./configure --with-mysql
    You can find more compile options by running:

    Code:
    ./configure --help
    4. Compile it.

    Code:
    make
    5. Install it.

    Code:
    sudo make install
    Laptop broke ...

  6. #6
    Join Date
    Sep 2009
    Beans
    194
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: PHP4 installation

    PHP4 code will run fine if you have PHP5 installed. All code is backwards compatible, so install PHP5 on your system. Run your PHP4 code that you are learning in class on your PHP5 system. And submit your PHP files to your teacher just as you do normally. There is no way your teacher can know that you are using PHP5 at home and you should have no issues.
    lewisforlife

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
  •