Touched up the shell script; moved the copy function up and tried a new path; moved it before apache restart. Re-added PHPmyAdmin.