Can I remove /etc/php/5.6 after I purged php5.6-common?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I tried to install the php5.6 besides php7.0 of the ondrej repository on my Ubuntu Root-Server Version 16.04.



Both PHP-Versions doesn't work for me like expected and I decide to deinstall that ondrej php5.6 package. After some weeks I found an entry in my var/mail/root file, where some lines like this was:



PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/mysqlnd.so' - /usr/lib/php/20131226/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0


I searched askubuntu and found this:



apt list --installed


In the following list I found that lines:



php5.6-cli/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
php5.6-common/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
php5.6-json/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
php5.6-opcache/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
php5.6-readline/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]


It tells me that my deinstallation doesn't work, so i askubuntu again ;)



With



apt-get purge php5.6-common


the 5 lines was no more found in apt list --installed. And the folder /usr/lib/php/20131226 was also removed.



But I got those Error messages:



Purging configuration files for php5.6-cli (5.6.33- 
3+ubuntu16.04.1+deb.sury.org+1) ...

dpkg: warning: while removing php5.6-cli, directory
'/etc/php/5.6/cli/conf.d' not empty so not removed


and



Purging configuration files for php5.6-common (5.6.33- 
3+ubuntu16.04.1+deb.sury.org+1) ...

dpkg: warning: while removing php5.6-common, directory '/etc/php/5.6/mods-
available' not empty so not removed


My question is: Can I delete /etc/php/5.6 folder with rm -r 5.6 or do I getting errors then?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I tried to install the php5.6 besides php7.0 of the ondrej repository on my Ubuntu Root-Server Version 16.04.



    Both PHP-Versions doesn't work for me like expected and I decide to deinstall that ondrej php5.6 package. After some weeks I found an entry in my var/mail/root file, where some lines like this was:



    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/mysqlnd.so' - /usr/lib/php/20131226/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0


    I searched askubuntu and found this:



    apt list --installed


    In the following list I found that lines:



    php5.6-cli/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
    php5.6-common/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
    php5.6-json/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
    php5.6-opcache/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
    php5.6-readline/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]


    It tells me that my deinstallation doesn't work, so i askubuntu again ;)



    With



    apt-get purge php5.6-common


    the 5 lines was no more found in apt list --installed. And the folder /usr/lib/php/20131226 was also removed.



    But I got those Error messages:



    Purging configuration files for php5.6-cli (5.6.33- 
    3+ubuntu16.04.1+deb.sury.org+1) ...

    dpkg: warning: while removing php5.6-cli, directory
    '/etc/php/5.6/cli/conf.d' not empty so not removed


    and



    Purging configuration files for php5.6-common (5.6.33- 
    3+ubuntu16.04.1+deb.sury.org+1) ...

    dpkg: warning: while removing php5.6-common, directory '/etc/php/5.6/mods-
    available' not empty so not removed


    My question is: Can I delete /etc/php/5.6 folder with rm -r 5.6 or do I getting errors then?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I tried to install the php5.6 besides php7.0 of the ondrej repository on my Ubuntu Root-Server Version 16.04.



      Both PHP-Versions doesn't work for me like expected and I decide to deinstall that ondrej php5.6 package. After some weeks I found an entry in my var/mail/root file, where some lines like this was:



      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/mysqlnd.so' - /usr/lib/php/20131226/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0


      I searched askubuntu and found this:



      apt list --installed


      In the following list I found that lines:



      php5.6-cli/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-common/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-json/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-opcache/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-readline/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]


      It tells me that my deinstallation doesn't work, so i askubuntu again ;)



      With



      apt-get purge php5.6-common


      the 5 lines was no more found in apt list --installed. And the folder /usr/lib/php/20131226 was also removed.



      But I got those Error messages:



      Purging configuration files for php5.6-cli (5.6.33- 
      3+ubuntu16.04.1+deb.sury.org+1) ...

      dpkg: warning: while removing php5.6-cli, directory
      '/etc/php/5.6/cli/conf.d' not empty so not removed


      and



      Purging configuration files for php5.6-common (5.6.33- 
      3+ubuntu16.04.1+deb.sury.org+1) ...

      dpkg: warning: while removing php5.6-common, directory '/etc/php/5.6/mods-
      available' not empty so not removed


      My question is: Can I delete /etc/php/5.6 folder with rm -r 5.6 or do I getting errors then?










      share|improve this question















      I tried to install the php5.6 besides php7.0 of the ondrej repository on my Ubuntu Root-Server Version 16.04.



      Both PHP-Versions doesn't work for me like expected and I decide to deinstall that ondrej php5.6 package. After some weeks I found an entry in my var/mail/root file, where some lines like this was:



      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/mysqlnd.so' - /usr/lib/php/20131226/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0


      I searched askubuntu and found this:



      apt list --installed


      In the following list I found that lines:



      php5.6-cli/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-common/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-json/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-opcache/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]
      php5.6-readline/now 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,local]


      It tells me that my deinstallation doesn't work, so i askubuntu again ;)



      With



      apt-get purge php5.6-common


      the 5 lines was no more found in apt list --installed. And the folder /usr/lib/php/20131226 was also removed.



      But I got those Error messages:



      Purging configuration files for php5.6-cli (5.6.33- 
      3+ubuntu16.04.1+deb.sury.org+1) ...

      dpkg: warning: while removing php5.6-cli, directory
      '/etc/php/5.6/cli/conf.d' not empty so not removed


      and



      Purging configuration files for php5.6-common (5.6.33- 
      3+ubuntu16.04.1+deb.sury.org+1) ...

      dpkg: warning: while removing php5.6-common, directory '/etc/php/5.6/mods-
      available' not empty so not removed


      My question is: Can I delete /etc/php/5.6 folder with rm -r 5.6 or do I getting errors then?







      16.04






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 at 14:31

























      asked Mar 20 at 12:15









      MonTea

      1085




      1085

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017609%2fcan-i-remove-etc-php-5-6-after-i-purged-php5-6-common%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017609%2fcan-i-remove-etc-php-5-6-after-i-purged-php5-6-common%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491