When I insert
lighttpd -D -f /opt/etc/lighttpd/lighttpd.conf
there's no reply... it does nothing...
Printable View
When I insert
lighttpd -D -f /opt/etc/lighttpd/lighttpd.conf
there's no reply... it does nothing...
root]$ lighttpd -t -f /opt/etc/lighttpd/lighttpd.conf
Syntax OK
root]$
anything else?
I know it's odd... i've used your and... (?) the other tutorial more than once...
and they worked! (not counting mysql, which i didn't need)
If you have a spare WL500-gp, you can try to install it from the start... i think it wont work.
oh I might know what's going on...
you've probably executed:
in the new version they fixed that, in fact when you remove everything in that folder something goes wrong:pQuote:
For some reason lighttpd doesn't always shut-down properly during a reboot, because it leaves behind some residue this way that stops it from starting again!
We have an easy fix for this tho:
Quote:
vi /opt/etc/init.d/S80lighttpd
Code:
Add after #!/bin/sh:
rm /opt/etc/lighttpd/conf.d/*
you should remove the line in the startupscript (the rm one).
then execute these commands
and then try to start lighttpdQuote:
touch /opt/etc/lighttpd/conf.d/01-default.conf
chmod 700 /opt/etc/lighttpd/conf.d/01-default.conf
I hope that worked:)Quote:
/opt/etc/init.d/S80lighttpd start
Thanks for all the help but that didnt work. I suspected that the "rm /opt/etc/lighttpd/conf.d/* " didnt look to good, so i removed lighttpd and then reinstalled without includin rm... in the file, but it still didnt work.
Is there any way of installing older version of lighttpd?
too bad:(
this is what newbiefan said a while back: http://wl500g.info/showpost.php?p=166345&postcount=3
it includes a download link for an older version.
I don't get it tho, I'm running the new version and it seems to work correctly, with exactly the same settings as in this how-to.:confused:
i can send you .conf and S80lighttpd if you'll like...
only thing that it sais when i start it is:
init.d]$ ./S80lighttpd restart
Starting web server: lighttpd
init.d]$
but the server does not start...
and the opt/etc/lighttpd/conf.d/01-default.conf file is always empty... is that normal?
Hi,
thanks for this great HowTo wpte :)
I got an entry in the error.log file:
The server did not start.Code:(server.c.1105) fdevent_init failed
To fix this error, I had to edit the following line in lighttpd.conf:
To help other users, that get this error message, maybe you can take this hint in your How-To.Code:# server.event-handler = "freebsd-kqueue" # needed on OS X
change to
server.event-handler = "poll" # needed on OS X
Again, GREAT WORK!
ps: Is your website hosted on your router?
Regards
Oliver
I'm glad you like it carterb:)
I'm indeed running the website on my router, not just for extra proof my how-to should work, but I simply don't have any other server at the moment:p
I was thinking of putting that up in the how-to, since the ipkg builders didn't provide any solution yet... I expected they'd fix it:o
hei man...
found solution (think you should include it in tutorial)
http://www.mattgibson.ca/2009/11/05/...n-asus-wl-500/
THANKS FOR ALL THE HELP! :D
I included that a while ago... I even told you to test if that was the problem:
http://wl500g.info/showpost.php?p=166318&postcount=38
you told me however there was no feedback from lighttpd...
anyway, the same problem with version 1.4.25-1
Hello,
I followed this tutorial without any problems until the installation of buildroot.
when i enter ipkg install devel-buildroot the following error message shows up:
I have installe wget-ssl previously (wget-ssl - 1.12-2)Code:ipkg install optware-devel buildroot
Installing optware-devel (6.8-9) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/optware-devel_6.8-9_mipsel.ipk
wget: can't load library 'libidn.so.11'
Installing buildroot (4.1.1-13) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/buildroot_4.1.1-13_mipsel.ipk
wget: can't load library 'libidn.so.11'
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 16: `wget -q -P /opt/ipkg-mNvRKO http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/optware-devel_6.8-9_mipsel.ipk'
Failed to download optware-devel. Perhaps you need to run 'ipkg update'?
ipkg_download: ERROR: Command failed with return value 16: `wget -q -P /opt/ipkg-mNvRKO http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/buildroot_4.1.1-13_mipsel.ipk'
Failed to download buildroot. Perhaps you need to run 'ipkg update'?
Now even 'ipkg update' does not work any longer.
Any ideas or suggestions?
Thanks in advance
something went wrong there...
try to remove all the wgets installed
meanwhile you can download the ipkg package manually on your pc:Quote:
ipkg remove wget wget-ssl
just use ftp or samba to place it anywhere on your diskQuote:
then you can simply install it with
I can recommend wget-ssl since it's the normal wget + ssl support (https)Quote:
ipkg install /path/to/wget
I hope that'll fix it:)
Nice setup!
Everything words perfectly... almost. I cant get imap_open to work... someone got it work?
http://www.php.net/manual/en/imap.requirements.php
it requires an extra plugin for php
you can try to compile it as well with the build utilities you've installed in this how-to
don't forget to set the prefix to opt
Quote:
./configure --prefix=/opt
manually reinstalling wget-ssl solved the problem, thank you.
Though 2 other questions/problems emerged:
one, in order to work with mysql in the shell i have to type "mysql -u myadminname"; is there a way to change the default admin user?
and second a problem with lighttpd:
when i try to start lighttpd it complains about no configuration available. when i specifie the file with -f
i get the following error:
the sections in question look like this:Code:lighttpd -f /opt/etc/lighttpd/*.conf
Duplicate config variable in conditional 0 global: fastcgi.server
2009-12-12 18:12:47: (configfile.c.907) source: cat /opt/etc/lighttpd/conf.d/*.conf line: 15 pos: 1 parser failed somehow near here: (EOL)
2009-12-12 18:12:47: (configfile.c.907) source: /opt/etc/lighttpd/lighttpd.conf line: 333 pos: 1 parser failed somehow near here: (EOL)
and the end of the file:Code:server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
Code:# Configuration from other optware packages
include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"
good good:)
when you edit the configuration file of mysql /opt/etc/my.cnf
you can change
into any user you want, when you do this you must also change the owner of the mysql folder again!Code:# The MySQL server
[mysqld]
user = root
not sure if that works actually... try it out, otherwise stay with the old configuration;)Quote:
chown -R admin:admin /opt/var/lib/mysql
the contents of the conf.d folder is like:
the 01-default.conf shouldn't contain any data as far as I know..Quote:
ls /opt/etc/lighttpd/conf.d/
01-default.conf
if it does you may empty it by doing:
does it still show up errors when starting?Quote:
cat /dev/null > /opt/etc/lighttpd/conf.d/01-default.conf
the thing with mysql didn't work, so i did a little work-around using an alias :)
but i had no luck with lighttpd:
the parts from the config i postet belong to the /opt/etc/lighttpd/lighttpd.conf, as i thought this is the file used.Code:ls /opt/etc/lighttpd/conf.d
01-default.conf 10-php-fcgi.conf
running lighttpd -f /opt/etc/lighttpd/conf.d/01* (or 10*) results in:
and using the /opt/etc/lighttpd/lighttpd.conf results in the errors posted in the previouslyCode:lighttpd -f /opt/etc/lighttpd/conf.d/01*
2009-12-12 19:39:14: (configfile.c.1202) a default document-root has to be set
2009-12-12 19:39:14: (server.c.613) setting default values failed
are you running an old version of lighttpd?
on the old versions you'd have problems with those files in conf.d
since the files in conf.d don't really have much use (configuration of modules) I made them empty or removed them.
either way, perhaps you should try the same:
you can always re-create with by touch (creates an empty file)Quote:
rm /opt/etc/lighttpd/conf.d/*
Quote:
touch /opt/etc/lighttpd/conf.d/01-default.conf
the installed version is 1.4.25-1, therefore there shouldn't be problems with these files (according to what i read on the first pages in this thread)
right now i'm somewhat confused:
-running "lighttpd" does not work
if only 01-default.conf exists in /opt/etc/lighttpd/conf.d/
-running "lighttpd -f /opt/etc/lighttpd/*.conf" does not return anything (i assume it works somehow :P )
and
-running "/opt/etc/init.d/S80lighttpd start" returns "Starting webserver: lighttpd" but no process shows up the process list
When i try to connect to the router through my browser to view the test page (the one created in the second post of this thread to test the server) i get a "failed to connect" error
if i restore 10-php-fcgi.conf to /opt/etc/lighttpd/conf.d/
both "lighttpd -f /opt/etc/lighttpd/*.conf" and "/opt/etc/init.d/S80lighttpd start" cease to work with the previously posted error
newest version indeed:)
basicly the only config file you need in conf.d is: /opt/etc/lighttpd/conf.d/01-default.conf
and that file should be empty
then you should be able to start the webserver via /opt/etc/init.d/S80lighttpd start
:o As the files in conf.d took all my attention i missed the last piece: http://wl500g.info/showpost.php?p=166318&postcount=38 fixing this and its all up and running
Thank you very much :)
well you have the entire build environment on your router ready so it's going to be easy.
First you need to download the sourcecode from http://php.net/ be sure to download the same version as you have installed
also you need to rebuild the extension after an php update from ipkg repository
anyway the internet is full of how-to's and this one seems to be helpfull:
http://mattiasgeniar.be/2008/09/14/h...s-from-source/
you can skip #1 here since you have that already
#2 is just for unzipping the source on your router
then the rest is pretty straight forward, just like the stuff we did with eaccelerator:)
Thanx for the help!
I managed to download the php and imap source and run PHPIZE.
But when i ran ./configure --prefix=/opt --with-imap --with-imap-ssl i got the following error.
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Tried to google about it but all post refered to some library called libc-client-devel.
I looked for the library but could not find it for olegs.
Hello,
Time to refresh this thread :P I've updated my php and additional components on router. When ipkg asked i've sticked to my settings (php.ini and lighttpd.conf) but after resrtart i'm getting 500-Internal server error. In htop lighttpd isn't running so is fcgi. My question is: what to do? I've already reinstalled lighttpd and it didn't helped at all. Any clues?
I had similar problems with newer lighttpd (since 1.4.24-1)
You can try to install the last working lighttpd from here:
Consider, that lighttpd.conf needs some changes before starting, because lighttpd is set in this config to port 80.Code:ipkg remove lighttpd
cd /opt/tmp/ipkg
mkdir -p /opt/etc/lighttpd
wget http://autoinstall.lima-city.de/lighttpd_1.4.22-1_mipsel.ipk
ipkg install lighttpd_1.4.22-1_mipsel.ipk
wget http://autoinstall.lima-city.de/libuclibc++_0.2.2-8_mipsel.ipk
ipkg install libuclibc++_0.2.2-8_mipsel.ipk
wget http://autoinstall.lima-city.de/lighttpd.conf -O /opt/etc/lighttpd/lighttpd.conf
For me it works.
have fun
right, you got this config update: http://wl500g.info/showpost.php?p=166318&postcount=38
then also be sure to recompile eaccelerator when php updates to a newer version, during the installation php will tell you this usually.
downgrading is not needed, I still got it working with the newest version newbiefan, you just need to activate polling instead of e-poll.;)
Ok, so reinstalling lighhtpd wasn't good idea, so was installing eaccelerator from ipkg packages. But after compiling eaccelerator from sources it all went smooth, lighttpd works like a charm :)
Did anyone get things working with mysql 5 ? There is a package in the repository, but it does not want to start after install. phpmyadmin does not install after installing mysql5.
Does it still require recompling?
I don't think mysql 5 is ever going to work on these routers actually, probably because it's software design is a bit different compared to mysql4.
Also mysql5 requires more resources, and that while mysql4 only pulls of about 100kb/s max;)
in the end mysql 4 can do the same things mysql 5 can, apart from some really specialized stuff hardly used in regular webpackages :)
recompiling won't work either because the compiler on the router has problems with c++.
You might be able to pull it off with the crosscompiler after a bit of work :)
Hello,
I followed the tutorial. No errors shown during the process.
However, when I try to start lighttpd it gives this error:
Starting web server: lighttpd
2010-08-01 18:29:11: (network.c.589) SSL: Private key does not match the certificate public key, reason: error:02001002:system library:fopen:No such file or directory /opt/etc/lighttpd/lighttpd.pem
Of course, I checked for the file existence and it is not there. But should it? Why is there SSL certificate check?
Anyhow, I spent last couple of hours searchingg for a solution, but did not find any. (I am not linux guru, so I might be missing something).
Only change to the original tutorial is that I have my www root in /tmp/harddisk/www and I have changed the path in one of the tutorial commands accordingly.
Any ideas?
Thanks.
Brano.
Hi all,
well, I did start the server after all :) but I am not sure whether I did the right thing.
I went to the config file and commentted out everything around the SSL server thing (at the end of config) - this was the part referencing the PEM file.
Now, server starts and works. But was this the right thing to do? Am I missing something because of that? I suppose https :)
Cheers,
Brano.