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
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?