Thread: [Lxr-general] My configuration complications
Brought to you by:
ajlittoz
From: Shahbaz K. <sha...@gm...> - 2007-05-12 15:33:02
|
I have switched from version 0.3 to version 0.9.5 after a continuous failure in configuration. Currently, after all configurations I do http://localhost/source, it dumps the source.pl script from lxr directory as text! I cannot not figure out how to run the various tests that come with lxr. In the lxr.conf do I need to set username, password if I use initdb_mysql? I also checked my /etc/passwd and did not find any lxr user so is this user local to mysql server? lxr database in mysql has not been populated even after generating the indexes and genxref command. I wish if someone could write a decent howto or guide on such a useful tool so that it becomes useful for newbies like me! |
From: Michael O. <mic...@fr...> - 2007-05-13 08:16:31
|
Shahbaz Khan wrote: > I have switched from version 0.3 to version 0.9.5 after a continuous > failure in configuration. > > Currently, after all configurations I do http://localhost/source, it > dumps the source.pl script from lxr directory as text! I cannot not > figure out how to run the various tests that come with lxr. > Did you read the INSTALL file carefully enough? I found it sufficient to install lxr-0.9.5. Your problem happens when the Apache server doesn't run perl to execute the perl script, but dumps the script instead. Make sure followed all instructions. > In the lxr.conf do I need to set username, password if I use initdb_mysql? > I also checked my /etc/passwd and did not find any lxr user so is this > user local to mysql server? > Did you read the comments in templates/lxr.conf? # The DBI identifier for the database to use # For mysql, the format is dbi:mysql:dbname=<name> # for Postgres, it is dbi:Pg:dbname=<name> # for Oracle, it is dbi:Oracle:host=localhost;sid=DEVMMS;port=1521 'dbname' => 'dbi:mysql:dbname=lxr', # If you need to specify the username or password for the database connection, # uncomment the following two lines # 'dbpass' => 'foo', # 'dbuser' => 'lxr', > lxr database in mysql has not been populated even after generating the > indexes and genxref command. > > I wish if someone could write a decent howto or guide on such a useful > tool so that it becomes useful for newbies like me! > Take your time to read the instruction files and even the source files... This is always helpful at the end. My advise: you should first solve your Apache / Perl issue. Good luck! Michael. -- Michael Opdenacker, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) |
From: Jan-Benedict G. <jb...@lu...> - 2007-05-14 20:15:58
|
On Sat, 2007-05-12 20:33:00 +0500, Shahbaz Khan <sha...@gm...> wrot= e: > Currently, after all configurations I do http://localhost/source, it > dumps the source.pl script from lxr directory as text! This is an important step. What exact LXR version do you use (released 0.9.x or from CVS?) and what exact kind of web server (Apache 1.x? Apache 2.x?) are you using? >From the INSTALL file: Apache2, modperl2 and LXR /--------------- |Edit the .htaccess file and change "Apache::Registry" to |"ModPerl::Registry". You also need to let modperl2 know about |where to find LXR perl modules. You can add a line like this |to your Apache2 config: | | PerlRequire /usr/local/lxr/require.pl | |with about this contents: |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |#!/usr/bin/env perl -w |@INC=3D(@INC, "/usr/local/lxr", | "/usr/local/lxr/lib", | "/usr/local/lxr/lib/Files"); |1; |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \--------------- For me, it worked by just installing the appropriate Debian packages (libapache2-mod-perl2 and apache2) and enabling the module (link it into /etc/apache2/mods-enabled from mods-availabl). MfG, JBG --=20 Jan-Benedict Glaw jb...@lu... +49-172-7608481 Signature of: http://catb.org/~esr/faqs/smart-questions.html the second : |
From: Shahbaz K. <sha...@gm...> - 2007-05-20 20:26:43
|
I sent this email a few days back. If nobody can help me out plz let me know so that I can move ahead. On 5/16/07, Shahbaz Khan <sha...@gm...> wrote: > I am using apache 2.2.3-5 and lxr-0.9.5 release version. Attached are > my conf files for apache and lxr. Plz sort it out for me because I > have spent a lot of time and its not working out for me. I have > thouroghly read lxr.cong and install files for details but alone its > knowledge is not working. I am not used to apache and linux in general > so I get lost easily and end up installing my linux machine over and > over again. > > Do we need an lxr user for my sql? > Does mysql server have local users? > Is lxr linux user of sqlserver user? > My database is empty even after generating the indexes > I do not use CVS so should I comment out its requirements? Like CVS bin > I have no idea how to install the test units! What to do? > Curently I get the source perl file in my browser which might mean > that perl is not being executed but dumped by the server. It has to be > with httpd.conf. mod_per and other perl module are installed as > directed by install and lxr.conf. > > My directory options are set in /etc/security/access.conf. This is the > same thing that can be put in httpd.conf. But this works because > multiple Files ~ A|B|C syntax is not yet supported with apache. > Atleast I get this message. I have also sorted out that mysql 5.x has > release as a keyword so we have to escape it with ` in initdb_mysql. > > I need simple explainations plz, because am a newbie/rookie with linux and lxr. > > Thank you. > > |
From: Jan-Benedict G. <jb...@lu...> - 2007-05-20 20:54:09
|
On Mon, 2007-05-21 01:25:56 +0500, Shahbaz Khan <sha...@gm...> wrot= e: > I sent this email a few days back. If nobody can help me out plz let > me know so that I can move ahead. Either the spam filter ate it, or it simply didn't find its way to the mailing list. Please resend--this version was missing the mentioned attachments. > On 5/16/07, Shahbaz Khan <sha...@gm...> wrote: > > I am using apache 2.2.3-5 and lxr-0.9.5 release version. Attached are > > my conf files for apache and lxr. Plz sort it out for me because I > > have spent a lot of time and its not working out for me. I have > > thouroghly read lxr.cong and install files for details but alone its > > knowledge is not working. I am not used to apache and linux in general > > so I get lost easily and end up installing my linux machine over and > > over again. > > > > Do we need an lxr user for my sql? You can use any existing user, but in general, it's wise to separate stuff that's, well, separate. So better create a fresh user for LXR. > > Does mysql server have local users? It does. Usually, all the SQL servers have their own user management that's not at all related to system users. > > Is lxr linux user of sqlserver user? I don't understand this question. At most, I see these users being in the game: * One (system) user that Apache is using. This usually is "www", "apache", "www-data" or something like that, rarely "root" is uses. * One (system) user that's owning the LXR related files. The Apache web server's user (www, apache, www-data, ... as above) must have read access to the LXR files. Using the same user is the simple approach, but depending on your setup, you may want some real user to be able to update LXR or change its configuration, so it may be a regular user accoung. * A (system) user that the database server is using, usually named like the RDBMS system (eg. "postgres", "oracle", ...) You possibly need to have access to this user to create the next one, a DB-specific user for use with LXR. * A (DB-specific) LXR user, which lifes entirely inside the DB, including its password, access management etc. Account data for this user is usually placed into the lxr.conf file. > > My database is empty even after generating the indexes That means that either there was nothing to index, or that some error happened. Tough you didn't post error messages (and the config attachments aren't in this resent email), we this is a guess--at best. > > I do not use CVS so should I comment out its requirements? Like CVS bin LXR is a system to present source code with the help of a web browser. You need to give LXR the source code you want to present. How did you do that? (Your lxr.conf file would probably tell us...) There are several ways: * Offer a Bitkeeper repository to LXR. * Offer a CVS repository to LXR. * Offer a GIT repository to LXR. * Offer plain files to LXR (eg. extract tarballs of the project: mkdir /data/sources/linux-0.01 && ( cd /data/sources/linux-0.01 && tar x= jf /path/to/linux-0.01.tar.bz2 ) mkdir /data/sources/linux-1.0.0 && ( cd /data/sources/linux-1.0.0 && tar x= jf /path/to/linux-1.0.0.tar.bz2 ) mkdir /data/sources/linux-2.0.0 && ( cd /data/sources/linux-2.0.0 && tar x= jf /path/to/linux-2.0.0.tar.bz2 ) mkdir /data/sources/linux-2.6.1 && ( cd /data/sources/linux-2.6.1 && tar x= jf /path/to/linux-2.6.1.tar.bz2 ) ) Without sources, nothing will be indexed, because there's nothing to index. > > I have no idea how to install the test units! What to do? Ignore it. It's mostly used to test LXR after hacking it. > > Curently I get the source perl file in my browser which might mean > > that perl is not being executed but dumped by the server. It has to be > > with httpd.conf. mod_per and other perl module are installed as > > directed by install and lxr.conf. Apache2? Apache1? httpd.conf? Thses handler options have to be set for the <Location>: SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI > > My directory options are set in /etc/security/access.conf. This is the > > same thing that can be put in httpd.conf. But this works because > > multiple Files ~ A|B|C syntax is not yet supported with apache. > > Atleast I get this message. I have also sorted out that mysql 5.x has > > release as a keyword so we have to escape it with ` in initdb_mysql. ISTR that this should be fixed in the CVS version of LXR. > > I need simple explainations plz, because am a newbie/rookie with linux = and lxr. Thought about offering somebody login data to the machine to install it together with you in a screen -x session? MfG, JBG --=20 Jan-Benedict Glaw jb...@lu... +49-172-7608481 Signature of: Ich hatte in letzter Zeit ein bi=C3=9Fchen viel Rea= litycheck. the second : Langsam m=C3=B6chte ich mal wieder weitertr=C3= =A4umen k=C3=B6nnen. |
From: Shahbaz K. <sha...@gm...> - 2007-05-24 19:21:15
|
Mr Jan-Benedict Glaw Its so sweet of you to look at all the configuration. Its always a pleasure to know people like you are out there to help such newbies like me. I will work on your hints and let you know about the conclusions. I should succeed now at least! Thak you. |