ronan-gloo / Plex-Over

Web Application to interact with Plex Media Server from a web browser
17 stars 2 forks source link

New Install not working #4

Closed Markyb0y closed 11 years ago

Markyb0y commented 11 years ago

Hi,

I had Plex-Over running on OSX without issue, I have recently moved all my Plex setup to Unraid so I need to reinstall on my Unraid box as you state it needs to be run locally

I have added a webserver to my unraid box which works fine with standard html files etc but I cannot even get to the login window when I try and access the app

I see this error ErrorException [ Warning ]: preg_replace(): Compilation failed: unknown option bit(s) set at offset 0 COREPATH/classes/route.php @ line 112 which is... return pregreplace('#(?<![[):([a-z]+)(?!:]])#uD', '(?P<$1>.+?)', $search);

I assume this relates the the rewrite rules?

the webserver is lighttpd

any idea what url rewrite rules I can use to resolve this?

thanks for the great app

ronan-gloo commented 11 years ago

Hi, You may have a llok on lighttpd rewrite module: http://redmine.lighttpd.net/projects/1/wiki/Docs_ModRewrite But the best way is maybe to use the embed Plex web client: i had started this project before they publish it, but now, i dont think it is still usefull...

Markyb0y commented 11 years ago

I had already looked there but cannot see how to rewrite the existing rules in a lighttpd format

as for not being useful, it is VERY useful

the Plex Web client still doesnt have any way to download/sync locally from a shared library, meaning if I am away from home I can only stream and that is not always practical, whereas your app does allow this, so myself and a friend have shared libraries but we use your app to allow us to watch each others stuff locally if away from home

ronan-gloo commented 11 years ago

I have found this, but cannot test it:

url.rewrite-once = (
    ".*\?(.*)$" => "/index.php?$1",
    ".*\.(js|ico|gif|jpg|png||css)$" => "$0",
    "" => "/index.php"
)
Markyb0y commented 11 years ago

Still the same I am afraid

maybe if you can explain what the 4 lines in the .htaccess file do I can find an equivalent?

ronan-gloo commented 11 years ago

Those lines are rewriting the Uri in order to skip the need of index.php. (ie: http://exampe.com/index.php/artists) You can remove the rewrite rules, and set in app/config/config.php:

'index_file'  => 'index.php'
Markyb0y commented 11 years ago

Hi,

still not working I am afraid, if adding 'index_file' => 'index.php' should ignore all rewrite rules than maybe it isnt the rewrite rules that are the problem?

any other ideas?

Markyb0y commented 11 years ago

just for future reference, the issue was the version of pcre that was installed, it was a non UTF-8 version, once I manually updated it to a UTF-8 it all magically started working!

thanks again