Stop apache2 on the app server before running paxctl commands
Disable conflicting jail restrictions as the root user
Change sed command for grub entry
Update sed command to correctly include quotes
Configure Grsecurity lock as the root user