Results 1 to 4 of 4

Thread: Installing PHP on Ubuntu

  1. #1
    Join Date
    Jan 2009
    Posts
    97

    Installing PHP on Ubuntu

    Hello friends,

    Have anybody got a better concept for installing php on ubuntu Linux? I have installed Apache already for this purpose (sudo apt-get install apache2 ).Then attempted to install with one method but it sucked all the way..At the same time wish to Install php 5.x.x if possible. Any ideas or inputs?

    thanks in advance for help..!!

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Installing PHP on Ubuntu

    I know that any kind of PHP development,Apache is a vital part of it. Try this quick way to get PHP up and running on your Ubuntu box.First, you’ll want to add the extra repositories to Ubuntu’s sources.list file.

    From a command shell, run the following commands:

    sudo apt-get install apache2

    sudo apt-get install php5

    sudo apt-get install libapache2-mod-php5

    sudo /etc/init.d/apache2 restart

    if apache is already installed you can avoid the first command.

  3. #3
    Join Date
    May 2008
    Posts
    2,680

    Re: Installing PHP on Ubuntu

    You better install libapache2-mod-php5,if Apache is not parsing the php after you restart.It automatically install when you install the php5 units, but may have been deleted inadvertently by units which want to run a other version of php.You may also required to enable it, by doing sudo a2enmod php5 followed by sudo /etc/init.d/apache2 restart. If sudo a2enmod php5 returns "$ This module does not exist!", you should purge the libapache2-mod-php5 package and reinstall it.

  4. #4
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Installing PHP on Ubuntu

    Using the package manager Synaptic, it should be within your menu somewhere.It may be nice idea to install Apache2 and php5 on ubuntu as a production environment in the next couple of days and I'm just going to install the ubuntu builds via Synaptic Package Manager. I've already installed the cli version of php5 this way and it works just fine.

Similar Threads

  1. Tips for installing ubuntu on netbook Ubuntu Netbook Remix
    By Calvin K in forum Operating Systems
    Replies: 1
    Last Post: 14-10-2010, 05:42 PM
  2. Need help. installing Ubuntu 10.04
    By jpeg22 in forum Operating Systems
    Replies: 1
    Last Post: 30-04-2010, 11:48 PM
  3. Getting OS X after installing ubuntu
    By Maya Angelou in forum Operating Systems
    Replies: 4
    Last Post: 27-04-2010, 11:29 AM
  4. Installing Ubuntu 9.10 on 32 bit
    By Mencarta in forum Operating Systems
    Replies: 4
    Last Post: 15-02-2010, 03:58 PM
  5. Installing Ubuntu on an Eee PC
    By Pyrotechnic in forum Guides & Tutorials
    Replies: 3
    Last Post: 17-04-2009, 06:12 PM

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
  •  
Page generated in 1,713,472,106.88040 seconds with 17 queries