Install Lilina 0.7 on PHP 5.0 linux box
Wednesday, June 27th, 2007Lilina 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