jpgraph requires php, and looks for it where php-cli and mod_php installs it. When mod_php is compiled WITH_APACHE2, it installs in a different place. How-To-Repeat: install Apache2 and mod_php WITH_APACHE2 and try to install jpgraph. You'll get a complaint that PHP 4.04 or above is needed.
State Changed From-To: open->closed Commited, thanks!