Line 271: |
Line 271: |
| /srv/http/ | | /srv/http/ |
| htdocs/ - DocumentRoot directory for storage of your served web pages (e.g. index.php discussed below) | | htdocs/ - DocumentRoot directory for storage of your served web pages (e.g. index.php discussed below) |
− | cgi-bin6/ - directory for the ipscan cgi executables | + | cgi-bin6/ - directory for the IPscan cgi executables |
| | | |
| If you follow this suggestion then don't forget to modify the DocumentRoot setting in the apache configuration file! Having followed the php installation guide then you'll also need to update php's base directory to match Apache inside '''/etc/php/php.ini''': | | If you follow this suggestion then don't forget to modify the DocumentRoot setting in the apache configuration file! Having followed the php installation guide then you'll also need to update php's base directory to match Apache inside '''/etc/php/php.ini''': |
Line 327: |
Line 327: |
| | | |
| | | |
− | === Install git, download and build ipscan === | + | === Install git, download and build IPscan === |
| | | |
− | Then install git and download the ipscan source: | + | Then install git and download the IPscan source: |
| | | |
| # pacman -S git | | # pacman -S git |
| | | |
− | Then clone the ipscan source into a directory under your root user account: | + | Then clone the IPscan source into a directory under your root user account: |
| | | |
| [root@alarmpi ~]# git clone https://github.com/timsgit/ipscan ipscan | | [root@alarmpi ~]# git clone https://github.com/timsgit/ipscan ipscan |
Line 346: |
Line 346: |
| [root@alarmpi ~]# | | [root@alarmpi ~]# |
| | | |
− | Now follow the instructions in the [https://github.com/timsgit/ipscan/blob/master/README README file] within ipscan's github repository. | + | Now follow the instructions in the [https://github.com/timsgit/ipscan/blob/master/README README file] within IPscan's github repository. |
| | | |
| It's necessary to change the Makefile to reflect your Apache server's cgi-bin directory mapping: | | It's necessary to change the Makefile to reflect your Apache server's cgi-bin directory mapping: |
Line 367: |
Line 367: |
| </Directory> | | </Directory> |
| | | |
− | then modify your ipscan Makefile to reflect this: | + | then modify your IPscan Makefile to reflect this: |
| | | |
| # Install location for the CGI files | | # Install location for the CGI files |
Line 378: |
Line 378: |
| URIPATH=/cgi-bin6 | | URIPATH=/cgi-bin6 |
| | | |
− | Make sure you have created the /srv/http/cgi-bin6 directory (or whatever you have chosen) before attempting to build ipscan. Also make sure that your MySQL database is created following the instructions in the github repository. You will need to login to mysql using the root password you previously defined (above): | + | Make sure you have created the /srv/http/cgi-bin6 directory (or whatever you have chosen) before attempting to build IPscan. Also make sure that your MySQL database is created following the instructions in the github repository. You will need to login to mysql using the root password you previously defined (above): |
| | | |
| # mysql -u root -p | | # mysql -u root -p |
Line 404: |
Line 404: |
| #define MYSQL_TBLNAME "results" | | #define MYSQL_TBLNAME "results" |
| | | |
− | Then you should be able to make ipscan as '''root''' user and perform the install to transfer the necessary cgi files into your preferred cgi-bin directory: | + | Then you should be able to make IPscan as '''root''' user and perform the install to transfer the necessary cgi files into your preferred cgi-bin directory: |
| | | |
| # make && make install | | # make && make install |
| | | |
− | Prior to running the ipscan tester it is advisable to add a cron job which will execute the sqltidy.pl script to remove the completed scan results to protect your users' security and minimise the size of your database: | + | Prior to running the IPscan tester it is advisable to add a cron job which will execute the sqltidy.pl script to remove the completed scan results to protect your users' security and minimise the size of your database: |
| | | |
| First install the necessary perl mysql data base interface modules: | | First install the necessary perl mysql data base interface modules: |
Line 418: |
Line 418: |
| # /root/ipscan/sqltidy.pl | | # /root/ipscan/sqltidy.pl |
| | | |
− | And finally edit the root cron job to insert the line shown below (modified to reflect your ipscan source directory): | + | And finally edit the root cron job to insert the line shown below (modified to reflect your IPscan source directory): |
| | | |
| # crontab -e | | # crontab -e |