Page 1 of 1

PHP source directory location

Posted: Sun May 31, 2009 7:22 am
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.

Re: PHP source directory location

Posted: Sun May 31, 2009 9:14 am
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