MediaFrontpage - Possible?


Recommended Posts

  • 3 months later...

I have been trying to get this to work for a while. But I have not had luck. I have SAB, SB and CP on unRAID.

 

I installed unRAID Web:

 

I am storing the files to /mnt/users/www

-In http://tower:89/ I configured the Personal Web Server to look at above path and port 86.

 

-I have extracted all the MediaFronPage files to my /mnt/users/www

-I renamed the config.php and layout.php files

-To the best of my abilities, I have edited the config.php file to point to the right places

 

Back in http://tower:89/ I save the configuration and restart the server. When I open http://192.168.0.201:86/ I get a "500 Internal Server Error". And nothing displays.

 

What am I missing?

 

Also when I restart my unRAID server, the Personal Web Server is not enabled, I have to go to http://tower:89/ to re-configure and start. I am giessing I have to do something to my go script to fix.

 

Any help is greatly appreciated.

 

Thanks.

 

H.

 

 

 

 

 

Link to comment
  • 3 months later...

I need some help getting MFP working. It was fun getting lighttpd working with php, but I can't get curl working.

 

I used the lighttpd and php packages from unmenu. I correctly set up php in the conf file of lighttpd so that it will display php pages correctly.

 

I deleted the line in the php conf package to disable the curl.so module in the php.ini file.

I installed a slackware curl build "curl-7.19.6-x86_64-1.txz" and /usr/lib contains libcurl.a, libcurl.la, libcurl.so, libcurl.so.4 and libcurl.so.4.1.1. MFP show that php is enabled correctly but not curl.

 

I strangely cannot look at the content of the /usr/local/lib folder using dir or ls command, is that normal?

 

Can somebody help me?

Link to comment

I tried troubleshooting myself.

 

php -v was showing that libidn.so.11 was missing so I installed the libidn package for slackware. This solved libidn.so.11 missing and php -v no longer returns errors.

 

I was hoping that with this MFP would be working, but no avail. Since my first posting, I have been reading around how to get curl working with PHP. From what I understand, it is not enough to install the php and curl packages but I should instead recompile php with the '--with-curl' function. What is the diffence in the approach? Is recompiling somehting I can do in unraid, or do I need a full slackware environment?

Link to comment

I got it working for a short time before I broke it.  :'(

 

I enabled cgi.fix_pathinfo = 1 in the php.ini, restarted lighttpd and MFP was working! Instead of leaving everything as is, my curiosity got the better of me and I started changing settings in both the php.ini and lightptd.conf files. It is then that cURL functionality was broken. I tried reverting to the settings that originally worked, even rebooting, but it's still broken. I thought linux was all about consistent behaviour...

 

When I get it working again, I will post a how-to with my conf files.

 

Link to comment

I'd like to create something like this for the webGUI, but with YAMJ. Unfortunately, YAMJ doesn't use a relational database currently, so I'd may need to construct it out of a .csv file (YAMJ is able to generate a media report--not sure if that'd include the paths to artowkr, etc.)

 

 

Link to comment

I got it working again! So as promised, here's a how-to for the ones who want MediaFrontPage without using unraid-web:

 

Step 1:

Download and install the php and lighttpd packages from the unmenu package manager. Set them both to install at reboot.

 

Step 2:

Download the following packages and save them in the packages folder on your flash (/boot/packages/):

curl-7.19.2-i486-1 -> http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-12.2/slackware/n/curl-7.19.2-i486-1.tgz

libidn-1.5-i486-1 -> http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-13.1/slackware/l/libidn-1.5-i486-1.txz

 

Step 3:

Open a telnet session on the server and type the following lines:

 

mkdir /tmp/logs
mkdir /boot/custom/lighttpd
mkdir /boot/custom/php
cp /etc/lighttpd/lighttpd.conf.new /boot/custom/php/lighttpd.conf
cp /etc/httpd/php.ini /boot/custom/php/php.ini
rm /etc/httpd/php.ini

 

Step 4:

Go to the custom folder on your flash (/boot/packages/) and edit the lighttpd.conf and php.ini files:

 

lighttpd.conf

remove the # before the "mod_fastcgi" module

server.document-root        = "/mnt/cache/.custom/Web/" <- Set the path where your webpages are saved

server.errorlog             = "/tmp/logs/lighttpderror.log"

accesslog.filename          = "/tmp/logs/lighttpdaccess.log"

server.port                = 8084 <- Set the port you want to access the webserver

#server.username            = "lighttpd" <- I commented this because it would not run

#server.groupname           = "lighttpd" <- I commented this because it would not run

remove all the # before the fastcgi.server module:
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi"
                                 )
                               )

 

php.ini

remove the ; before error_log = /tmp/logs/phplog.log

remove the ; before cgi.fix_pathinfo=1

remove the ; before extension=curl.so

 

 

Step 5:

Open a telnet session on the server and type the following lines:

 

cp /boot/custom/php/php.ini /etc/httpd/php.ini
ls -ef <- note the process id of lighttpd, eg 3265
kill 3265
lighttpd start -f /boot/custom/lighttpd/lighttpd.conf

 

Step 6:

Modify your go file by adding the following lines:

 

# Creates folder for logs
mkdir /tmp/logs

# Install packages
installpkg /boot/packages/curl-7.19.2-i486-1.tgz
installpkg /boot/packages/libidn-1.5-i486-1.txz
rm /etc/httpd/php.ini
cp /boot/custom/php/php.ini /etc/httpd/php.ini

# Start lighttpd
sleep 10
lighttpd start -f /boot/custom/lighttpd/lighttpd.conf

 

Step 7:

Navigate to http://tower:8084/MediaFrontPage/index.php

 

I hope this guide will be useful to somebody.

I created a separate log folder for all my applications, including sabnzbd and sickbeard. The logs can easily be accessed by typing this command: cp /tmp/logs/* /boot/custom/

It will copy all the log file to the custom folder on your flash.

 

I uploaded my lighttpd.conf and php.ini files (the board does not allow the upload of .ini files, so rename the php.conf to php.ini). I'm not sure about the security settings in those files if you decide to open your box to the internet. Perhaps somebody more knowledgeable can look at them and comment?

lighttpd.conf

php.conf

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.