Запишу подробно как я сделал:
Код: Выделить всё
# fetch http://samm.kiev.ua/sqstat/sqstat-1.20.tar.gz
sqstat-1.20.tar.gz 100% of 10 kB 161 kBps
/home/maineville# tar zxvf sqstat-1.20.tar.gz
x sqstat-1.20
x sqstat-1.20/docs
x sqstat-1.20/config.inc.php.defaults
x sqstat-1.20/sqstat.class.php
x sqstat-1.20/sqstat.php
x sqstat-1.20/sqstat.css
x sqstat-1.20/zhabascript.js
x sqstat-1.20/arrow.gif
x sqstat-1.20/docs/FAQ
x sqstat-1.20/docs/TODO
x sqstat-1.20/docs/README
x sqstat-1.20/docs/LICENSE
x sqstat-1.20/docs/CHANGES
# rm sqstat-1.20.tar.gz
# mv sqstat-1.20/ sqstat
/home/maineville# cd sqstat-1.20/
/home/maineville/sqstat-1.20# cp config.inc.php.defaults config.inc.php
Потом прописал ип прокси (192.168.10.6) и порт (3128):
Код: Выделить всё
# cat config.inc.php
<?php
/* global settings */
$use_js=true; // use javascript for the HTML toolkits
// Maximum URL length to display in URI table column
DEFINE("SQSTAT_SHOWLEN",60);
/* proxy settings */
/* Squid proxy server ip address or host name */
$squidhost[0]="192.168.10.6";
/* Squid proxy server port */
$squidport[0]=3128;
/* cachemgr_passwd in squid.conf. Leave blank to disable authorisation */
$cachemgr_passwd[0]="";
/* Resolve user IP addresses or print them as numbers only [true|false] */
$resolveip[0]=false;
/* uncomment next line if you want to use hosts-like file.
See hosts.txt.dist. */
// $hosts_file[0]="hosts.txt"
/* Group users by hostname - "host" or by User - "username". Username work only
with squid 2.6+ */
$group_by[0]="host";
/* you can specify more than one proxy in the configuration file, e.g.: */
// $squidhost[1]="192.168.1.1";
// $squidport[1]=3129;
// $cachemgr_passwd[1]="secret";
// $resolveip[1]=true;
// $hosts_file[1]="otherhosts.txt"
?>
# ln -s sqstat.php index.php
Затем поправил конфиг апач:
Код: Выделить всё
Alias /sqstat/ "/home/maineville/sqstat-1.20/"
<Directory "/home/maineville/sqstat-1.20/">
Options Indexes
Order allow,deny
Allow from all
</Directory>
Потом выявил где у меня DocumentRoot :
Код: Выделить всё
#grep DocumentRoot ./httpd.conf
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/usr/local/www/data"
И поместил папку sqstat-1.20 в /usr/local/www/data
Перезапустил сквид.
Перезапустил апач:
Код: Выделить всё
/etc/rc.d#/usr/local/etc/rc.d/apache22 stop
Stopping apache22.
Waiting for PIDS: 62793, 62793, 62793, 62793, 62793.
/etc/rc.d#/usr/local/etc/rc.d/apache22 start
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
/etc/rc.d#
Вроде бы все
Захожу в браузер:
И заработало

Огромное спасибо всем кто помог, особенно
Raven2000 и
ivan_k 