Showing posts with label redhat. Show all posts
Showing posts with label redhat. Show all posts

Sunday, March 29, 2009

phpUnderControl, CruiseControl and Jetty - No context on this server matched handled this request

I am tryin to get phpUnderControl set up, and for that I needed to get Cruisecontrol working.
I installed Cruisecontrol, set up phpUnderControl (there are enough instructions out there), but let me know if you want me to do a writeup)
After putting all pieces together in a VirtualHost, I go to cc.myserver.com and I get:
Error 404 - Not Found.
No context on this server matched or handled this request.

I looked around quite a bit, but didn't find the answer. Going to Jetty forums, finally, I pieced together that Jetty doesn’t get configured with a default context automatically. So here is what I did:
go to /opt/cruisecontrol (where I have cruisecontrol installed)
cd webapps
ln -s cruisecontrol root

Restart cruisecontrol and now cc.myserver.com loads the cruisecontrol nicely.

Sunday, November 30, 2008

How to change Redhat Linux timezone

Our dedicated server is in CST timezone, so we thought of changing the timezone to PST, where we are. Here are the instructions I followed:

#timeconfig

This is a visual way of setting the timezone, but I am not sure if it actually did anything.


So, I tried manual way by following these steps:
#mv /etc/localtime /etc/localtime-old
#ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
#rdate -s time.nist.gov

Because of our server firewall, the above step timedout. So I tried the following, which timed out too:
#ntpdate pool.ntp.org

So I set the time manually, and then synced the hardware clock:
#date -s "3:38"
#hwclock --systohc --utc
#hwclock --show