From: Josef 'Jupp' Schugt Date: 2003-02-22T04:43:27+09:00 Subject: Re: Problem in using RAA - Ruby Application Archive On 20 Feb 2003 07:53:02 -0800, TOTO wrote: > I am using RH Linux. I try to unpack the raa package to my public_html > directory and set the apache configuration properly. However, none of > the *.rhtml files run properly. All of them give an "Internal server > error". But when I run a simple test file in the same directory, it > works. > > What possibly cause the problem? Three common cases why problems of the above type can arise: The most common problem is line ends that follow a convention that differs from the one used on the server. This can be checked by looking at the file in vim (bottom line indicates if it is a 'DOS' file). Second problem is access rights: Scripts of any kind can only be run in the same way as ordinary binaries if they are executable AND readable (for binaries execute access is sufficient). Third problem is accessability: Scripts to be run by Apache must be accessible to the user Apache is running under. I am pretty sure you are facing the first problem. To fix that you can open the file in vim, type ':set filtype=unix' and save the file That automagically converts the line ends to Unix convention. For batch conversion you may consider 'recode'. HTH Josef 'Jupp' Schugt