# Plex Web Export

**URL:** <https://forums.plex.tv/t/plex-web-export/5807>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [October 6, 2010, 11:36am UTC](https://forums.plex.tv/t/plex-web-export/5807 "2010-10-06T11:36:18Z")\
**Posts on this page:** 20\
**Page:** 28

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [November 25, 2013, 4:04pm UTC](https://forums.plex.tv/t/plex-web-export/5807/541 "2013-11-25T16:04:36Z")

</div>

When I had that, it was due to wrong rights/ownership of the files...

And you ain't mentioning what kind of webserver you are running here, but on my suse box I run this after each update:

```
chown -R root /srv/www/htdocs
chgrp -R www /srv/www/htdocs
chmod -R 750 /srv/www/htdocs
chmod g+s /srv/www/htdocs
```

/T

---

<div class="post-metadata">

**Author:** ![jbaruch76](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jbaruch76](https://forums.plex.tv/u/jbaruch76)\
**Post date:** [November 25, 2013, 4:44pm UTC](https://forums.plex.tv/t/plex-web-export/5807/542 "2013-11-25T16:44:58Z")

</div>

> When I had that, it was due to wrong rights/ownership of the files...
> 
> And you ain't mentioning what kind of webserver you are running here, but on my suse box I run this after each update:
> 
> ```
> chown -R root /srv/www/htdocs
> chgrp -R www /srv/www/htdocs
> chmod -R 750 /srv/www/htdocs
> chmod g+s /srv/www/htdocs
> ```
> 
> /T

whoops. yeah, i'm running windows over here.

---

<div class="post-metadata">

**Author:** ![darkflare](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@darkflare](https://forums.plex.tv/u/darkflare)\
**Post date:** [January 2, 2014, 4:11pm UTC](https://forums.plex.tv/t/plex-web-export/5807/543 "2014-01-02T16:11:05Z")

</div>

Plex Media Server on Windows here, if I try to connect to it remotely from my Linux webserver I get:

15:44:16 Welcome to the Plex Exporter v1

15:44:16 Searching for sections in the Plex library at [http://myhomeip:32400/](http://myhomeip:32400/)

15:44:16 Error: The Plex library could not be found at [http://myhomeip:32400/](http://myhomeip:32400/)

15:44:16 Error: Could not load section data, aborting

&nbsp;

&nbsp;

And when running it from a Linux VM on my home machine:

16:08:04 Scanning movie: Blue Caprice

16:08:25 Error: Could not load thumbnail for Blue Caprice

16:08:26 Scanning movie: Braveheart

16:08:48 Error: Could not load thumbnail for Braveheart

16:08:48 Scanning movie: The Cabin in the Woods

16:09:10 Error: Could not load thumbnail for The Cabin in the Woods

16:09:11 Scanning movie: Call Me Kuchu

16:09:33 Error: Could not load thumbnail for Call Me Kuchu

16:09:33 Scanning movie: City of God

16:09:54 Error: Could not load thumbnail for City of God

&nbsp;

&nbsp;

Any workarounds? I don't really want to install php on my home PC if I can avoid it.

&nbsp;

EDIT: Nevermind, bit the bullet and just ran it locally. Working fine.

---

<div class="post-metadata">

**Author:** ![Jared\_Ashton](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jared\_Ashton](https://forums.plex.tv/u/Jared_Ashton)\
**Post date:** [January 22, 2014, 9:34am UTC](https://forums.plex.tv/t/plex-web-export/5807/544 "2014-01-22T09:34:12Z")

</div>

Hey all,

Iv been reading this thread trying to get Plex Export to work for me but i have yet to be successful.

I am using windows with chrome (a few attempts with fire fox as well). Plex installed on my NAS (Synology DS411j)

I have DL'd the files from gethub and followed the read me as well as info from this thread but i fail to get past the "loading" screen, I did walk away for lunch (2 hrs) and it was still "loading"....

could someone with experience give me a few pointers ?

P.S &nbsp;I use notepad ++ for the PHP work

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 22, 2014, 12:00pm UTC](https://forums.plex.tv/t/plex-web-export/5807/545 "2014-01-22T12:00:22Z")

</div>

> Hey all,
> 
> Iv been reading this thread trying to get Plex Export to work for me but i have yet to be successful.
> 
> I am using windows with chrome (a few attempts with fire fox as well). Plex installed on my NAS (Synology DS411j)
> 
> I have DL'd the files from gethub and followed the read me as well as info from this thread but i fail to get past the "loading" screen, I did walk away for lunch (2 hrs) and it was still "loading"....
> 
> could someone with experience give me a few pointers ?
> 
> P.S &nbsp;I use notepad ++ for the PHP work

Check the rights/ownership of the files....

The deamon that runs your apache needs to have access to them, or you'll end up with that exact symptom

/T

---

<div class="post-metadata">

**Author:** ![Jared\_Ashton](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jared\_Ashton](https://forums.plex.tv/u/Jared_Ashton)\
**Post date:** [January 25, 2014, 1:10am UTC](https://forums.plex.tv/t/plex-web-export/5807/546 "2014-01-25T01:10:06Z")

</div>

> Check the rights/ownership of the files....
> 
> The deamon that runs your apache needs to have access to them, or you'll end up with that exact symptom
> 
> /T

Thank you for the fast response,&nbsp;

I am still having trouble tho (same symptom ).... I went into each folder and allowed "full control" to everyone.... I should also point out that i am also a &nbsp;php noob so it could be possible that im using the wrong address... how can i check for this possible issue ?&nbsp;

Im currently using "http://_MY-NAS-IP-HERE_:32400" dose that seem right ?&nbsp;

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 25, 2014, 1:19am UTC](https://forums.plex.tv/t/plex-web-export/5807/547 "2014-01-25T01:19:20Z")

</div>

> I am still having trouble tho (same symptom ).... I went into each folder and allowed "full control" to everyone.... I should also point out that i am also a &nbsp;php noob so it could be possible that im using the wrong address... how can i check for this possible issue ?&nbsp;

I guess this means that your web-server is running Windows, but what web-server are you using?

And not a Windows Noob, so can't help mush here, but can say, that the deamon/service running your webserver is the one that need's the rights, and it's only on the output directory of the Plex Export, not on the PMS media directories

/Tommy

---

<div class="post-metadata">

**Author:** ![Jared\_Ashton](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jared\_Ashton](https://forums.plex.tv/u/Jared_Ashton)\
**Post date:** [January 25, 2014, 2:00am UTC](https://forums.plex.tv/t/plex-web-export/5807/548 "2014-01-25T02:00:34Z")

</div>

> I guess this means that your web-server is running Windows, but what web-server are you using?
> 
> And not a Windows Noob, so can't help mush here, but can say, that the deamon/service running your webserver is the one that need's the rights, and it's only on the output directory of the Plex Export, not on the PMS media directories
> 
> /Tommy

sorry Tommy I feel useless... All I know is that im running a synology NAS with PLEX installed from the built in synology "package center" all i do after adding library files is click the link that takes me to [http://192.168.1.100:32400/web/index.html#](http://192.168.1.100:32400/web/index.html#)!/dashboard&nbsp;and boom there is my plex....

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 25, 2014, 2:06am UTC](https://forums.plex.tv/t/plex-web-export/5807/549 "2014-01-25T02:06:14Z")

</div>

> sorry Tommy I feel useless...

No need :rolleyes:

> All I know is that im running a synology NAS with PLEX installed from the built in synology "package center" all i do after adding library files is click the link that takes me to [http://192.168.1.100:32400/web/index.html#](http://192.168.1.100:32400/web/index.html#)!/dashboard&nbsp;and boom there is my plex....

You'll need a web-server, and then after configuring "Plex Export" with the right settings, put the output from that somewhere in the document tree of that webserver

/Tommy

---

<div class="post-metadata">

**Author:** ![Jared\_Ashton](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jared\_Ashton](https://forums.plex.tv/u/Jared_Ashton)\
**Post date:** [January 25, 2014, 2:18am UTC](https://forums.plex.tv/t/plex-web-export/5807/550 "2014-01-25T02:18:00Z")

</div>

> No need :rolleyes:
> 
> You'll need a web-server, and then after configuring "Plex Export" with the right settings, put the output from that somewhere in the document tree of that webserver
> 
> /Tommy

So i just watched a PHP lesson... Am i correct in understanding that i need a web sever to basically house/run the PHP for PLEX Exporter ? &nbsp; or am i still way out in left field ?&nbsp;

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 25, 2014, 2:24am UTC](https://forums.plex.tv/t/plex-web-export/5807/551 "2014-01-25T02:24:31Z")

</div>

> So i just watched a PHP lesson... Am i correct in understanding that i need a web sever to basically house/run the PHP for PLEX Exporter ? &nbsp; or am i still way out in left field ?&nbsp;

You are correct

---

<div class="post-metadata">

**Author:** ![Jared\_Ashton](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jared\_Ashton](https://forums.plex.tv/u/Jared_Ashton)\
**Post date:** [January 25, 2014, 4:02am UTC](https://forums.plex.tv/t/plex-web-export/5807/552 "2014-01-25T04:02:50Z")

</div>

> You are correct

Ok folks i think im almost there lol....

I have a web server running and iv placed the export files within the directory, I launch the php file via web browser and after a long wait i get the following error "Warning: fwrite() expects parameter 1 to be resource, string given in /volume1/web/cli.php on line 603 ".... &nbsp; any ideas ?&nbsp;

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 25, 2014, 8:05pm UTC](https://forums.plex.tv/t/plex-web-export/5807/553 "2014-01-25T20:05:58Z")

</div>

> Ok folks i think im almost there lol....
> 
> I have a web server running and iv placed the export files within the directory, I launch the php file via web browser and after a long wait i get the following error "Warning: fwrite() expects parameter 1 to be resource, string given in /volume1/web/cli.php on line 603 ".... &nbsp; any ideas ?&nbsp;

Huh......

You update the repository like this:

```
php cli.php -plex-url=http://:32400
```

After that's been run, you copy the following to your webserver:

asset directory

plex-data directory

index.html

The webserver doesn't need php, only the machine generating the data

/T

---

<div class="post-metadata">

**Author:** ![5degrees](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/5degrees/32/8445_2.png) [@5degrees](https://forums.plex.tv/u/5degrees)\
**Post date:** [January 30, 2014, 11:03am UTC](https://forums.plex.tv/t/plex-web-export/5807/554 "2014-01-30T11:03:30Z")

</div>

Must admit it took a bit of perseverance to get Plex Export sorted and I had to dumb down my intended setup but I think this was mainly down to my own competence rather than the Plex Export solution but now I have WAMP and PLEX running on the same server then everything is working fine.

The one issue I do have is the public access to my film library. Is there any obvious solution to make the page password protected?

Big thanks to the author and everyone on this forum who has made support possible - nuff respect!

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [January 30, 2014, 11:16am UTC](https://forums.plex.tv/t/plex-web-export/5807/555 "2014-01-30T11:16:11Z")

</div>

> Is there any obvious solution to make the page password protected?

The simple way:

[http://forum.ragezone.com/f497/tutorial-password-protect-directory-website-579967/](http://forum.ragezone.com/f497/tutorial-password-protect-directory-website-579967/)

or

[http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/](http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/)

/Tommy

---

<div class="post-metadata">

**Author:** ![5degrees](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/5degrees/32/8445_2.png) [@5degrees](https://forums.plex.tv/u/5degrees)\
**Post date:** [January 30, 2014, 11:36am UTC](https://forums.plex.tv/t/plex-web-export/5807/556 "2014-01-30T11:36:06Z")

</div>

Thanks Tommy, easy as peas :D

---

<div class="post-metadata">

**Author:** ![5degrees](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/5degrees/32/8445_2.png) [@5degrees](https://forums.plex.tv/u/5degrees)\
**Post date:** [February 1, 2014, 8:47am UTC](https://forums.plex.tv/t/plex-web-export/5807/557 "2014-02-01T08:47:03Z")

</div>

Query, rather than LIBRARY ITEMS count being displayed in the top RH corner of Export, is it possible to get it to display just the number of items in the films folder?

---

<div class="post-metadata">

**Author:** ![duckdany](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@duckdany](https://forums.plex.tv/u/duckdany)\
**Post date:** [February 13, 2014, 2:31pm UTC](https://forums.plex.tv/t/plex-web-export/5807/558 "2014-02-13T14:31:17Z")

</div>

My plex export won't work.

It stopped, and I don't know why!?

Here is my cmd print screen (and this is the error from my mac mini with remote terminal command):

[https://dl.dropboxusercontent.com/u/55795265/plexexport\_error.png](https://dl.dropboxusercontent.com/u/55795265/plexexport_error.png)

What is wrong with my plex export command?

Thank you!

---

<div class="post-metadata">

**Author:** ![catello](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/catello/32/3982_2.png) [@catello](https://forums.plex.tv/u/catello)\
**Post date:** [March 17, 2014, 3:50pm UTC](https://forums.plex.tv/t/plex-web-export/5807/559 "2014-03-17T15:50:04Z")

</div>

hi,  
it's possible to paging&nbsp; the output generated?  
because my plex library it's around 1300 movies. the output file generated by plex export v2 it's to heavy to load in browser and when i try to use a filter, browser hang

thank

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 17, 2014, 4:21pm UTC](https://forums.plex.tv/t/plex-web-export/5807/560 "2014-03-17T16:21:25Z")

</div>

> hi,  
> it's possible to paging&nbsp; the output generated?  
> because my plex library it's around 1300 movies. the output file generated by plex export v2 it's to heavy to load in browser and when i try to use a filter, browser hang
> 
> thank

I got +6200 entries, and mine is running like a charm, so sucpect something else might be wrong here

/T

[Previous page](https://forums.plex.tv/t/plex-web-export/5807.md?page=27)

[Next page](https://forums.plex.tv/t/plex-web-export/5807.md?page=29)
