Getting the LiveUser examples working can be somewhat difficult for
developers who are new to PHP and PEAR.
Here is a list of steps necessary to get the
and GVN examples working with a MySQL database in LiveUser
go-pear.phpto your web host through FTP.
Var_Dump. Command line will be something like pear install --alldeps LiveUser-beta (repeat for each package). If you used the
go-pear.php, there's some web-based way to install packages through that, but I haven't used it.
example4to your web root. On my Linux system the examples ended up in
/usr/share/pear/docs/LiveUser/docs/examplesand my Apache web root is at
/var/www. You can find out where the examples are by executing pear list-files LiveUser.
demodata.phpthrough your web browser with a URL like
http://www.example.com/LU/demodata.php?dsn=mysql://dbuser:pwd@localhost/databasename&file=/var/www/LU/demodata.xml&create=1. You must replace the file path values and the database
database namewith values appropriate for your own system. If this gives you a "success" message and you have phpMyAdmin or something, you should be able to look at the database now and see tables with data in them.
It is reported that on some systems, you must make alterations to the
demodata.xmlfile before this will run properly. Within all <is_active>..</is_active> tags replace the value "
Y" with "
1" and "
N" with "
conf.phpfile and enter your database information.
index.htmlpage through a web browser and log in and use
LiveUser/LiveUser.phphad to be corrected to just be
example4into the GVN folder.
peoplestable change the values in the
The above steps got me to the point where I have the working sample app and pages that demonstrate adding users, etc.