• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1009
  • Last Modified:

Ubuntu & PHP5 installation/configuration

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

Open in new window


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
0
2Cs
Asked:
2Cs
  • 3
  • 3
  • 2
1 Solution
 
zicevaCommented:
You should not change that ...

You can install extensions simply by issuing :

sudo apt-get install php5-gd
sudo apt-get install php5-imap

(dunno if this are the exact module names ... you could do apt-cache search php | grep imap .... etc)
0
 
zicevaCommented:
the extensions will be placed in the folder you identified ...
0
 
torimarCommented:
You might want to check out this resource:
http://www.krahn.org/2010/06/installing-ubuntu-10-04-lucid-lynx-for-php-development/

(The author sets up Ubuntu in a virtual machine, so skip the first section).
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
2CsAuthor Commented:
Ziceva,

I have already used that command:

"sudo apt-get install php5-gd
sudo apt-get install php5-imap"

But didn't work as when I am in the directory I mentioned those files are not present.
0
 
zicevaCommented:
what was the output of those commands? were there any errors?
If everything went ok, then you can search for the modules by issuing:

sudo updatedb
(this may take a while ... specially if you have a big filesystem)

then do

sudo locate gd.so
or
sudo locate imap.so

You should be able to see were those files went and move them (or better create simlinks) in the extensions folder
0
 
2CsAuthor Commented:
Appears PHP5 doesn't support mailparse. Unless anyone can prove me wrong?

Al
0
 
torimarCommented:
Check out this guide: Ubuntu PHP Reqs and Mailparse Install  -  http://www.cerb4.com/forums/showthread.php?t=244
0
 
2CsAuthor Commented:
Hi all,

Already tried those suggestions and still couldn't get it to work. I have gone back to PHP4 as Cerb4 is still available.

Al
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now