|
From: Ibrahim S. <gtk...@ya...> - 2001-04-30 05:47:12
|
Hi,
Thanks for the advice. I have trying to make it work following your tips.
Unfortunately I have not been able. The problem still persist. I am attaching
here my httpd.conf file if you can try to seen where I am missing.
Sorry for bothering everybody, but really I want to run sql-ledger.
Thanks in advance
Ibrahim Shaame
Izzy Blacklock wrote:
> At 10:12 AM 21/04/01, you wrote:
> >Following my previous emails, here is a copy of the
> >screen I receive when calling setup.html (which is a
> >copy of setup.cgi). Whenever I try to click on "Add
> >User" (or List Users) I get a message : "Netscape in
> >unable to find the file or directory named
> >/var/lib/apache/sql-ledger/admin/$script, Check the
> >name and try again". When I try to call from
> >Netscape's File, Open Location, sometimes it says that
> >file not found and sometimes it brings me to
> >"http://localhost" with the famous apache page
> >announcing the success of of its installation.
> >
> >Thank you for your hints
>
> That's about what I'd expect from opening a cgi script in a web browser! :)
>
> I'm new to this as well so please forgive me if I'm wrong, but I think your
> problem is with your Apache setup. You have to specifically tell Apache
> it's ok to run scripts outside of it's default cgi directory. The answers
> are in the SQL-Ledger FAQ, but I too had problems understanding at
> first. There's so many things to install and configure and if you've never
> done any of it before, it can be quite a daunting task! :(
>
> I think your problem is with Apache, so here's what you need to do for
> it. The first thing is to add support for running .pl files as cgi scripts
> as the first point in the FAQ suggests. Edit your httpd.conf file (mine
> was in /etc/httpd/httpd.conf) and searched for "To use CGI scripts". You
> should find a section like this:
>
> # To use CGI scripts:
> AddHandler cgi-script .cgi
>
> If it isn't there already, add the following as is indicated in the FAQ.
>
> AddHandler cgi-script .pl
>
> Next I'd skip to the bottom of the FAQ to the section on security and
> follow all these steps. Don't make the mistake I did and assume that
> Apache is running as the default user nobody.nogroup. I found out mine was
> running as wwwrun.nogroup which is the default configuration under
> SuSE. If you search your httpd.conf file for "User/Group", you should find
> entries like this
>
> User wwwrun
> Group nogroup
>
> Change step 2 in the FAQ to match these settings. Of course you will also
> want to change the path in all these steps to match where you've put the
> sql-Ledger directory.
>
> For step 4, I'd just copy the lines as he has them there (with adjustments
> to the sql-ledger path if needed) and place them in the httpd.conf
> file. If you search for "<Directory" you'll find the section where you
> want to put them. Just move to the bottom of the last entry (they end with
> </Directory>) and past it all there. Make sure the path is correct for
> where you put sql-ledger.
>
> I didn't understand step 5, and step 6 you can probably skip.
>
> Hope this helps.
>
> ...Izzy
|