PHP5FromSource

Differences between revisions 9 and 10
Revision 9 as of 2006-08-02 20:16:09
Size: 1168
Editor: 207
Comment:
Revision 10 as of 2008-08-06 16:14:11
Size: 1168
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Download the PHP source from http://php.net. It will be in compressed format, so decompress it using the related utility for whichever compression format you choose to download.

From the root of the decompressed folder, type the command below and append whatever additional parameters are needed to configure the installation to your liking.

./configure

Any issues at this point should be the result of not having needed packages installed for any additional configurations you specified earlier. Install packages and repeat this process as necessary until the process completes successfully.

Now type:

make

You have two options at this point:

1) This is the recommended method, as it allows for easy uninstallation. Make sure the checkinstall package is installed, then type:

sudo checkinstall

2) Type:

sudo make install

Once this is done, type this:

ln -s /usr/local/bin/php /usr/bin/php

Not doing this will result in an error similar to the following.

bash: /usr/bin/php: No such file or directory

Once this is done, you should be able to use PHP normally.

PHP5FromSource (last edited 2008-08-06 16:14:11 by localhost)