Amit Gud wrote:
> I've been trying to use lxr for a while but without success. I did
> whatever I can to get the lxr's perl code show up in the Mozilla
> properly. It shows the perl text source code instead of HTML. Whereas
> my other perl scripts are working fine. I've made the .htaccess file
> in the lxr directory.
If the source code is showing up, then Apache isn't treating the file as
a CGI script. You can check /var/log/apache/error_log (or wherever your
apache logs live) to see if it gives you any hints as to why.
My guess would be that your httpd.conf file isn't allowing the file to
be executed. You need to make sure you have permission to execute
scripts in that directory. Also make sure that you have given the
script execute permission to the user that Apache is running as e.g. you
need a permission of rwxr-xr-x (755).
> When i run the source file on the prompt as 'perl source' it gives
> error 'fatal: file not found sourcelxr.conf'
That's not surprising, since it needs some environment variables to know
where to find the conf file. But it does show that the script will
execute (the error is generated by the script at runtime).
> Don't know what to do. Please help.
It would be helpful when asking for help to say what version of LXR &
platform you're using etc.
Get latest updates about Open Source Projects, Conferences and News.