I'm attempting to install ledgersmb on Centos 5 and I'm sure that I've missed something.
After doing the initial installation, I get a 404 when I get to the part of the instructions that tell me to go to http://localhost/ledgersmb/admin.pl
/etc/httpd/conf.d/ledgersmb.conf contains the following line:
Alias /usr/share/ledgersmb WORKING_DIR
/usr/share/ledgersmb exists and contains a file named admin.pl
/etc/httpd/conf/httpd.conf contains the following line:
Include conf.d/*.conf
But when I go to http://localhost/ledgersmb/admin.pl I get this entry in the apache log:
127.0.0.1 - - [08/Aug/2009:15:47:30 -0600] "GET /ledgersmb/admin.pl HTTP/1.1" 40 4 291 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12"
What have I missed here?
Frank Cox wrote:
I'm attempting to install ledgersmb on Centos 5 and I'm sure that I've missed something.
After doing the initial installation, I get a 404 when I get to the part of the instructions that tell me to go to http://localhost/ledgersmb/admin.pl
/etc/httpd/conf.d/ledgersmb.conf contains the following line:
Alias /usr/share/ledgersmb WORKING_DIR
/usr/share/ledgersmb exists and contains a file named admin.pl
/etc/httpd/conf/httpd.conf contains the following line:
Include conf.d/*.conf
But when I go to http://localhost/ledgersmb/admin.pl I get this entry in the apache log:
127.0.0.1 - - [08/Aug/2009:15:47:30 -0600] "GET /ledgersmb/admin.pl HTTP/1.1" 40 4 291 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12"
What have I missed here?
maybe replace "WORKING_DIR" with ledgersmb (and awap the order of the 2) ... the purpose of the Alias command is covered here:
On Sat, 08 Aug 2009 21:53:21 -0500 Johnny Hughes wrote:
maybe replace "WORKING_DIR" with ledgersmb (and awap the order of the 2)
Much thanks for the steer! I now have LedgerSMB up and running. (Haven't a clue what to do with it yet, but it's running and I can log into it.)
For anyone else who wants to install LedgerSMB on Centos, this is what I did to make it go.
I downloaded ledgersmb-1.2.17-1.noarch.rpm from sourceforge, and installed the following dependencies:
postgresql-8.1.11-1.el5_1.1.i386 perl-version-0.7203-1.el5.i386 perl-Class-Std-0.0.8-1.el5.rf.noarch perl-Config-Std-0.0.4-1.el5.rf.noarch perl-Smart-Comments-1.0.3-1.el5.rf.noarch perl-TimeDate-1.16-5.el5.noarch perl-MailTools-1.77-1.el5.centos.noarch perl-Locale-Maketext-Lexicon-0.62-1.el5.noarch perl-DBI-1.52-2.el5.i386 perl-DBD-Pg-1.49-2.el5_3.1.i386 perl-MIME-Lite-3.01-5.el5.noarch postgresql-server-8.1.11-1.el5_1.1.i386 perl-BSD-Resource-1.28-1.fc6.1.i386 mod_perl-2.0.4-6.el5.i386
I then edited /etc/httpd/conf.d/ledgersmb.conf and changed the Alias line to read like this:
Alias /ledgersmb /usr/share/ledgersmb
I then changed all instances of WORKING_DIR in /etc/httpd/conf.d/ledgersmb.conf to "ledgersmb" (without the quotes).
I then edited /etc/httpd/conf/httpd.conf in two places. I changed the line that says "AddHandler cgi-script .cgi" to read "AddHandler cgi-script .cgi .pl".
I also changed the section that read:
<Directory /> Options FollowSymLinks AllowOverride None </Directory>
so it now reads:
<Directory /> Options FollowSymLinks +ExecCGI AllowOverride None </Directory>
There is a short set of instructions that can be read with this command:
rpm -qi ledgersmb
After following those instructions, I can now log into ledgersmb.