I found this script in another post about fixing PHP that has not been installed during the Apache build.
[code:1:c0d94f85da]
#!/bin/bash
cd /tmp
rm -rf php-4.0.6
echo &##############################################&
echo &# PHP 4.0.6 BUILDER #&
echo &##############################################&
echo &[GRABBING SOURCE CODE FROM PHP.NET]&
wget -q http://php.net/do_download.php?download_file=php-4.0.6.tar.gz&source_site=www.php.net
echo &--& got it&
echo &[DECOMPRESSING]&
tar -xzf php-4.0.6.tar.gz
echo &--& done&
cd php-4.0.6
echo &[CONFIGURING PHP]&
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp --with-gd --with-zlib --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-xpm-dir=/usr/X11R6 --with-swf=/usr/local/flash --enable-magic-quotes --with-mysql --enable-safe-mode --enable-track-vars --with-ttf --enable-versioning --with-mcrypt --enable-sockets --enable-calendar --with-ming
echo &--& PHP Configured&
echo &[BUILDING BINARY]&
make
echo &--& Binary Built&
echo &If no errors have occured above, you can now run the command 'make install'.&
[/code:1:c0d94f85da]
Is this how to install php if it's missing on the server?
How do you execute this script??
I know there is a thread on this but I don't think it's being noticed. I see a lot of people having this problem and hope this is the solution.
[code:1:c0d94f85da]
#!/bin/bash
cd /tmp
rm -rf php-4.0.6
echo &##############################################&
echo &# PHP 4.0.6 BUILDER #&
echo &##############################################&
echo &[GRABBING SOURCE CODE FROM PHP.NET]&
wget -q http://php.net/do_download.php?download_file=php-4.0.6.tar.gz&source_site=www.php.net
echo &--& got it&
echo &[DECOMPRESSING]&
tar -xzf php-4.0.6.tar.gz
echo &--& done&
cd php-4.0.6
echo &[CONFIGURING PHP]&
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp --with-gd --with-zlib --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-xpm-dir=/usr/X11R6 --with-swf=/usr/local/flash --enable-magic-quotes --with-mysql --enable-safe-mode --enable-track-vars --with-ttf --enable-versioning --with-mcrypt --enable-sockets --enable-calendar --with-ming
echo &--& PHP Configured&
echo &[BUILDING BINARY]&
make
echo &--& Binary Built&
echo &If no errors have occured above, you can now run the command 'make install'.&
[/code:1:c0d94f85da]
Is this how to install php if it's missing on the server?
How do you execute this script??
I know there is a thread on this but I don't think it's being noticed. I see a lot of people having this problem and hope this is the solution.