This tutorial (thanks to Bricowifi) describes the installation of Xplico and XI in Ubuntu distribution.
sudo su
apt-get install sqlite tcpdump tshark apache2 php5 php5-sqlite build-essential perl zlib1g-dev libpcap-dev libsqlite0-dev libmysqlclient15-dev php5-cli
mkdir xbuild cd xbuild
Download Xplico source code from SorceForge or BerliOS
tar zxvf xplico-x.y.z.tgz wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.5.tar.gz tar zxvf GeoIP-1.4.5.tar.gz cd GeoIP-1.4.5 ./configure make cd .. rm -f *.tar.gz cd xplico wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gzip -d GeoLiteCity.dat.gz rm -f *dat.gz make cd .. wget http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-8.70.tar.bz2 tar jxvf ghostpdl-8.70.tar.bz2
The ghostpcl contains the pcl6 application that it is necessary to “network printer job”
rm -f *.bz2 cd ghostpdl-8.70 make
Wait for some time
cd .. cp ghostpdl-8.70/main/obj/pcl6 xplico/ rm -rf ghostpdl-8.70 cd xplico make install
Now we install the Xplico Interface (XI) that is an graphical/web user interface.
cd /var/www
Download Xplico Interface from SorceForge or BerliOS
tar zxvf xplico_interface-x.y.z.tgz rm -f xplico_interface*.tgz chmod -R 777 gui.xplico.org
Save this configuration code in a new file called /etc/apache2/sites-enabled/xplico
<VirtualHost *:9876> DocumentRoot /opt/xplico/xi <Directory /opt/xplico/xi> Options All AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride All Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/xplico_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/xplico_access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
After this we have to change Apache ports file to add port of XI. Then, in /etc/apache2/ports.conf add:
# xplico Host port NameVirtualHost *:9876 Listen 9876
We must also modify the php.ini file to allow uploads (pcap) files. Edit /etc/php5/apache2/php.ini.
The lines to modify are:\\ **post_max_size = 100M** \\ **upload_max_filesize = 100M**\\
Enable mode rewrite in Apache:
a2enmod rewrite
And finally restart Apache:
/etc/init.d/apache2 restart