Page 8 of 11 FirstFirst ... 678910 ... LastLast
Results 106 to 120 of 153

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

  1. #106
    So where should i uncomment it coz frankly i dont understand what you mean. Where (which file) and what shoul i uncomment?

  2. #107
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    So where should i uncomment it coz frankly i dont understand what you mean. Where (which file) and what shoul i uncomment?
    Sorry
    In the beginning of the main (lighttpd.conf) config file.
    Just make sure you don't include the php-fcgi module twice

  3. #108
    Take a look at my lighttpd.conf file, maybe I'm doing something wrong. Also when i type php -i in console it gives me eaccelerator error.
    Code:
    PHP Fatal error:  [eAccelerator] eAccelerator 0.9.6.1 can not be loaded twice in Unknown on line 0
    When I disable fcgi support in conf file i can view html files but that's all.
    Attached Files Attached Files

  4. #109
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    Take a look at my lighttpd.conf file, maybe I'm doing something wrong. Also when i type php -i in console it gives me eaccelerator error.
    Code:
    PHP Fatal error:  [eAccelerator] eAccelerator 0.9.6.1 can not be loaded twice in Unknown on line 0
    When I disable fcgi support in conf file i can view html files but that's all.
    these are the fixed workarounds I was talking about
    the current eAccelerator ipkg package (and my how-to as well) adds a seperate config file: /opt/etc/php.d/eaccelerator.ini

    so if you added that, either way you should remove the config file, or delete the part about eAccelerator in /opt/etc/php.ini

  5. #110
    This helped, deleting from php.ini I mean. Maybe tutorial should be updated with this info

  6. #111
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    This helped, deleting from php.ini I mean. Maybe tutorial should be updated with this info
    Well I can't keep all the changed things in the how-to... I mean, it would make things more complicated to follow I think

  7. #112
    Probably Yes, either way thanks for your help

  8. #113

    lighttpd won't start

    I installed lighttpd and whenever I start it, immediately closes without any warnings. If I type lighttpd without any option :
    Code:
    [admin@WL-00221561958C root]$ lighttpd
    2011-06-11 22:55:25: (server.c.588) No configuration available. Try using -f option.
    so its running. I've tried the original config file and the same thing. I've even deliberately inserted a mistake in the config file and it reported the problem correctly.

    So why isn't the lighttpd process keep running ?

    edit: Oh .. and I did use lighttpd successfully in the past on the same setup.
    Last edited by expert_vision; 11-06-2011 at 21:17.

  9. #114
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by expert_vision View Post
    I installed lighttpd and whenever I start it, immediately closes without any warnings. If I type lighttpd without any option :
    Code:
    [admin@WL-00221561958C root]$ lighttpd
    2011-06-11 22:55:25: (server.c.588) No configuration available. Try using -f option.
    so its running. I've tried the original config file and the same thing. I've even deliberately inserted a mistake in the config file and it reported the problem correctly.

    So why isn't the lighttpd process keep running ?

    edit: Oh .. and I did use lighttpd successfully in the past on the same setup.
    uhm... according to that line it's not running, in fact it stops because you didn't supply a configuration file which is done by using the -f parameter

    /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
    should do the trick

  10. #115

    Got it

    No .. it didn't start even with the config file.
    Anyway I looked in the error.log and found this
    Code:
    2011-06-11 23:40:14: (log.c.166) server started 
    2011-06-11 23:40:14: (fdevent_linux_sysepoll.c.134) epoll_create failed (Function not implemented), try to set server.event-handler = "poll" or "select"
    2011-06-11 23:40:14: (fdevent.c.41) event-handler linux-sysepoll failed, try to set server.event-handler = "poll" or "select"
    2011-06-11 23:40:14: (server.c.1112) fdevent_init failed
    I did just that in the config file and
    lighttpd server is running.

    I have no idea what server.event-handler = "poll" is .. and I don't think I want to know.

  11. #116
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by expert_vision View Post
    I did just that in the config file and
    lighttpd server is running.

    I have no idea what server.event-handler = "poll" is .. and I don't think I want to know.
    uhm... the how-to tells you to do so:
    This is for fixing the excluded e-poll:
    line 51: change

    # server.event-handler = "freebsd-kqueue" # needed on OS X

    into

    server.event-handler = "poll" # needed on OS X
    back in the days epoll was included in the ipkg package, not anymore tho... and since our firmware doesn't have it we need poll
    You don't want to know what it's for? like it would be some kind of dirty thing
    To explain it in short: it changes the way how an incoming web-request is trown at the event-handler. epoll is supposed to be more efficient, but it only shows a real difference when your webserver is accessed a lot

  12. #117
    I know it is in the how-to, but since I used lighttpd before without epoll, I thought it wasn't mandatory, and apparently that changed in the new version.
    And hey .. thanks for still supporting this how-to!

  13. #118
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by expert_vision View Post
    I know it is in the how-to, but since I used lighttpd before without epoll, I thought it wasn't mandatory, and apparently that changed in the new version.
    And hey .. thanks for still supporting this how-to!
    ah cool
    Yeah well, need to keep the fans happy right

  14. #119
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    I tried to install mysql5 from the ipkg feed today...
    after some user rights stuff I managed to get it running perfectly fine, the downside however is that the php-mysql plugin doesn't seem to be compatible with the newer mysql5

    so no mysql5 support in this how-to for now

  15. #120
    Hi,

    first of all, great tutorial, easy to follow and set-up, everything working fine.

    I just want to ask if there is a way to run php 5.3 on wl500gp. Is there a guide to do this? I am not very skilled in unix systems
    Additionaly, is it yet possible to run mysql 5 on this box?

    I need this environment as the tool I am trying to install has these requirements.

    Thanks

Page 8 of 11 FirstFirst ... 678910 ... 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
  •