CentOS 7
Sponsored Link

Pen : Refer to the Statics2015/06/10

 
Configure Pen to refer to the Statics.
[1]
Install httpd, refer to here.
Furthermore, port 80 is used by pen, so change the port of httpd from 80 to another port. This example uses 8081.
[2] Configure Pen.
[root@dlp ~]#
cp /usr/share/doc/pen-*/penstats /var/www/pen

[root@dlp ~]#
vi /var/www/pen/penstats
# line 4,5: change

PIDFILE=
/var/run/pen.pid

WEBFILE=
/var/www/pen/webstats.html
[root@dlp ~]#
vi /etc/httpd/conf.d/pen.conf
# change like follows

Alias
/pen/ /var/www/pen/
<Directory /var/www/pen/>
    DirectoryIndex
webstats.html

   
#
Options ExecCGI
    <IfModule mod_authz_core.c>
        # Apache 2.4
       
# add access permission

        Require local
        Require ip 10.0.0.0/24
    </IfModule>
[root@dlp ~]#
systemctl restart httpd

[root@dlp ~]#
chmod 755 /var/www/pen/penstats

# generate statics

[root@dlp ~]#
/var/www/pen/penstats > /dev/null

# add to Cron

[root@dlp ~]#
echo '*/5 * * * * /var/www/pen/penstats > /dev/null' > /etc/cron.d/pend

[3] Access to "http://(Pen server's hostname or IP address):(httpd listening port)/pen/", then it's possible to refer statics of Pen like follows.
Matched Content