How to setup server status & webalizer in Windows Xampp.

First confirm that you have a LoadModule that looks similar to this in httpd.conf file:
Location : C:\xampp\apache\conf\httpd.conf
LoadModule status_module modules/mod_status.so

add this config in httpd.conf

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order allow,deny
#Deny from all
Allow from all
</Location>

And add first on first line in httpd-vhosts.conf
Location : C:\xampp\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "C:/xampp/htdocs"
    ServerName 127.0.0.1
<Directory "C:/xampp/htdocs">
AllowOverride All
Order allow,deny
Allow from 1127.0.0.1
</Directory>
    ##ServerAlias www.dummy-host.example.com
    ##ErrorLog "logs/dummy-host.example.com-error.log"
    ##CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

See more vhost examples:
https://httpd.apache.org/docs/2.4/vhosts/examples.html

open via browser
http://localhost:81/server-status?refresh=N


====================================================
Configure file like this for weblizer

C:\xampp\apache\conf\extra\httpd-xampp.conf


    Alias /webalizer "C:/xampp/webalizer/"
    <Directory "C:/xampp/webalizer">
        <IfModule php7_module>
    <Files "webalizer.php">
    php_admin_flag safe_mode off
    </Files>
        </IfModule>
Options Indexes FollowSymLinks MultiViews
            AllowOverride all
            Require all granted
#DirectoryIndex webalizer.php
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>
</IfModule>

Set log file path in C:\xampp\webalizer\webalizer.conf.


open via browser
http://localhost:81/webalizer/webalizer.php

SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment