Hi,
I've just installed lx-office (a german fork of sql-ledger, web based accounting). In order to create invoices and so on lx-office calls pdflatex. Tetex provided by SME-Server didn't seem to have all features needed by the invoice-templates of lx-office so I installed texlive.
The problem now ist that the pdflatex executable is under /usr/local/texlive/2007/bin/i386-linux. I changed /etc/profile and added that path which made it available to root but not to the webserver. The lx-office-Perl-script still cant find it:
[Fri May 30 21:06:03 2008] [error] [client 192.168.0.115] sh: pdflatex: command not found, referer:
https://server.local/lx-erp/is.pl?login=andsoon...
I also tried to add PATH=$PATH,/usr/local/texlive/2007/bin/i386-linux \ export PATH to the following places:
/home/e-smith/.bashrc
/home/e-smith/.bash_profile (/home/e-smith is set as ~ for user www in etc/password)
/etc/bashrc
/etc/csh.login
/etc/init.d/httpd
/etc/init.d/httpd-e-smith
but to no avail so far.
So where is $PATH defined for user www? Or do I miss something else?