Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
su - bhitch # We need a staff user who can sudo
cd /opt
sudo mkdir apache
sudo chown -R serveradmin:serveradminstaff ./apache # Make sure serveradmin can use the folder.

...

Code Block
languagebash
su - serveradmin
cd ~
gunzip apache-tomcat-6.0.20.tar.gz tar -xvpf apache-tomcat-6.0.20.tar.gz # All the permissions will be kept
mv ./apache-tomcat-6.0.20/ ./tomcat.1/ # This will be Tomcat1
exit # Switch back to your staff account

...

Log in as your staff account which has sudo access to perform the actual move to /opt/

Code Block
languagebash
sudo mkdir /opt/apache # just to organize things a bit better
cd /home/serveradmin
sudo mv ./tomcat.1/ /opt/apache/

...