Hi to all of the members of this helpful community.
I have lot of problems installing red5 video server, on my VPS.
First things first, here is the specs of my VPS:
OS: CENTOS 5.4 i686 virtuozzo on server
Administration: cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9
Mysql: 5.0.89-community
PHP: 5.2.10
Apache 2.2.11
Saying that, I will try to explain my problem as detailed as possible:
I try to install red5 video server, following the tutorials and guides to do that, but there are some prerequisites to fulfill before installing the program:
Prerequisite No.1.: Having the latest version of Apache ANT.
Prerequisite No.2: Having the latest Java devel version.
The server already got the Apache ANT 1.6, but red5 asks for 1.8
The server already got java 1.5 but red5 asks for 1.6
So, I try to update to ANT 1.8 and Java 1.6, but refuses to update, so I made a clean installation of both, doing this:
This guide is from
http://hosting-marketers.com/news/20...on-centos-5-4/
JAVA:
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Then I install Apache ANT doing this:
# cd /usr/src
# wget
http://opensource.become.com/apache/...8.0-bin.tar.gz
# tar zxvf apache-ant-1.8.0-bin.tar.gz
# mv apache-ant-1.8.0 /usr/local/ant
Then I export the variables, according to the guide:
# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/lib/jvm/java
# export PATH=$PATH:/usr/local/ant/bin
# export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.
# echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc
# echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc
# echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc
# echo ‘export CLASSPATH=.:$JAVA_HOME/lib/classes.zip’ >> /etc/bashrc
The strange thing is that after that, when I connect via SHELL, to the VPS, I get an error message, 5 times:
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found
Then, when I execute the command: ant -version to find out which version is running, I get more errors:
root@server [~]# ant -version
/usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
Unable to locate tools.jar. Expected to find it in /usr/java/jre1.6.0_13/lib/tools.jar
Apache Ant version 1.6.5 compiled on January 6 2007
As you can see, I installed the 1.8 version, but I have the 1.6.5.
Also, the VPS is not resolving the domains properly, prior to this, the domains were fine, but after that, I need to do a gracefull reboot, and then restart the named service.
So, here are the questions:
1.- How can I undo all the things I did, I mean, is it a way to uninstall the APACHE ANT 1.6.5 and then the 1.8 and Java 1.6, and then start from the beginning?
2.- After uninstalling these 3 apps, I need to reinstall it properly, and make red5 work on the server, so, how can I do it safely?
A mistake I did, was to not to backup the server prior to make the changes, and is a production VPS on a shared server with the vpsnext.com hosting provider.
I speak with the technical support, and they are not be able to help me, because is an unmanaged server.
One more strange thing is that, I already install red5, with ANT and JAVA in another server, with the same specs of this VPS, from another hosting provider, and I had no problems at all.
Hope you can help me to revert all this, because, I'm not a newbie in this, but I have limited knowledge on the things I can do in a Linux environment.
Thanks