February 22, 201412 yr I want to install a httpd so I can start testing the unRAID GUI I'm working on, how would I go about installing something light like lighttpd or nginx on unRAID 6? All the packages I've seen seem to be for unRAID 5 and x86 rather than x64.
February 22, 201412 yr wget http://slackware.cs.utah.edu/pub/slackware/slackware64-14.1/slackware64/n/httpd-2.4.6-x86_64-1.txz installpgk httpd-2.4.6-x86_64-1.txz REF: http://pkgs.org/slackware-14.1/slackware-x86_64/httpd-2.4.6-x86_64-1.txz.html
February 22, 201412 yr Author Thanks pyrater, I'm getting the following though: root@Tower:/etc/httpd# apachectl start /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
February 23, 201412 yr Author Ok, re-installed it using trolley and used trolley to instal the deps, only problem now is it looks like its installed without php =/ And trying to install php results in: root@Tower:/etc/httpd# trolley install php => Downloading php (5.4.24 x86_64) => Installing /usr/local/boiler/trolley/lib/trolley/cli.rb:102:in `install': undefined method `>' for nil:NilClass (NoMethodError) from /boot/custom/gems/ruby/1.9.1/bundler/gems/thor-d9d26adcd3ee/lib/thor/command.rb:27:in `run' from /boot/custom/gems/ruby/1.9.1/bundler/gems/thor-d9d26adcd3ee/lib/thor/invocation.rb:121:in `invoke_command' from /boot/custom/gems/ruby/1.9.1/bundler/gems/thor-d9d26adcd3ee/lib/thor.rb:363:in `dispatch' from /boot/custom/gems/ruby/1.9.1/bundler/gems/thor-d9d26adcd3ee/lib/thor/base.rb:440:in `start' from /usr/local/bin/trolley:13:in `<main>' Killed oOoo I think I have it up and running
February 23, 201412 yr Author meh, it complained about libphp5.so missing, so I installed php 5 with trolley install php but that broke the default webgui
February 23, 201412 yr You can try a personal plugin I use for Apache but its not complete. Its in my github in my signature. Its for unRAID 6 beta 3 and above only. It will work but the only variable from the plugin page that it uses is the httpd.conf location. You can input the Document Root directory and port but they will not be updated in your httpd.conf file. You still have to edit your conf file manually. I just placed /etc/httpd/httpd.conf in /boot/config/plugins/apache and edited the Listen, Servername, DocumentRoot and Directory and uncommented "Include /etc/httpd/mod_php.conf" I run my unraid web page on port 88 and apache on 80. The plugin downloads the php packaged but just moves the missing php lib. https://github.com/dmacias72/unRAID_6.0/blob/master/apache_64.plg
February 23, 201412 yr Author the php version on unraid is 5.4.20 so it might be possible to use php 5.4's built in web server, I will give it a go, if so, nothing will need to be installed
February 23, 201412 yr I'm not sure you can use the built in php web server without breaking the unRAID web page. The plugin I made works, it just doesn't update the port and document root from the plugin web page. You have to edit your conf manually. If someone wants to write the sed commands to parse and write to https.conf it would be complete. I just haven't had time.
February 23, 201412 yr Author built in web server works absolutely fine, just cd to the directory then type: php -S 192.168.0.5:8888 where 192.168.0.5 is the ip of the tower and 8888 is the port you want it to run on, certainly for testing it works fine, not yet sure how to get sqlite working with it though (php reports sqlite3 class not found so I guess the php isn't compiled with sqlite support), could probably install mysql but trying to keep it as light as possible.
February 24, 201412 yr I'll have to try it out. Where is the document root located? And can you change to use a permanent location.
February 24, 201412 yr Author whereever you cd to first, so you can have it anywhere, you can also specify the root http://www.php.net/manual/en/features.commandline.webserver.php
Archived
This topic is now archived and is closed to further replies.