Article 5PF7Q Purge Script

Purge Script

by
TBotNik
from LinuxQuestions.org on (#5PF7Q)
All,

With me having so many issues with the whole LAMP stack, I decided I needed to purge all of it and start over, so looked online and found a partial code set to get it done. I've put all that into a script to round out and automate the process, which I've posted at:

https://pastebin.com/2A020262

What I need here, since this is a "drastic action" script, is review from you gurus, to see if my script is on point, accurate and any comments or tweaks needed. As you can read from the comments I put in, the functions "ilamp_ins" and "ipgdb_ins" are where, I feel, the attention is needed.

I am writing this script to actually solve all the problems I posted at:
linuxquestions.org/questions/showthread.php?p=6250772#post6250772
linuxquestions.org/questions/linux-software-2/apache-not-sure-4175689230/
linuxquestions.org/questions/linux-software-2/mysql-not-working-4175678774/

Additionally I did not get a function defined for data restore, but can even put that in another script or write a PHP script for that, especially since some data sync is needed.

Other than the code source I put in the comments, I pulled most o the rest of the code from other scripts I had already written.

So your help needed here!

Thanks!

TBNKlatest?d=yIl2AUoC8zA latest?i=aCCfFzWty4g:TaFYoVs51aY:F7zBnMy latest?i=aCCfFzWty4g:TaFYoVs51aY:V_sGLiP latest?d=qj6IDK7rITs latest?i=aCCfFzWty4g:TaFYoVs51aY:gIN9vFwaCCfFzWty4g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments