Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2011  |  syntax: None  |  size: 2.65 KB  |  views: 206  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. vps:~# sudo /etc/init.d/apache2 stop
  2. Stopping web server: apache2.
  3. vps:~# sudo apt-get remove --purge apache2 php5
  4. Reading package lists... Done
  5. Building dependency tree
  6. Reading state information... Done
  7. The following packages will be REMOVED:
  8.   apache2* php5*
  9. 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
  10. After this operation, 123kB disk space will be freed.
  11. Do you want to continue [Y/n]? y
  12. (Reading database ... 58556 files and directories currently installed.)
  13. Removing apache2 ...
  14. Removing php5 ...
  15. vps:~# sudo apt-get remove --purge libapache2-mod-php5
  16. Reading package lists... Done
  17. Building dependency tree
  18. Reading state information... Done
  19. The following packages will be REMOVED:
  20.   libapache2-mod-php5*
  21. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  22. After this operation, 5562kB disk space will be freed.
  23. Do you want to continue [Y/n]? y
  24. (Reading database ... 58547 files and directories currently installed.)
  25. Removing libapache2-mod-php5 ...
  26. ERROR: Module php5 does not exist!
  27. Purging configuration files for libapache2-mod-php5 ...
  28. dpkg - warning: while removing libapache2-mod-php5, directory `/etc/php5/apache2' not empty so not removed.
  29. vps:~# sudo apt-get install php5 apache2 libapache2-mod-php5
  30. Reading package lists... Done
  31. Building dependency tree
  32. Reading state information... Done
  33. The following NEW packages will be installed:
  34.   apache2 libapache2-mod-php5 php5
  35. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  36. Need to get 0B/2531kB of archives.
  37. After this operation, 5685kB of additional disk space will be used.
  38. Selecting previously deselected package apache2.
  39. (Reading database ... 58542 files and directories currently installed.)
  40. Unpacking apache2 (from .../apache2_2.2.9-10+lenny9_all.deb) ...
  41. Selecting previously deselected package libapache2-mod-php5.
  42. Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg.1-1+lenny9_i386.deb) ...
  43. Selecting previously deselected package php5.
  44. Unpacking php5 (from .../php5_5.2.6.dfsg.1-1+lenny9_all.deb) ...
  45. Setting up apache2 (2.2.9-10+lenny9) ...
  46. Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny9) ...
  47.  
  48. Creating config file /etc/php5/apache2/php.ini with new version
  49. Reloading web server config: apache2Setting up php5 (5.2.6.dfsg.1-1+lenny9) ...
  50. vps:~# sudo /etc/init.d/apache2 start
  51. Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
  52. no listening sockets available, shutting down
  53. Unable to open logs
  54.  failed!
  55. vps:~#
  56. vps:~# sudo a2enmod php5
  57. Module php5 already enabled
  58. vps:~# sudo /etc/init.d/apache2 force-reload
  59. Reloading web server config: apache2vps:~#
  60. vps:~#