PHP5FromSource

Differences between revisions 8 and 9
Revision 8 as of 2006-06-05 03:01:44
Size: 26
Editor: S0106000fb085cc63
Comment: redirect page\
Revision 9 as of 2006-08-02 20:16:09
Size: 1168
Editor: 207
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#REDIRECT ApacheMySQLPHP 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.

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.