Page 5 of 11 FirstFirst ... 34567 ... LastLast
Results 61 to 75 of 153

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

  1. #61
    the thing with mysql didn't work, so i did a little work-around using an alias

    but i had no luck with lighttpd:

    Code:
    ls /opt/etc/lighttpd/conf.d
    01-default.conf  10-php-fcgi.conf
    the parts from the config i postet belong to the /opt/etc/lighttpd/lighttpd.conf, as i thought this is the file used.

    running lighttpd -f /opt/etc/lighttpd/conf.d/01* (or 10*) results in:
    Code:
     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
    and using the /opt/etc/lighttpd/lighttpd.conf results in the errors posted in the previously

  2. #62
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by bef View Post
    the thing with mysql didn't work, so i did a little work-around using an alias

    but i had no luck with lighttpd:

    Code:
    ls /opt/etc/lighttpd/conf.d
    01-default.conf  10-php-fcgi.conf
    the parts from the config i postet belong to the /opt/etc/lighttpd/lighttpd.conf, as i thought this is the file used.

    running lighttpd -f /opt/etc/lighttpd/conf.d/01* (or 10*) results in:
    Code:
     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
    and using the /opt/etc/lighttpd/lighttpd.conf results in the errors posted in the previously
    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:
    rm /opt/etc/lighttpd/conf.d/*
    you can always re-create with by touch (creates an empty file)
    touch /opt/etc/lighttpd/conf.d/01-default.conf

  3. #63
    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

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

  5. #65
    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

  6. #66
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by bef View Post
    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
    haha, great
    but I did include that in my main how-to
    I guess I'll don't do any version control stuff anymore, since the optware guys won't include e-poll anymore

    I hope you have fun using lighttpd

  7. #67
    Quote Originally Posted by wpte View Post
    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
    Can you guide me some where to find how to compile the php with the extra plugin? Or is there any pre-compiled binary somewhere?

  8. #68
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by gabbano View Post
    Can you guide me some where to find how to compile the php with the extra plugin? Or is there any pre-compiled binary somewhere?
    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

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

  10. #70
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by gabbano View Post
    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.
    that's indeed the main problem for compiling on routers, missing libraries.
    somehow this configure wants to get something of an ubuntu distro it seems
    I don't know the answer yet, since I haven't tried to compile it myself

  11. #71
    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?

  12. #72
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by cichy View Post
    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:
    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
    Consider, that lighttpd.conf needs some changes before starting, because lighttpd is set in this config to port 80.

    For me it works.
    have fun
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

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

  14. #74
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by wpte View Post
    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.
    Thanks wpte, will check it next time...
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  15. #75
    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

Page 5 of 11 FirstFirst ... 34567 ... 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
  •