PHP source directory location

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
boon4376
Forum Newbie
Posts: 19
Joined: Sun Oct 01, 2006 9:55 pm

PHP source directory location

Post by boon4376 »

Where is the PHP source directory location in ubuntu?

I have installed ubuntu 9.04 LAMP server, then installed ubuntu-dektop GUI

Now i have installed imagemagick, and im trying to install magickwand... But magickwand wants me to extract the package to the PHP source directory, and i cannot find it....

I know php is working because i've tested some code in the www folder.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PHP source directory location

Post by Weirdan »

By default there's no php source directory in Ubuntu because Ubuntu is a binary package based distro. You can install php5-dev package and compile the magickwand extension, then plug it into existing php install. For this you don't need to copy it anywhere - just unzip it, cd to the directory it created and run

Code: Select all

 
phpize && ./configure && make && sudo make install
 
Post Reply