Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    194
    cPanel/Enkompass Access Level

    Root Administrator

    Default PHP 4 Removal

    Deselecting PHP 4 when recompiling Apache does not remove PHP 4 from the server.

    How can we completely remove all traces of php 4 from the server and disable it using EasyApache?

  2. #2
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    504

    Default

    How can we completely remove all traces of php 4 from the server and disable it using EasyApache?
    A manual way is to run a find command on php4, verify the files that it finds and then remove them. It will be something like:

    find /usr -name php4* (To get the list of files)

    find /usr -name php4* | xargs rm -rvf (To delete the php4 files/folders)

    As far as disabling it in EasyApache, I don't think its possible unless cPanel stops supporting PHP4.

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    194
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Isn't it possible for EasyApache to remove all the files from the server since it's not selected any longer? I don't mean remove support for it, but remove php4 files from the server.

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    111

    Default

    I remember I had this happen to me where PHP4 was installed and when attempting to fully uninstall it it was literally a mission. I think a ticket to cPanel and they will go in and remove it all for you.

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    38

    Default

    Same problem, how do we uninstall php4?

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Brandonm View Post
    Same problem, how do we uninstall php4?
    There is no automated tool for removing the PHP 4 binaries etc. at this time. PHP 4 needs to be removed manually.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    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

  8. #8
    Member FeeL's Avatar
    Join Date
    Apr 2004
    Location
    Rio de janeiro
    Posts
    142
    cPanel/Enkompass Access Level

    Reseller Owner

    Default Re: PHP 4 Removal

    Still no way of removing it, using cpanel itself?
    -----------
    FeeL Buarque
    SysAdmin.

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    de profundis
    Posts
    5,402
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PHP 4 Removal

    Correct, PHP 4 is not removed upon deselecting it from EasyApache. The same holds true for PostgreSQL, Tomcat and a slew of other components. If you select to have them not compile after initial installation, the components remain on the machine. This is likely due to the fact that you might later change your mind and want the contents as a backup.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Removal
    By fuckcpanel in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 06-18-2005, 09:26 AM
  2. TOMCAT removal
    By s_2_s in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-10-2005, 06:40 AM
  3. sub domain removal
    By kirkmiesle in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-09-2004, 08:07 PM
  4. Interchange Removal
    By ukhost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-24-2003, 10:51 AM
  5. Directory Removal
    By jackal in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-02-2003, 07:26 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube