speeding_ant Posted April 11, 2012 Share Posted April 11, 2012 New update! Please see the main SimpleFeatures post for future updates. This thread has now been relegated to support, or should be removed/merged by mods. http://lime-technology.com/forum/index.php?topic=12698.msg120524#msg120524 I've created a WebServer plugin for unRAID. It has production conf files for PHP & Lighty. It's all wrapped up into a nice and easy to use package, with a web gui and easy to access configuration files. All dependencies (hopefully) met for default modules (GD etc). Tried to keep as modern as possible. The package size is just shy of 20Mb. Uncompressed the libraries total 67Mb. Works great with the MySQL plugin wondering around. The lighttpd.conf.include in the /config/plugins/sf_webserver/lighttpd folder can be used to hold your own custom configs & sites. Same thing with the php.ini file. Any changes you make will remain on reboot. Download from Google Code: simplefeatures_webserver.plg Requires unRAID Version 5 Beta 12 and above. Make sure no other PHP packages (via unMenu, etc) are installed before using this plugin! Features: • Lighty Web Server 1.4.30: Light and quick web server • PHP 5.3.10 : With all the bells and whistles • WebGui Control: Stop/Start your web server, control which port & location. Check logs & version numbers. Let me know what other features you might be wanting. Install Instructions: 1. Download the PLG file. SimpleFeatures Base package is recommended. 2. Copy simplefeatures_webserver.plg to /boot(flash)/config/plugins/ 4. Reboot or use installplg /boot/config/plugins/simplefeatures_webserver.plg Change Log: 1.1 - Misc bug fixes 1.0 - Updated PHP to 5.3.10. Fixed some bugs with configuration files. Added logging for PHP to prevent STDOUT issues. Changed to make sure timezone is added on start. Remove your /boot/extra/plugins/sf_webserver/php/php.ini file to take advantage of bug fixing. 0.3 - Fixed port disappearing act on startup. Auto create data folder, with welcome screen. Fixed logging issue. 0.2 - Added webgui functions for checking logs, added pizzaz. 0.1 - Initial Plugin Quote Link to comment
jumperalex Posted April 11, 2012 Share Posted April 11, 2012 WE'RE NO WORTHY!!! WE'RE NO WORTHY!!! WE'RE NO WORTHY!!! Right on Speeding, you need to start taking donations for all this excellent work Quote Link to comment
peter_sm Posted April 11, 2012 Share Posted April 11, 2012 Whooo, We need even MORE features in SimpleFeatures what comming next ? //Peter Quote Link to comment
speeding_ant Posted April 11, 2012 Author Share Posted April 11, 2012 http://www.pixeleyes.co.nz Our personal site is now being hosted by unRAID Port translation is a mighty wonderful thing. Server holding up over the last couple of days, no problems or memory leaks that I can see. Was worried the replacement PHP/libtool would affect the stock webGui, but hasn't appeared to have done so. If anything it's faster & better featured. For anyone interested, response headers below: Server SimpleFeatures - lighttpd Transfer-Encoding chunked X-Powered-By PHP/5.3.6 Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 Released version 0.2: Added webgui functions for checking logs, added pizzaz. Check screenshot! Download new .plg from here: http://unraid-simplefeatures.googlecode.com/files/simplefeatures_webserver.plg Quote Link to comment
publicENEMY Posted April 12, 2012 Share Posted April 12, 2012 very nice. following Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 Try it out, give some feedback! Cheers Quote Link to comment
dnoyeb Posted April 12, 2012 Share Posted April 12, 2012 Will try it first thing in the morning to see how it runs / if it runs the virtual box manager web interface properly. Kudos, awesome features you're bringing to the table . Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 after installing plg i am getting the following spewed to my default console over and over PHP Warning: PHP Startup: sqlite3: Unable to initialize module Module compiled with API=20090626, debug=0, thread-safety=0 These options need to match in Unknown on line 0 over and over and over - cannot use tty1 at all Myk Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 What version of unRAID are you running? Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 sorry, latest beta b14 also, since updating to .2 or .02 - config is not keeping my port so it does not auto start..... Myk Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 # Web Server configuration SERVICE="enable" DATADIR="/mnt/cache/.www" WEBPORT="81" # lighttpd_server.conf.include server.document-root = "/mnt/cache/.www" server.port = 81 Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 Are you still getting the SQLite errors? Even after restart? I'll checkout the port dissapearing act, just happened to me too Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 yes, still scrolling on tty1 - set repeats about every 4 seconds and only on tty1 - nothing else is showing up in any log file... Myk Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 also "2012-04-12 01:47:27: (log.c.166) server started " in the error.log is a little misleading - maybe put in access.log instead.... when I 1st looked and saw 49 characters in error.log - it was like "what?" Myk Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 yes, still scrolling on tty1 - set repeats about every 4 seconds and only on tty1 - nothing else is showing up in any log file... Myk How strange... do you have any other packages installed? Only thing I can think of is if another package is replacing a lib dependency with an older one. Also try commenting out mysqlite.so & mysqlite3.so modules in php.ini file. That issue isn't happening on either of my rigs so I'm presuming it's third party? Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 also "2012-04-12 01:47:27: (log.c.166) server started " in the error.log is a little misleading - maybe put in access.log instead.... when I 1st looked and saw 49 characters in error.log - it was like "what?" Myk Just to keep you on your toes Quote Link to comment
publicENEMY Posted April 12, 2012 Share Posted April 12, 2012 installed. change the default data directory. disable and reenable. since the new default directory is not automatically created, i created the directory myself. then i created empty index.htm file. when i try to open http://tower:81/index.htm, all i get is This program cannot display the webpage Most likely causes: •You are not connected to the Internet. •The website is encountering problems. •There might be a typing error in the address. What you can try: Check your Internet connection. Try visiting another website to make sure you are connected. Retype the address. Go back to the previous page. thanks. Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 think it is looking for index.html or index.php mine is a index.html Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 only other thing i can think of that might be conflicting is the subsonic package? Myk Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 Thanks for testing guys. Can you test if it works via the IP of the server as well? Cheers Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 server is rebooting now to see in the php.ini there were the following mysql.so mysqli.so sqlite.so sqlite3.so i commented out the 2 sqlite ones as that was what showing up on the screen will post again here when reboot is finished Myk Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 installed. change the default data directory. disable and reenable. since the new default directory is not automatically created, i created the directory myself. then i created empty index.htm file. when i try to open http://tower:81/index.htm, all i get is Do you think the default behaviour should be to create the data dir? Quote Link to comment
MyKroFt Posted April 12, 2012 Share Posted April 12, 2012 other packages do that if they dont exist Quote Link to comment
speeding_ant Posted April 12, 2012 Author Share Posted April 12, 2012 Right-o, I'll code that in. Fixed the port issue on reboot along with the log issue. Quote Link to comment
Recommended Posts
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.