Solved

Ubuntu & PHP5 installation/configuration

Posted on 2010-09-23
8
983 Views
Last Modified: 2013-12-13
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
Comment
Question by:2Cs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 7

Expert Comment

by:ziceva
ID: 33745399
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
 
LVL 7

Expert Comment

by:ziceva
ID: 33745424
the extensions will be placed in the folder you identified ...
0
 
LVL 35

Expert Comment

by:torimar
ID: 33750881
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 5

Author Comment

by:2Cs
ID: 33751721
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
 
LVL 7

Expert Comment

by:ziceva
ID: 33751795
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
 
LVL 5

Author Comment

by:2Cs
ID: 33780457
Appears PHP5 doesn't support mailparse. Unless anyone can prove me wrong?

Al
0
 
LVL 35

Expert Comment

by:torimar
ID: 33788649
Check out this guide: Ubuntu PHP Reqs and Mailparse Install  -  http://www.cerb4.com/forums/showthread.php?t=244
0
 
LVL 5

Accepted Solution

by:
2Cs earned 0 total points
ID: 33799475
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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The viewer will learn how to count occurrences of each item in an array.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question