Results 1 to 2 of 2
Thread: Set up java (and jre)
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
03-07-2007 #1
Set up java (and jre)
jre1.5.0_11
So I have the following directory tree
/usr/lib/java
/usr/lib/java/jre1.5.0_11
I have defined in /etc/profile
JAVA_HOME=/usr/lib/java (and also tried .../jre1.5.0_11)
export JAVA_HOME
If I browse /localhost:8080/ I get an error: page not found
In addition I have also a
/usr/lib/tomcat
mod_jk-ap20 was installed, but now I have removed it, to try
apache2_prefork is now installed
Could you help me? Thank you.
-
03-08-2007 #2
The first step is to get Apache up and serving. That's not such a trivial thing that it can be described in a message like this, but I'll mention a few things.
You have to edit the main configuration file, which is probably /etc/httpd/conf/httpd.conf. One of the things in that file is a line like the following. This is the directory where index.html (or index.php, etc.) must be.
DocumentRoot "/var/www/html"
Once that's all set up, the server must be started:
/etd/init.d/httpd start
Verify it's setup to startup on reboot:
chkconfig --list httpd
If you see 5:off, then enable it with:
chkconfig --add httpd