P.S. If your using CWP, you shouldn't be installing anything via terminal. You should use the CWP to select your configurations and let it do the work. If you install LAMP before CWP, you will most definitely break CWP.