Install Lilina 0.7 on PHP 5.0 linux box
Lilina, PHP June 27th, 2007
Lilina is great open source server side RSS aggregator written in PHP, the latest stable version at this time is 0.7. I just installed it and found some problem.
After install Lilina 0.7 and following it’s INSTALL instruction, it just didn’t work after all: all the web page is empty with nothing. I didn’t touch PHP stuff for many years, so just fix this issue by “what I feel”.
1. Debug
Fortunately debug PHP is simple, just run those PHP pages in command line, the output will display in console, so I will not have to look inside the logs. The problem quickly show up:
PHP Fatal error: Cannot redeclare class soapclient in /var/www/html/lilina-0.7/inc/nusoap.php on line 4096
2. Problem
Google it, the problem is clear, because PHP5 already have a class named “soapclient“. A solution was found here.
3. Quick & dirty fix
Quickly browsed the code, the only place use nusoap.php is inc/google.php, this is used for:
Enabling Google Web APIs support:
———————————
lilina is now able to automatically query Google for the title of each item
and show the top 10 results. To do so you must have a “Google Web APIs key” that
you can obtai for free from http://www.google.com/apis/.
I don’t think I need this, so I just edit lib.php, comment out the include of “google.php”, and search “google” and find the line:
$out .= google_get_res($title,0) ;
change it to:
$out .= “”; // google_get_res($title,0) ;
Then it works.
Popularity: 10% [?]
About
Hey Robert,
I’m the developer of Lilina and I’d just like to point out that this is completely disabled in the current development version of Lilina, as Google have stopped providing new keys for the service.
You can get a copy from Subversion at http://code.google.com/p/lilina/source
Thanks Ryan! I will grab a copy and try.
Thanks so very much for taking your time to create this very useful and informative site. I have learned a lot from your site. Thanks!!
Wonderful, thank you for sharing this with us, works like a charm.
Hmmm… I think I should give this a bash. Opensource is so great, because if you really do know what you’re doing, you can fix a problem like this easily. If Opensource went global, I think, it would actually be good for the IT industry in terms of the need for IT guys of companies to actually KNOW what they’re doing (rather than just know ‘how to set up a network, they would need to know how to actually do some coding to fix a problem.) No doubt, we would have much more secure and stable networks this way.