If you run EasyApache compile for PHP5 only (without PHP4), you shouldn't have PHP4 installed on your server.
However, as far as removing an existing PHP4 installation, you will need to remove those files manually.
First thing you need to do is go ahead and make sure that your system has PHP5 up and running correctly and then log into your SSH shell and delete
the binaries for PHP4 from your server.
Here is a simple script to help you with that:
Code:
#!/bin/bash
IFS="$"
PDSO="/usr/local/apache/modules/libphp4.so"
CGIA="/usr/local/php4"
CGIB="/usr/php4"
for PHP in ${PDSO} ${CGIA} ${CGIB}; do
if [ -f ${PHP} ]; then
echo "Found ${PHP} : Deleting binary file ..."
rm -f ${PHP}
fi
done
if [ -d /usr/local/php4 ]; then
echo "Removing PHP4 folder in /usr/local/php4 ..."
rm -Rf /usr/local/php4/*
rmdir /usr/local/php4
fi
echo "You should review the following files and remove PHP4 references ..."
echo "/usr/local/apache/conf/httpd.conf"
echo "/usr/local/apache/conf/php.conf"
if [ -f /opt/suphp/etc/suphp.conf ]; then
echo "/opt/suphp/etc/suphp.conf"
fi
# End of Script