# How can I use MediaCache to point Wowza Streaming Engine to content on a PHP server

**URL:** <https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570>\
**Category:** Wowza Streaming Engine\
**Created:** [December 27, 2018, 3:58pm UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570 "2018-12-27T15:58:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 27, 2018, 3:58pm UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/1 "2018-12-27T15:58:53Z")

</div>

Hi,

Is it possible to implement video on demand using Wowza’s Media Cache Sources to access/point to a content folder on a PHP server? If it is, how may I go about doing that?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 27, 2018, 10:10pm UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/2 "2018-12-27T22:10:20Z")

</div>

Hello @Arnold Agaba,

You can find more information about the supported MediaCache configurations in the following support article:

[https://www.wowza.com/docs/scaling-with-wowza-media-cache](https://www.wowza.com/docs/scaling-with-wowza-media-cache)

Currently you can add Media Cache Sources for the following source types:

- **File**. For re-streaming files from network-attached storage.
- **HTTP**. For re-streaming files from HTTP-based servers.
- **AmazonS3**. For re-streaming files from an Amazon S3 bucket.
- **Azure**. For re-streaming files from a Microsoft Azure Blob storage account.
- **GoogleCloudStorage**. For re-streaming content from a Google Cloud Storage bucket connected to a Google Cloud Platform service account.

---

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 28, 2018, 1:18am UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/3 "2018-12-28T01:18:18Z")

</div>

Hi @Alex C thanks for your response. I had read through it but it was not clear on how this can be done and had trouble with implementation. Here is a screenshot of me attempting to point Media Cache Source to a content folder on a PHP server but when I provide the name of a video file to be played it fails.

Are there any other configurations that I need to set?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 28, 2018, 1:49am UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/4 "2018-12-28T01:49:54Z")

</div>

@Arnold Agaba

What is the playback URL you are using to test this?

It should be **http://_[wowza-IP]_:1935/_[vod-edge-application]_/_definst_/mp4:http/sample.mp4/playlist.m3u8**

Is the VOD Edge application configured to use the “test” MediaCache source?

Are you able to access the video file through your browser with the url you have in your screenshot?

---

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 28, 2018, 4:16am UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/5 "2018-12-28T04:16:25Z")

</div>

Hi @Alex C the address I am using is [http://192.168.43.149/family/uploads/sample.mp4](http://192.168.43.149/family/uploads/sample.mp4).

192.168.43.149 is the address of my PHP server. I tested the URL using the GoCoderSDK Player and WOwza’s test player but no success

---

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 28, 2018, 4:24am UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/6 "2018-12-28T04:24:57Z")

</div>

Hi @Alex C it works on my browser. How can I configure a VOD application to use the ‘test’ Media Cache Source?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 28, 2018, 5:11pm UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/7 "2018-12-28T17:11:06Z")

</div>

@Arnold Agaba

Details on setting up the MediaCache source, then the application to use that source as well as testing playback is all in the following support article:

[https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache#mediacacheconf\_application](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache#mediacacheconf_application)

I linked you directly to the application creation part, but feel free to scroll up to the top of the article and look around for other topics.

Once you setup the VOD Edge applicaiton and point it to the MediaCache source, your playback URL that you test with should be:

**http://_[wowza-IP]_:1935/_[vod-edge-application]_/_definst_/mp4:http/sample.mp4/playlist.m3u8**

---

<div class="post-metadata">

**Author:** ![Arnold\_Agaba](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Arnold\_Agaba](https://community.wowza.com/u/Arnold_Agaba)\
**Post date:** [December 31, 2018, 6:48pm UTC](https://community.wowza.com/t/how-can-i-use-mediacache-to-point-wowza-streaming-engine-to-content-on-a-php-server/52570/8 "2018-12-31T18:48:41Z")

</div>

Hi @Alex C I am not sure what I am doing wrong. I am attempting playback from the Android GoCoderSDK but isnt working. I have followed the article setting my media cache source as my XAMP server as:

**base path** : [http://192.168.43.149/test/](http://192.168.43.149/test/)

**sample content path** : [http://192.168.43.149/test/upload/sample.mp4](http://192.168.43.149/test/upload/sample.mp4)

I have my VOD Edge application using the media cache source I set and in the Android gocoder sdk my connection settings are:

**Host Address:** 192.168.43.149

**Port Number:** 1935

**Application Name:** mediacache

**Stream Name** : mp4:upload/sample.mp4

But video is not playing.
