Announcement

Collapse
No announcement yet.

remove php5

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    remove php5

    how can i remove php5?

    I tried it by typing in sudo aptitude remove php5.
    And it remove a package called php5 but if i go with my browser to http://localhost/phpinfo.php (this is a file that i made) then i still display's that i 'm using php5.2.1.

    How can i remove this php5.2.1
    I have installed it with aptitude!
    Fat_lu is in tha house!

    #2
    Re: remove php5

    pls, open up a konsole (widen it as much as possible) and issue:

    Code:
    dpkg-query -l '*php*'
    then post the result back here.

    cheers.
    gnu/linux is not windoze

    Comment


      #3
      Re: remove php5

      Code:
      Desired=Unknown/Install/Remove/Purge/Hold
      | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
      |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
      ||/ Name             Version           Description
      +++-============================-============================-========================================================================
      un libapache-mod-php4      <none>            (no description available)
      un libapache-mod-php5      <none>            (no description available)
      un libapache2-mod-php4     <none>            (no description available)
      ii libapache2-mod-php5     5.2.1-0ubuntu1.4       server-side, HTML-embedded scripting language (apache 2 module)
      un php-pear           <none>            (no description available)
      un php4             <none>            (no description available)
      un php4-cgi           <none>            (no description available)
      un php4-gd           <none>            (no description available)
      un php4-mcrypt         <none>            (no description available)
      un php4-mysql          <none>            (no description available)
      pn php5             <none>            (no description available)
      un php5-cgi           <none>            (no description available)
      un php5-cli           <none>            (no description available)
      ii php5-common         5.2.1-0ubuntu1.4       Common files for packages built from the php5 source
      un php5-gd           <none>            (no description available)
      un php5-mcrypt         <none>            (no description available)
      ii php5-mysql          5.2.1-0ubuntu1.4       MySQL module for php5
      un php5-mysqli         <none>            (no description available)
      un phpapi-20060613+lfs     <none>            (no description available)
      ii phpmyadmin          2.9.1.1-2ubuntu1       Administrate MySQL over the WWW
      This is what I get
      Fat_lu is in tha house!

      Comment


        #4
        Re: remove php5

        My guess (to be cross-checked prior to possible acceptance ...):

        Code:
        apt-get [--purge] remove libapache2-mod-php5 php5-common php5-mysql [phpmyadmin]

        Comment


          #5
          Re: remove php5

          i only want to remove php5.1.2 Not phpmyadmin or mysql.

          Is you re command still valid then?
          Fat_lu is in tha house!

          Comment


            #6
            Re: remove php5

            square brackets = optional.

            though, if you want to remove php5, it doesn't make much sense keeping things that depend on it.
            this is why i had you post the result of the dpkg-query: to see what was installed in relation to php5
            and this is why unicornrider suggests to remove a few other packages.

            you can double check the lists of dependencies in each package's properties in adept/synaptic.
            or, from command line, with:
            Code:
            sudo dpkg-query -s <package_name> | grep -i depends
            hth
            cheers
            gnu/linux is not windoze

            Comment


              #7
              Re: remove php5

              I'm going to install php5.2.3 with the tar file of the website. So i can update php when ever I want. That is why i want to remove php5.1.2 and after that install 5.2.3
              Fat_lu is in tha house!

              Comment


                #8
                Re: remove php5

                so my question is.
                How can i remove php5.1.2 but not remove it's connection to mysql and apache?
                Fat_lu is in tha house!

                Comment


                  #9
                  Re: remove php5

                  Code:
                  sudo apt-get remove php5-common --purge

                  ps:
                  it's been a bit since i developed something in php...
                  what is new in php5.2.3 that makes you want to remove the stock php5.1.2?
                  cheers
                  gnu/linux is not windoze

                  Comment

                  Working...
                  X