Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lighttpd for UnRAID plugin

Featured Replies

lighttpd+unraid-0.2.01-i386-bubba.tgz

 

For unRAID 5.0-beta2

 

  Download from:  http://www.tcpatools.com/bubba/lighttpd+unraid-0.2.01-i386-bubba.tgz

 

As configured in this package, Lighttpd tests the currently installed version of php (in /usr/bin/php-cgi) and if it is the CLI version (or does not exist), uses one config, and if it is the CGI version, it uses the fastCGI config.  To upgrade your stock php to the CGI version, see this thread:  http://lime-technology.com/forum/index.php?topic=7274.0

Note to folks installing their own php:  This package of Lighttpd, will look for php in /usr/bin/php-cgi.  The lighttpd.conf file I have constructed will test it to see if the installed version of php is the CLI version, or the CGI version, and adjust the Lighttpd configuration accordingly.  But if you add/replace php-cgi, you need to stop and restart Lighttpd.

 

The fastCGI config points to /boot/custom/php/php-cgi.ini  for the php.ini file.  I intend to expand this config with a conf.d directory just like the Lighttpd config works.

 

This is a self-contained package to add the Lighttpd web server, version 1.4.26, to unRAID.

 

Home is in /boot/custom/lighttpd.

 

It modifies no stock unRAID files.  

 

Includes a plugin for managing the very basic configuration parameters, and for starting/stopping lighttpd.  It should work with the defaults.

 

I made no changes to php, choosing instead to make this package the webserver only... so it utilizes the stock php that ships with unRAID.  A future package will do an in-place upgrade of the php, to give you a robust php-cgi that will live in parallel with the php that ships with stock unRAID.

 

Comments and suggestions welcome.

 

========Revisions=========

0.2.01 - updated for unRAID 5.0-beta2

0.0.4 - improved config and default splash.  Added kill button if stop fails.

0.0.3 - added intelligent auto config based on your php (CLI vs CGI)

0.0.1 - initial release for testing

 

==========To Do===========

Needs to wait for array startup --- as of now if you point document-root to the array and the array has not finished mounting, lighttpd won't start.

Add more config parameters to the user configuration page.

Show output from start script, so you can see what happens when it is broken. ;)

More input checking (like test for existence of document-root before letting user save it).

Add a "test config" options for user configuration.

Add a "test config" for conf.d configurations too.

Add log viewer.

Add a kill button for when it won't stop cleanly.

I made no changes to php, choosing instead to make this package the webserver only... so it utilizes the stock php that ships with unRAID.  A future package will do an in-place upgrade of the php, to give you a robust php-cgi that will live in parallel with the php that ships with stock unRAID.

 

What config options do I need to use when building PHP to make it compatible with lighttpd?  I guess a similar question is this: did you custom build lighttpd, and if so, what config options did you use?

 

BTW, a small issue which maybe should be addressed some day is this: when you install "stock" slack packages, besides any executables, libraries, etc. you need, you also usually get a number of files you don't need, mainly documentation (man pages, etc.), but possibly other binaries you don't need.  For example, if you were to install 'stock' samba, you would get many megabytes of documentation along with swat.  I suppose with large amounts of memory available these days, and ability to set up a swap file, this is less of an issue, but as more and more plugins get developed, I think it's possible the root file system could swell quite large.  One solution might be for the package manager to include ability to "prune" specified directory trees after installation.

  • Author

The chief thing is to build both php CLI and php-cgi.  The cgi version has an awful lot of stuff for webserving.

 

You will see the diffs when I post the php-upgrade package later today.  It leaves the CLI version alone, and just adds php-cgi as the cgi version.

 

As for lighttpd, I built it with defaults... didn't change a thing.

 

As for pruning, that's a good idea... I intend to prune the packages as soon as I get them finalized.  A pruning script might be a good ting too.

BTW, a small issue which maybe should be addressed some day is this: when you install "stock" slack packages, besides any executables, libraries, etc. you need, you also usually get a number of files you don't need, mainly documentation (man pages, etc.), but possibly other binaries you don't need.  For example, if you were to install 'stock' samba, you would get many megabytes of documentation along with swat.  I suppose with large amounts of memory available these days, and ability to set up a swap file, this is less of an issue, but as more and more plugins get developed, I think it's possible the root file system could swell quite large.  One solution might be for the package manager to include ability to "prune" specified directory trees after installation.

 

In my package install utility I have a set of routines or a shell function that does pruning.

I commented out the /usr/src because I was removing the md driver and kernel .config

 

#!/bin/bash

if [ "${DEBUG:=0}" -gt 0 ]
  then set -x -v
fi

P=${0##*/}              # basename of program
R=${0%%$P}              # dirname of program
P=${P%.*}               # strip off after last . character
O=${P%_*}               # Operand
D=${P#${O}_}            # Data (last param before _ character)

PKGDIR=${PKGDIR:=/boot/packages}

# Cleans ram drive root directory of unneeded files to save ram
clean_ram_root()
{
 [ -d /usr/man ] && find /usr/man -type f -exec rm {} \;
 [ -d /usr/man ] && find /usr/man -type l -exec rm {} \;
 [ -d /usr/man ] && find /usr/man -type d -empty -depth -exec rmdir {} \;
 [ -d /usr/lib ] && find /usr/lib -type f -name '*.a'   -exec rm {} \;
 [ -d /usr/lib ] && find /usr/lib -type d -empty -depth -exec rmdir {} \;
 [ -d /usr/doc ] && find /usr/doc -type f               -exec rm {} \;
 [ -d /usr/doc ] && find /usr/doc -type d -empty -depth -exec rmdir {} \;
 # [ -d /usr/src ] && find /usr/src -type f               -exec rm {} \;
 # [ -d /usr/src ] && find /usr/src -type d -empty -depth -exec rmdir {} \;
 [ -d /usr/include ] && find /usr/include -type f -exec rm {} \;
 [ -d /usr/include ] && find /usr/include -type d -empty -depth -exec rmdir {} \;
}

for package in ${PKGDIR}/*.tgz $*
do
  PKGB=${package##*/}
  PKGB=${PKGB%.tgz}
  # echo $PKGB
  if [ ! -f /var/log/packages/${PKGB} -o ${FORCE:=0} -gt 0 ]
     then echo "Installing $package"
          installpkg $package 2>&1 | logger -tinstallpkg -plocal7.info -i
          clean_ram_root
     else echo "$package already installed."
  fi
done

clean_ram_root

 

As for large root ram environment.

When root ram is moved to tmpfs rather then initramfs, you can use union or aufs to expand/overlay it onto a filesystem or directory.

 

 

 

What config options do I need to use when building PHP to make it compatible with lighttpd?  I guess a similar question is this: did you custom build lighttpd, and if so, what config options did you use?

 

This is what I compiled in and it was still under 3MB.

But I do not believe pear was installed correctly.

the pcre-regex is a critical component.  I tried really hard to get xmlrpc going, but emhttp is not supporting POSTS and the RPC2.

 

I'm up in the air to include sqlite and gdbm for localized database techniques.

sqlite and gdbm are not very large, but I do see their use for some projects.

GDBM libs are already on the root ram.

 

The bz2,zip,zlib can be important later for inspecting and reviewing packages.

 

# tmm - modifed to product only php-cli for unraid
php_configure() {
EXTENSION_DIR=/usr/lib${LIBDIRSUFFIX}/php/extensions \
CFLAGS="$SLKCFLAGS" \
./configure \
 $* \
 --prefix=/usr \
 --libdir=/usr/lib${LIBDIRSUFFIX} \
 --with-libdir=lib${LIBDIRSUFFIX} \
 --sysconfdir=/etc \
 --without-apxs2 \
 --with-apache=no \
 --disable-all \
 --enable-cli \
 --with-pcre-regex \
 --enable-libxml \
 --enable-xml \
 --enable-simplexml \
 --enable-xmlreader \
 --enable-xmlwriter \
 --with-xmlrpc \
 --enable-dom \
 --enable-inifile \
 --disable-Reflection \
 --with-bz2 \
 --with-zlib \
 --enable-zip \
 --with-pear  \
 --build=$ARCH-slackware-linux
}

 

I suppose with large amounts of memory available these days, and ability to set up a swap file, this is less of an issue, but as more and more plugins get developed, I think it's possible the root file system could swell quite large.  One solution might be for the package manager to include ability to "prune" specified directory trees after installation.

I think it will be necessary to clean up after the installation, or, provide a command or two in the install script to either prune the extra documentation, etc or to move them to an alternate location on one of the hard disks.  There are still many who are running with just their original 512 Meg of ram, and it is not practical to upgrade.  (My original D865GLCLK based MD1200 server still has 4 128-Meg DDR RAM strips.)

 

The issue is not so much that the extra files are installed but that even if you add/enable a swap device, the extra files in the root file system are never swapped out.   

 

Perhaps a tempfs can be established, the installation scripts be encouraged to move (or install) the extras there if pruning is not possible.

(It is my understanding that tempfs content will be swapped out if a swap space is available)

 

There will be some packages that will be impossible to install on a system with 512 Meg of RAM. 

(the Java Development Environment is one. It is just too huge)

 

Package developers can easily simulate a machine with less memory by adding a set of lines to their syslinux.cfg file. Adding a mem=512M boot code will force the OS to use only 512 Meg of ram.

 

default menu.c32

menu title Lime Technology LLC

prompt 0

timeout 100

label unRAID OS

  menu default

  kernel bzimage

  append initrd=bzroot

label unRAID OS 512Meg ram

  kernel bzimage

  append initrd=bzroot mem=512M

label Memtest86+

  kernel memtest

 

 

  • Author

In my php distro, I have enabled and compiled everything that might reasonably be used, but then pruned the libs, and commented them out in php.ini.

 

That way, if I want to so something in mySQL, all I have to do is add the lib file and uncomment the mySQL extension in php.ini

  • Author

New version of Lighttpd for UnRAID is up. Link is in OP.

 

This version tests the version of php on your system, and if it is the CLI version, uses the php CLI config, and if it is the CGI version, it uses the fastCGI config.  It also has some more useful "It Works!" default page.

 

 

I have also posted a package to do an in-place upgrade of the unRAID stock php to add the CGI version, and several libs.  

 

http://lime-technology.com/forum/index.php?topic=7274.0

  • Author
I suppose with large amounts of memory available these days, and ability to set up a swap file, this is less of an issue, but as more and more plugins get developed, I think it's possible the root file system could swell quite large.

 

This might be the time to consider some type of secondary permanent filesystem storage, such as a second flash, that is overlayed over the initramfs after booting but before emhttp starts.

 

Or for a simpler approach, mount a secondary location on /usr ... that's 3GB that can be relocated easily.

I suppose with large amounts of memory available these days, and ability to set up a swap file, this is less of an issue, but as more and more plugins get developed, I think it's possible the root file system could swell quite large.

 

This might be the time to consider some type of secondary permanent filesystem storage, such as a second flash, that is overlayed over the initramfs after booting but before emhttp starts.

 

Or for a simpler approach, mount a secondary location on /usr ... that's 3GB that can be relocated easily.

 

Can we do this via /boot/extra install script or does it need to be done earlier?

 

One feature that I learned of tmpfs was that it can be swapped out if memory becomes an issue.

initramfs/rootfs cannot be swapped which is why we run out of memory even if swap is available.

 

  • Author
Can we do this via /boot/extra install script or does it need to be done earlier?

 

Earlier.  I would do it with a boot config option, like "safe mode."

 

Don't want to repopulate the whole thing at every boot, so you need some way to detect changes... perhaps record the unRAID version somewhere on the device, and repopulate only on a version change.

 

Of course, that's gonna hurt if you keep multiple version of unRAID on the system and boot from a menu!  But for folks like that, they likely have lots of RAM and no need to use the persistent /usr.

 

 

Can we do this via /boot/extra install script or does it need to be done earlier?

 

Earlier.  I would do it with a boot config option, like "safe mode."

 

Don't want to repopulate the whole thing at every boot, so you need some way to detect changes... perhaps record the unRAID version somewhere on the device, and repopulate only on a version change.

 

Of course, that's gonna hurt if you keep multiple version of unRAID on the system and boot from a menu!  But for folks like that, they likely have lots of RAM and no need to use the persistent /usr.

 

I have to do some experimentation.

 

I think a  hook really early in rc.S would allow moving some stuff around to tmpfs allowing swap to come into play.

 

I found a way of patching the rc.inet1.conf to allow multiple nics to be detected, but it requires some early patching.

 

something equivilent to the go script but much earlier.

perhaps somehing like /boot/config/rc.S or rchook.S ,etc, etc.

 

For those who don't use it, they will never know for others it becomes a way to enhance the system early.

(just thinking out loud.. with my fingers).

 

 

EDIT;

root@atlas / #du -hsx /usr  /var /usr/local

151M    /usr

156M    /var

328K    /usr/local

 

One feature that I learned of tmpfs was that it can be swapped out if memory becomes an issue.

initramfs/rootfs cannot be swapped which is why we run out of memory even if swap is available.

 

I was under impression that initramfs was itself a tmpfs instance.  From this article:

 

A few years ago, Linus Torvalds had a neat idea: what if Linux's cache could be mounted like a filesystem? Just keep the files in cache and never get rid of them until they're deleted or the system reboots? Linus wrote a tiny wrapper around the cache called "ramfs", and other kernel developers created an improved version called "tmpfs" (which can write the data to swap space, and limit the size of a given mount point so it fills up before consuming all available memory). Initramfs is an instance of tmpfs.

  • Author
something equivilent to the go script but much earlier.

perhaps somehing like /boot/config/rc.S or rchook.S ,etc, etc.

 

That's how I'd do it.

I was under impression that initramfs was itself a tmpfs instance.

 

Linus wrote a tiny wrapper around the cache called "ramfs", and other kernel developers created an improved version called "tmpfs" (which can write the data to swap space, and limit the size of a given mount point so it fills up before consuming all available memory). Initramfs is an instance of tmpfs.

 

I don't think it's exactly the same, although the article seems to state that.

My tests showed that it did not swap out but tmpfs does.

I will do some further testing later to provide scenarios.

Also the initramfs does not allow union or aufs to merge the directories (i've tried).

I will try with the latest beta later and see if it will swap out or not and post the results.

if it does, then the answer is to create a plugin that makes a swap file on some local filesystem or cache.

 

 

ramfs and tmpfs:

58 ----------------

59

60 One downside of ramfs is you can keep writing data into it until you fill

61 up all memory, and the VM can't free it because the VM thinks that files

62 should get written to backing store (rather than swap space), but ramfs hasn't

63 got any backing store.  Because of this, only root (or a trusted user) should

64 be allowed write access to a ramfs mount.

65

66 A ramfs derivative called tmpfs was created to add size limits, and the ability

67 to write the data to swap space.  Normal users can be allowed write access to

68 tmpfs mounts.  See Documentation/filesystems/tmpfs.txt for more information.

69

 

http://www.mjmwired.net/kernel/Documentation/filesystems/ramfs-rootfs-initramfs.txt

 

There's more to review, I'll posts my tests later.

 

  • Author

New version posted.  See OP for details.

 

lighttpd+unraid-0.0.4-i386-bubba.tgz

This might be better moved to a different thread, with the seed posts

Here are the screen captures of initramfs vs tmpfs for now.

 

 

Create 512MB swap file on /boot.

 

root@unraidvm:/boot/bin# ./swap.sh                

512+0 records in

512+0 records out

536870912 bytes (537 MB) copied, 39.655 s, 13.5 MB/s

Setting up swapspace version 1, size = 536866 kB

LABEL=UNRAID-SWAP, UUID=12558d03-e186-454c-93e7-bdc207b3657e

swapon on /boot/unraid.swapfile

swapon: warning: /boot/unraid.swapfile has insecure permissions 0777, 0600 suggested

 

Shows swap file

root@unraidvm:/boot/bin# ls -l /boot/unraid.swapfile

-rwxrwxrwx 1 root root 536870912 Aug  4 18:44 /boot/unraid.swapfile*

root@unraidvm:/boot/bin# ls -l  --si /boot/unraid.swapfile

-rwxrwxrwx 1 root root 537M Aug  4 18:44 /boot/unraid.swapfile*

 

Shows swap in use

root@unraidvm:/boot/bin# top -b -n1

top - 18:45:15 up 4 days,  6:34,  1 user,  load average: 0.24, 0.12, 0.04

Tasks:  57 total,   1 running,  56 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   507372k used,     7484k free,     5308k buffers

Swap:   524280k total,        0k used,   524280k free,   434352k cached

 

 

Create 512MB file  on /tmp, eats up all ram, hoping to swap out ram. No GO. Killed

root@unraidvm:/tmp# dd if=/dev/zero of=/tmp/tmp.dd bs=1M count=512

Killed

 

root@unraidvm:/tmp# top -b -n1  | head

top - 18:47:02 up 4 days,  6:36,  1 user,  load average: 0.16, 0.11, 0.04

Tasks:  53 total,   1 running,  51 sleeping,   0 stopped,   1 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   509572k used,     5284k free,       24k buffers

Swap:   524280k total,     3228k used,   521052k free,   481104k cached

 

 

root@unraidvm:/tmp# ls -l /tmp/tmp.dd

-rw-r--r-- 1 root root 332398592 Aug  4 18:46 /tmp/tmp.dd

root@unraidvm:/tmp# ls -l --si /tmp/tmp.dd

-rw-r--r-- 1 root root 333M Aug  4 18:46 /tmp/tmp.dd

 

 

Now mount a 1gb tmpfs on /tmpfs

mount -t tmpfs -o size=1g,mode=0775 tmpfs /tmpfs

 

write a 512MB file on /tmpfs

root@unraidvm:/tmpfs# dd if=/dev/zero of=/tmpfs/tmpfs.dd bs=1M count=512

512+0 records in

512+0 records out

536870912 bytes (537 MB) copied, 11.7963 s, 45.5 MB/s

 

success

root@unraidvm:/tmpfs# ls -l /tmpfs/tmpfs.dd

-rw-r--r-- 1 root root 536870912 Aug  4 18:57 /tmpfs/tmpfs.dd

root@unraidvm:/tmpfs# ls -l --si /tmpfs/tmpfs.dd

-rw-r--r-- 1 root root 537M Aug  4 18:57 /tmpfs/tmpfs.dd

 

show memory used

root@unraidvm:/tmpfs# top -b -n1 | head

top - 18:58:15 up 4 days,  6:47,  1 user,  load average: 0.24, 0.06, 0.02

Tasks:  51 total,   1 running,  50 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   506940k used,     7916k free,       24k buffers

Swap:   524280k total,   219064k used,   305216k free,   464528k cached

 

make bigger file

root@unraidvm:/tmpfs# dd if=/dev/zero of=/tmpfs/tmpfs.dd bs=1M count=900

Killed

 

no go, not enough ram or swap or tmpfs, but almost made it.  

root@unraidvm:/tmpfs# ls -l --si /tmpfs/tmpfs.dd

-rw-r--r-- 1 root root 857M Aug  4 18:59 /tmpfs/tmpfs.dd

 

root@unraidvm:/tmpfs# top -b -n1 | head -5

top - 19:00:01 up 4 days,  6:49,  1 user,  load average: 0.74, 0.23, 0.07

Tasks:  51 total,   1 running,  50 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   508672k used,     6184k free,       24k buffers

Swap:   524280k total,   523880k used,      400k free,   471904k cached

 

root@unraidvm:/tmpfs# ls -l --si /boot/unraid.swapfile

-rwxrwxrwx 1 root root 537M Aug  4 18:44 /boot/unraid.swapfile

 

 

 

Remake swap to 1GB

root@unraidvm:/# /boot/bin/swap.sh        

1024+0 records in

1024+0 records out

1073741824 bytes (1.1 GB) copied, 84.0368 s, 12.8 MB/s

Setting up swapspace version 1, size = 1073737 kB

LABEL=UNRAID-SWAP, UUID=c934744a-b2c4-4afa-9def-76727bb56094

swapon on /boot/unraid.swapfile

swapon: warning: /boot/unraid.swapfile has insecure permissions 0777, 0600 suggested

 

root@unraidvm:/# ls -l --si /boot/unraid.swapfile

-rwxrwxrwx 1 root root 1.1G Aug  4 19:03 /boot/unraid.swapfile

 

top - 19:08:40 up 4 days,  6:58,  1 user,  load average: 0.00, 0.11, 0.08

Tasks:  52 total,   1 running,  51 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 99.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   508076k used,     6780k free,      180k buffers

Swap:  1048568k total,        0k used,  1048568k free,   440880k cached

 

remount 1g tmpfs

mount -t tmpfs -o size=1g,mode=0775 tmpfs /tmpfs

root@unraidvm:/usr# df -vH /tmpfs

Filesystem             Size   Used  Avail Use% Mounted on

tmpfs                  1.1G      0   1.1G   0% /tmpfs

 

 

make 900mb file

root@unraidvm:/# dd if=/dev/zero of=/tmpfs/tmpfs.dd bs=1M count=900

900+0 records in

900+0 records out

943718400 bytes (944 MB) copied, 37.5145 s, 25.2 MB/s

 

success

root@unraidvm:/# ls -l --si /tmpfs/tmpfs.dd

-rw-r--r-- 1 root root 944M Aug  4 19:10 /tmpfs/tmpfs.dd

root@unraidvm:/# top -b -n1 | head -5

top - 19:10:56 up 4 days,  7:00,  1 user,  load average: 0.49, 0.31, 0.16

Tasks:  51 total,   1 running,  50 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 99.9%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   507452k used,     7404k free,      180k buffers

Swap:  1048568k total,   616964k used,   431604k free,   464108k cached

 

Drop mount, show memory used

root@unraidvm:/boot/bin# umount /tmpfs

 

root@unraidvm:/boot/bin# top -b -n1 | head -5

top - 19:12:51 up 4 days,  7:02,  1 user,  load average: 0.07, 0.20, 0.14

Tasks:  52 total,   1 running,  51 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 99.9%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:    514856k total,   185712k used,   329144k free,       84k buffers

Swap:  1048568k total,     2680k used,  1045888k free,   156496k cached

 

 

without a size tmpfs assumes max growth to be 50% of ram.

root@unraidvm:/usr# mount -t tmpfs tmpfs /tmpfs

root@unraidvm:/usr# df -vH /tmpfs

Filesystem             Size   Used  Avail Use% Mounted on

tmpfs                  264M      0   264M   0% /tmpfs

 

So this would be good for /var to limit it to 1/2 available ram.

  • Author

Updated for unRAID 5.0-beta2.

 

See OP for link and details.

 

This does not yet use the events to start and stop... that will come soon.

  • 2 months later...

I'm getting my ass kicked trying to set-up lighttpd. Let me tell you where I am to this point.

 

I've installed the package by doing

 

wget -O /tmp/unweb.tgz http://www.tcpatools.com/bubba/unrai...i386-bubba.tgz

 

and then

 

installpkg /tmp/unweb.tgz

 

and that appears to be fine; I can get to http://tower:89

 

The problem is when I try to do the web-server config, on lighttpd's first page. Where it asks for the dir for the web-server files, I've tried a couple of options, including just the example /mnt/disk1/www/...which I assume would just put the http, php, xml, etc files on disk1? And I choose a port of 81, and hit save configuration and NOTHING appears to happen!

 

I assume...if it's "working" correctly...I should be able to see those http, php, xml config files being generated somewhere?? But I get nothing!!

 

Any thoughts on what I'm missing?

 

CD

 

EDIT- OS, I'm in the wrong thread! I just did a search on lighttpd and hit it. Sorry.

 

EDIT2- OK, where can I get lighttpd help for 4.5.6?

  • 1 year later...

So this was updated for beta2 .. will it still work for beta14?

  • Author

I'm using it in 5.0 b14.

 

Remember if you change config, you must stop and restart Lighttpd.

ok so far I figured out (I think) I have to make changes to the config using includes in the conf.d folder

 

Right?

 

Ok so now how do I do that so I can get a lighting of folders in a specific share?

 

Never mind, forgot about the config page in Utils.

  • 1 month later...

First off, I'm not 100% on if this is an issue with PHP or with Lighttpd or some combo of the two, so bear with me.  I've installed the unraid PHP package, as well as this lighttpd package and the PHP upgrade (from here -- http://lime-technology.com/forum/index.php?topic=7274.0).

 

I have uncommented every line of the extensions in my php-cgi.ini file and can veryify that it works for other things like mysql (I have loaded up phpMyAdmin without issue). 

 

However, no matter what I do, I can't get the gd.so extension to load (which I'm determining from looking at the list of loaded modules generated via phpinfo() ).

 

Does anyone else have this issue or have any ideas on what I might need to change/look for to fix it?  I'm not quite sure what info would be useful in figuring this out, so let me know if I need to provide anything...

 

Thanks

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.