There are multiple issues which may arise during the installation of Tomcat 7. Let's discuss these issues:
Scenario 1: The Java installation is not working, while executing the Java binary.
[root@localhost opt]# ./jdk-6u24-linux-i586.bin -bash: ./jdk-6u24-linux-i586.bin: Permission denied
Issue: The Java binary doesn't have execute permissions with a specific user.
Fix: Change the permission to 0755 for
./jdk-6u24-linux-i586.bin using the following command:
chmod 0755 jdk-6u24-linux-i586.bin
chmod 0755 file is equivalent to
u=rwx (4+2+1),go=rx (4+1 & 4+1). The
0 specifies no special modes.