Jump to content

Ubuntu & PHP5 installation/configuration


poobear

Recommended Posts

Hi all,

 

I am trying to setup a web page that requires various PHP extension installed. I have used this before on Windows IIS 6.0/7.0/7.5.

 

It requires GD, IMAP (just to mention a few. I know in Windows you need to specify the folder that the extensions are installed within the php.ini file.

 

I have found a folder

 

 

/usr/lib/php5/20090626+lfs

 

 

But that appears to be a red herring. Can anyone point me in the correct direction and also if I need to specify the folder location at all on Ubuntu.

 

Al

Link to comment
Share on other sites

PHP will be configured to load extensions properly out of the box on Debian based systems, you do however have to install extensions as seperate packages.

 

See....

 

apt-cache search php

 

To see what extensions are available, then install them using....

 

sudo apt-get install php5-gd php5-imap

 

Don't forget to update your apt cache firstly.

 

sudo apt-get update

Link to comment
Share on other sites

  • 2 weeks later...

I can't remember but you can install GD this way:

sudo apt-get install php5-gd

/etc/init.d/apache2 restart

 

But i installed PHP with:

sudo apt-get install php5 libapache2-mod-php5

 

and GD and a ton of mods were included.

 

The php INI file is I believe here:

/etc/php5/apache2/php.ini

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.