Jump to content

Featured Replies

Posted
comment_442

I have now integrated it into CWP, so for the benefit of others.

1. Create /usr/local/cwpsrv/htdocs/resources/admin/modules/apache_status.php with the following contents:

<?php
// Apache Status - Accesses v0.4

$url = "http://localhost/server-status";
$ch_session = curl_init();
curl_setopt($ch_session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch_session, CURLOPT_URL, $url);
$result_url = curl_exec($ch_session);
echo $result_url;

?>

To Add under webservers instead of Developer Options
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php

<script type="text/javascript">
        $(document).ready(function() {
                var newButtons = ''
                +' <li>'
                +' <a href="?module=apache_status"><span aria-hidden="true" class="icon16 icomoon-icon-arrow-right-3"></span>Apache Status - Accesses</span></a>'
                +'</li>';
                $("ul#mn-15-sub").prepend(newButtons);
        });
</script>

and that's all you need to do to get the full apache status

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now