Yes, the lucky guys who have yum available just type
yum install php-embedded
Although you get the /usr/lib/libphp5.so immediately with this way, I ran into the problem there was another symbol missing for "dbase".
So I compiled the latest version of PHP as suggested above on my notebook with additionally
./configure --enable-embed --enable-dbase
Then, all you need to copy to another machine is the fresh created libphp5.so into /usr/lib. This binary was fully portable. compiled on Fedora 9, ran perfect on Fedora 5 as well.
This shit runs amazingly fast. I'm using this wrapper for creating nice-looking PDFs with PHP's fpdf. Didn't see an easy-to-use PDF interface for Perl so far.
So to conclude this second recipe and maybe increase the Google ranking for people who're seeking such answers here's the complete procedure that worked on 3 servers:
1.) yum install php-devel
2.) Download and compile the latest release of PHP from php.net
./configure --enable-embed --enable-dbase
make
make test
su -
make install
You may compile this bundle on your Notebook for example (Guess we're
talking about Linux on all systems ;). All you'll need later is the
file "libphp5.so". So for future distributing the functionality of
PHP::Interpreter you could omit this point.
3.) Then, cd /usr/lib --> copy "libphp5.so" here.
4.) force install PHP::Interpreter
Have fun!
--reto