homepage Welcome to WebmasterWorld Guest from 54.167.75.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Installing PHP on Ubuntu
Any good tuts?
adni18




msg:909433
 5:38 pm on Feb 25, 2006 (gmt 0)

Hey. Does anybody have a good link to a tutorial for installing PHP on Ubuntu Linux? I have installed Apache already, using

sudo apt-get install apache2

[found on ubuntuguide.org]

And I tried using this to install PHP:


sudo apt-get install php4
sudo /etc/init.d/apache2 restart
sudo gedit /var/www/testphp.php

but it didn't work. Besides, I would like to install PHP 5.x.x if possible. Any ideas or tutorials maybe?

 

Birdman




msg:909434
 9:22 pm on Feb 26, 2006 (gmt 0)

I found this:

You can get nice up to date PHP5 packages which work well in Ubuntu Hoary by adding the following lines to your /etc/apt/sources.list

deb [people.debian.org...] php5.0 hoary
deb-src [people.debian.org...] php5.0 hoary

Just run apt-get update and then they will appear in apt.

Then you should be able to:

sudo apt-get install php5
sudo /etc/init.d/apache2 restart
sudo gedit /var/www/testphp.php

You'll need to verify that /var/www is where your server is looking for requests. In my Apache install it was /var/www/localhost/htdocs by default, which I changed in my httpd.conf (Apache configuration file).

You're probably gonna need mod_php too:

sudo apt-get install libapache2-mod-php4(or 5)

Longhaired Genius




msg:909435
 9:59 pm on Feb 26, 2006 (gmt 0)

I'm going 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved