Whenever i try using php with lighttpd on my iphone i get error 500 when loading any php page including the phpinfo.php file.
Go to Cydia and install the PHP Hypertext processor package. PHP does not get installed by default.