Skip to content
dulcedo edited this page Sep 14, 2010 · 12 revisions

YaCymin is a collection of PHP-scripts for steering and quering a YaCy Network

YaCy is providing a rich HTML/XML based API and plugin-classes for most languages. Take YaCymin as a sample to fill in the buildt-in admin-interface using this API and feel free to commit additional or enhance the existing modules or functions.

Installation


You need PHP5 for using this example, Windows users may use XAMPP or easy-PHP, most other OS have buildt-in PHP-support.
Of course you will also need access to one or more YaCy-peers, either by obtainig the address and accounting, or by using an own (local) instance.
Place all included files in a subdir of your local- oder servers htroot and start your favorite browser calling demo4.php.

Configuration


YaCymin is using a file peerlist_inc.php to store adresses and accounting for all YaCy-peers administrable by the application.

// -———— edit here -———- // array of possipble peers 0:ip, 1:port, 2:user:pw, 3: opt.friendlyname // do NOT use localhost but (public) IP/hostname // first peer #0 used to access network-information, must be present and online. $i= 0; $this_YaCyPeer[$i][ 0]=“127.0.0.1”; $this_YaCyPeer[$i][ 1]=“8080”; this_YaCyPeer[$i][ 2]=“admin:password”;$this_YaCyPeer[$i]3=“my_friendlyname_for_this_peer”; $i= 1; $this_YaCyPeer[$i][ 0]=“other.ip”; $this_YaCyPeer[$i][ 1]=“8081”; $this_YaCyPeer[$i][ 2]=“nopassword”; // … and so on

The first primary peer is used to get informations about the connected YaCy-network and mandatory. Other peers listed are offered for administration, of course credentials are needed for this purpose. Public information about all other connected peers is gathered from primary peers network information.
If another similar file peerlist_alt.php is found it is used instead and information stored in peerlist_inc.php will be ignored..

Usage


Screens


Clone this wiki locally