# get wowza live streaming statistics from server and displayed on my webpage

**URL:** <https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233>\
**Category:** Wowza Streaming Engine\
**Created:** [October 29, 2018, 4:21pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233 "2018-10-29T16:21:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Qiu](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sam\_Qiu](https://community.wowza.com/u/Sam_Qiu)\
**Post date:** [October 29, 2018, 4:21pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/1 "2018-10-29T16:21:42Z")

</div>

Hi, all, I have wowza media server engine hosted on aws, and I have a separate aws server hosting wordpress webserver as a frontend facing my client. two separate servers.

Now, I want my client able to view their live streaming or VOD statistics from their individual page on the wordpress webpage. I followed the instruction from this URL (copied index.php and config.php)

[https://github.com/WowzaMediaSystems/wse-rest-library-php](https://github.com/WowzaMediaSystems/wse-rest-library-php)

and changed the HOST IP, USERNAME and PASSWORD, it did not work.  
Did I miss something or there is another file of steps I did not follow?

where is /vendor/autoload.php?

I am not familiar with API call, if you have full example for this, much appreciated.

---

<div class="post-metadata">

**Author:** ![Sam\_Qiu](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sam\_Qiu](https://community.wowza.com/u/Sam_Qiu)\
**Post date:** [October 31, 2018, 2:47pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/2 "2018-10-31T14:47:54Z")

</div>

after enable the PHP debug mode, i got this error from web

i cannot find folder which indicated below error message -\> /usr.share/pear

Warning: require\_once(/home/wowza-account/vendor/autoload.php): failed to open stream: Permission denied in /web-root-dir/wowza/index.php on line 4 Fatal error: require\_once():

Failed opening required ‘/home/wowza-account/vendor/autoload.php’ (include\_path=’.:/usr/share/pear:/usr/share/php’) in /web-root-dir/wowza/index.php on line 4

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 30, 2018, 5:08pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/3 "2018-10-30T17:08:12Z")

</div>

Hi @Sam Qiu, thanks for reaching out, let me see what help I can find for you.

---

<div class="post-metadata">

**Author:** ![Sam\_Qiu](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sam\_Qiu](https://community.wowza.com/u/Sam_Qiu)\
**Post date:** [October 31, 2018, 2:48pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/4 "2018-10-31T14:48:54Z")

</div>

thank you Rose for your reply, now I got an error from my webpage.

object(stdClass)#6 (4) { [“wowzaServer”]=\> string(5) “4.7.6” [“code”]=\> string(3) “401” [“success”]=\> bool(false) [“message”]=\> string(40) “The request requires user authentication” }

seems the user name and password is wrong, May i know which username/password I should use for the define part, I tried the wowza login username password, create new username/password, tried using the individual userID/password for live streaming when create their live-streaming account on the wowza medai engine admin-page. all got error. did I miss something or file? I only copied these two file, (index.php and config.php)

```auto
define("WOWZA_USERNAME", "my_secret_username");
define("WOWZA_PASSWORD", "my_super_cool_password");

```

---

<div class="post-metadata">

**Author:** ![Sam\_Qiu](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sam\_Qiu](https://community.wowza.com/u/Sam_Qiu)\
**Post date:** [October 31, 2018, 1:51pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/5 "2018-10-31T13:51:39Z")

</div>

i got this error

object(stdClass)#6 (4) { [“wowzaServer”]=\> string(5) “4.7.6” [“success”]=\> bool(false) [“code”]=\> string(3) “401” [“message”]=\> string(40) “The request requires user authentication” }

the HOST IP changed to my-awsEC2ip, USERNAME and PASSWORD is same as admin.password in the /wowzamediaengine/conf folder. digest

is ok, include my webserver IP

```auto
define("WOWZA_HOST","http://111.111.123.123:8087/v2");
define("WOWZA_SERVER_INSTANCE", "_defaultServer_");
define("WOWZA_VHOST_INSTANCE", "_defaultVHost_");
define("WOWZA_USERNAME", "my_secret_username");
define("WOWZA_PASSWORD", "my_super_cool_password");

```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 31, 2018, 2:55pm UTC](https://community.wowza.com/t/get-wowza-live-streaming-statistics-from-server-and-displayed-on-my-webpage/52233/6 "2018-10-31T14:55:17Z")

</div>

Hi @Sam Qiu, thanks again for using Wowza Forums.

In order to further assist you with this issue, we would need to review your configuration in more detail so that a php expert could assist.

I would suggest that you submit a support ticket here:

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)

Please let me know the update when it’s resolved. Thanks!
