I installed Tex Live by apt-get on Ubuntu, and I could access to latex commands both in Terminal and in web scripts; e.g. in PHP by shell_exec('pdflatex -version');
On a similar machine, I installed from source. I put PATH both in my user and /etc/profile. I could access to latex with all users (including my web user) in Terminal; but in web scripts I get error pdflatex: not found.
How apt-get make latex commands globally available on the machine, and what should I do so with installation from source?
dpkg -e deb-filethen look at the created fileDEBIAN/postinst. That'll explain what extras are done after the package is installed, such as setting paths and so forth. – Andrew Stacey Mar 2 '12 at 13:26