Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

UNIX – Remove Apache, MySQL & PHP

Posted on October 30, 2015October 30, 2015 By David Kittell

WARNING – THIS WILL REMOVE WITHOUT PROMPT

dpkg -l *apache* *php* *mysql* phpmyadmin | grep ^ii | awk '{ print $2}' | xargs sudo apt-get -y purge --auto-remove
rm -r /etc/apache2
rm -r /etc/php5
rm -r /etc/mysql
sudo apt-get --assume-yes purge apache* php* mysql* phpmyadmin
sudo apt-get --assume-yes autoremove
sudo apt-get --assume-yes update && sudo apt-get --assume-yes upgrade && sudo apt-get --assume-yes check && sudo apt-get --assume-yes autoremove && sudo apt-get --assume-yes autoclean && sudo apt-get --assume-yes clean
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

Ektron – Widget Form

Posted on March 5, 2014October 26, 2015

In the recent upgrade from Ektron 8.0.2 to 8.7 I’ve been rebuilding forms to user controls that can be used as widgets. Below is basic elements to make the form work for your Ektron 8.7 (possibly higher). Please note the TextBox SubmissionEmail, this allows you to change the email address…

Read More

printDiv

Posted on February 21, 2013October 26, 2015

function printDiv(divName) { var printContents = document.getElementById(divName).innerHTML; var originalContents = document.body.innerHTML; document.body.innerHTML = printContents; window.print(); document.body.innerHTML = originalContents; } <input type=’button’ value=’Print This Only’ onclick=’printDiv(example);’/> Originally Posted on February 21, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any…

Read More

Calendar Event List

Posted on July 19, 2013October 26, 2015

SELECT content_title , — Get Start Date And Time – Start LEFT(REPLACE(REPLACE(CAST(content_html AS VARCHAR(250)), LEFT(CAST(content_html AS VARCHAR(250)), 116), ”), substring(REPLACE(CAST(content_html AS VARCHAR(250)), LEFT(CAST(content_html AS VARCHAR(250)), 116), ”), patindex(‘%</StartTime>%’, REPLACE(CAST(content_html AS VARCHAR(250)), LEFT(CAST(content_html AS VARCHAR(250)), 116), ”)), DATALENGTH(REPLACE(CAST(content_html AS VARCHAR(250)), LEFT(CAST(content_html AS VARCHAR(250)), 116), ”))), ”), 10) AS StartDate ,RIGHT(REPLACE(REPLACE(CAST(content_html AS…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes