Page 4 of 11 FirstFirst ... 23456 ... LastLast
Results 46 to 60 of 153

Thread: How-to Lighttpd, PHP, MySQL and Eaccelerator

  1. #46
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by freakazoid87 View Post
    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:
    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/*
    in the new version they fixed that, in fact when you remove everything in that folder something goes wrong

    you should remove the line in the startupscript (the rm one).
    then execute these commands
    touch /opt/etc/lighttpd/conf.d/01-default.conf
    chmod 700 /opt/etc/lighttpd/conf.d/01-default.conf
    and then try to start lighttpd
    /opt/etc/init.d/S80lighttpd start
    I hope that worked

  2. #47

    nope

    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?

  3. #48
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by freakazoid87 View Post
    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.

  4. #49
    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?



    Quote Originally Posted by wpte View Post
    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.

  5. #50
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by freakazoid87 View Post
    only thing that it sais when i start it is:
    yes it is normal, but somehow it's a required file...
    in older versions it would crash when the file was there already (that's why I did a cleanup).

    I'd like to view your config and start file.
    don't forget to remove any personal data from them

  6. #51
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    Hi,

    thanks for this great HowTo wpte

    I got an entry in the error.log file:
    Code:
    (server.c.1105) fdevent_init failed
    The server did not start.

    To fix this error, I had to edit the following line in lighttpd.conf:
    Code:
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    
    change to
    
    server.event-handler = "poll" # needed on OS X
    To help other users, that get this error message, maybe you can take this hint in your How-To.

    Again, GREAT WORK!

    ps: Is your website hosted on your router?

    Regards
    Oliver
    Last edited by carterb; 20-11-2009 at 15:13.
    Regards / Grüße,
    Oliver

    [How-To] Sane Scanner-Server mit XSane Frontend "german"
    [How-To] Sane Scanner-Server with XSane Frontend "english"

    Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
    Speicher: Trekstor DataStation maxi 1 Tb
    Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver

  7. #52
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    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

    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

  8. #53
    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!

  9. #54
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by freakazoid87 View Post
    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!
    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

  10. #55
    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:

    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'?
    I have installe wget-ssl previously (wget-ssl - 1.12-2)
    Now even 'ipkg update' does not work any longer.
    Any ideas or suggestions?

    Thanks in advance

  11. #56
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    something went wrong there...

    try to remove all the wgets installed
    ipkg remove wget wget-ssl
    meanwhile you can download the ipkg package manually on your pc:
    just use ftp or samba to place it anywhere on your disk

    then you can simply install it with
    ipkg install /path/to/wget
    I can recommend wget-ssl since it's the normal wget + ssl support (https)

    I hope that'll fix it

  12. #57
    Nice setup!
    Everything words perfectly... almost. I cant get imap_open to work... someone got it work?

  13. #58
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by gabbano View Post
    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
    ./configure --prefix=/opt

  14. #59
    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:

    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)
    the sections in question look like this:
    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" )
    and the end of the file:

    Code:
    # Configuration from other optware packages
    include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"

  15. #60
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by bef View Post
    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?
    good good

    when you edit the configuration file of mysql /opt/etc/my.cnf
    you can change
    Code:
    # The MySQL server
    [mysqld]
    user            = root
    into any user you want, when you do this you must also change the owner of the mysql folder again!
    chown -R admin:admin /opt/var/lib/mysql
    not sure if that works actually... try it out, otherwise stay with the old configuration


    Quote Originally Posted by bef View Post
    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 contents of the conf.d folder is like:
    ls /opt/etc/lighttpd/conf.d/
    01-default.conf
    the 01-default.conf shouldn't contain any data as far as I know..
    if it does you may empty it by doing:
    cat /dev/null > /opt/etc/lighttpd/conf.d/01-default.conf
    does it still show up errors when starting?

Page 4 of 11 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. Full server config: Samba ftp http xmail mysql forum motor
    By KisVuK in forum WL-500gP Tutorials
    Replies: 14
    Last Post: 15-12-2008, 21:34

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •