Page 7 of 11 FirstFirst ... 56789 ... LastLast
Results 91 to 105 of 153

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

  1. #91
    Ok so I've reinstalled lighttpd (was not worki with/without ssl) now http connections work like they should. Setting lan_httport to 8080 did the trick but i had to manually forward all incoming http request to 192.168.1.1:80 to make it work after changing server.port to 80. Still no connection thru ssl.

    On internal ip (192.168.1.1) https works like a charm.

  2. #92
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    Ok so I've reinstalled lighttpd (was not worki with/without ssl) now http connections work like they should. Setting lan_httport to 8080 did the trick but i had to manually forward all incoming http request to 192.168.1.1:80 to make it work after changing server.port to 80. Still no connection thru ssl.

    On internal ip (192.168.1.1) https works like a charm.
    Right... so how do you have the regular iptables for forwarding the webserver?

    iptables -t nat -A VSERVER -p tcp -m tcp --dport 8081 -j DNAT --to-destination 192.168.1.1:8081
    ?

    Are you sure your modem is set up for forwarding https?

  3. #93
    I've attached my post-firewall file, also in error log i found
    Code:
    2010-09-09 21:39:26: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:40:12: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:42:24: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:42:27: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
    i think this is the problem.
    Attached Files Attached Files
    Last edited by cichy; 09-09-2010 at 22:36.

  4. #94
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    I've attached my post-firewall file, also in error log i found
    Code:
    2010-09-09 21:39:26: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:40:12: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:42:24: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request 
    2010-09-09 21:42:27: (connections.c.299) SSL: 1 error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
    i think this is the problem.
    that indeed is a problem...
    I'm not sure if I'm getting this, but lighttpd says it fails to do https because the browser makes a http request?

    The weird thing is, everything is set up according to the lighty wiki: http://redmine.lighttpd.net/projects.../wiki/Docs:SSL

    is your lighttpd package up to date?
    my lighttpd -V output:
    Code:
    lighttpd -V
    lighttpd/1.4.28 (ssl) - a light and fast webserver
    Build-Date: Aug 22 2010 18:32:55
    
    Event Handlers:
    
            + select (generic)
            + poll (Unix)
            - rt-signals (Linux 2.4+)
            + epoll (Linux 2.6)
            - /dev/poll (Solaris)
            - kqueue (FreeBSD)
            - libev (generic)
    
    Network handler:
    
            + writev
            + mmap support
    
    Features:
    
            + IPv6 support
            + zlib support
            + bzip2 support
            + crypt support
            + SSL Support
            + PCRE support
            + mySQL support
            + LDAP support
            + memcached support
            - FAM support
            + LUA support
            + xml support
            + SQLite support
            - GDBM support
    default ipkg updating and upgrading if you're not aware of it:
    ipkg update
    ipkg upgrade

  5. #95
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by badyto View Post
    Hi!
    I just installed everything according to the 1.st post.
    Hello Badyto, I updated the how-to
    I tested it on my own spare router, and it should work without any problems

  6. #96
    And this is mine lighttpd -V result:
    Code:
    lighttpd/1.4.28 (ssl) - a light and fast webserver
    Build-Date: Aug 22 2010 18:32:55
    
    Event Handlers:
    
            + select (generic)
            + poll (Unix)
            - rt-signals (Linux 2.4+)
            + epoll (Linux 2.6)
            - /dev/poll (Solaris)
            - kqueue (FreeBSD)
            - libev (generic)
    
    Network handler:
    
            + writev
            + mmap support
    
    Features:
    
            + IPv6 support
            + zlib support
            + bzip2 support
            + crypt support
            + SSL Support
            + PCRE support
            + mySQL support
            + LDAP support
            + memcached support
            - FAM support
            + LUA support
            + xml support
            + SQLite support
            - GDBM support
    As You can see they are identical. Everything is up2date so no mistakes because of wrong software. I've also studied the site You gave here and without a doubt it should work but it ain't.

  7. #97
    Need some help.

    I've updated PHP to latest version and recompiled eAccelerator from scratch but this didn't helped at all, fcgi process dies in a second after lighttpd restart.

    Code:
    2010-12-29 21:33:01: (log.c.166) server started 
    2010-12-29 21:33:09: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 3751 socket: unix:/tmp/php-fcgi.sock-3 
    2010-12-29 21:33:09: (mod_fastcgi.c.3309) child exited, pid: 3751 status: 254 
    2010-12-29 21:33:09: (mod_fastcgi.c.3356) response not received, request sent: 818 on socket: unix:/tmp/php-fcgi.sock-3 for /index.php?, closing connection 
    2010-12-29 21:33:11: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 3752 socket: unix:/tmp/php-fcgi.sock-3 
    2010-12-29 21:33:11: (mod_fastcgi.c.3356) response not received, request sent: 818 on socket: unix:/tmp/php-fcgi.sock-3 for /index.php?, closing connection 
    2010-12-29 22:45:25: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/php-fcgi.sock-3 
    2010-12-29 22:45:25: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 
    2010-12-29 22:45:28: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 3756 socket: unix:/tmp/php-fcgi.sock-3 
    2010-12-29 22:45:28: (mod_fastcgi.c.3356) response not received, request sent: 818 on socket: unix:/tmp/php-fcgi.sock-3 for /index.php?, closing connection 
    2010-12-29 23:02:51: (server.c.1512) server stopped by UID = 0 PID = 3767 
    2010-12-29 23:02:53: (log.c.166) server started 
    2010-12-29 23:21:41: (server.c.1512) server stopped by UID = 0 PID = 3798 
    2010-12-29 23:22:44: (log.c.166) server started 
    2010-12-29 23:23:08: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/php-fcgi.sock3808-7 
    2010-12-29 23:23:08: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 
    2010-12-29 23:23:13: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 3820 socket: unix:/tmp/php-fcgi.sock3808-7 
    2010-12-29 23:23:13: (mod_fastcgi.c.3309) child exited, pid: 3820 status: 254 
    2010-12-29 23:23:13: (mod_fastcgi.c.3356) response not received, request sent: 818 on socket: unix:/tmp/php-fcgi.sock3808-7 for /index.php?, closing connection
    Maybe some clues what to do?

  8. #98
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    Need some help.

    I've updated PHP to latest version and recompiled eAccelerator from scratch but this didn't helped at all, fcgi process dies in a second after lighttpd restart.

    Maybe some clues what to do?
    download some fresh sources if you haven't already.
    Also, try to delete the old eaccelerator first before you make install:
    rm /opt/lib/php/extensions/eaccelerator.so
    not sure, but over time ipkg packages changed quite a bit
    In fact, they solved a lot of workarounds I wrote here in the how-to
    so, I had to remove the workarounds again
    if all else fails, you might want to try the ipkg version of eaccelerator

  9. #99
    I've tried the ipkg source version first but no effect still errors and php dies after a sec. Now I'm recompiling eaccelerator from scratch from latest svn build, maybe this will help. Also, strange thing, when i've disabled eaccelerator in eaccelerator.ini and disabled mod_fcgi in lighttpd.conf I can't launch any file from server i.e *.html file, I'm getting 403 - access denied.

  10. #100
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    I've tried the ipkg source version first but no effect still errors and php dies after a sec. Now I'm recompiling eaccelerator from scratch from latest svn build, maybe this will help. Also, strange thing, when i've disabled eaccelerator in eaccelerator.ini and disabled mod_fcgi in lighttpd.conf I can't launch any file from server i.e *.html file, I'm getting 403 - access denied.
    huh thats weird
    have you checked the extra config files in /opt/etc/lighttpd/conf.d ?

  11. #101
    Yep there're 2 files 1st default (empty) and 2nd fcgi with part from lighttpd.conf of mod_fcgi. Something like that:

    Code:
    fastcgi.server             = ( ".php" =>
                                   ( "localhost" =>
                                     (
                                       "socket" => "/tmp/php-fcgi.sock",
                                       "bin-path" => "/opt/bin/php-fcgi",
    				"max-procs" => 1,
                                       "bin-environment" => (
    					"PHP_FCGI_CHILDREN" => "3",
                                       	"PHP_FCGI_MAX_REQUESTS" => "4000"
                                       )
                                     )
                                   )
                                )
    After deleting eaccelerator.so i could query php -i, and now it worked bot warned me about missing module of eaccelerator, maybe this recompiling helps

  12. #102
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    Yep there're 2 files 1st default (empty) and 2nd fcgi with part from lighttpd.conf of mod_fcgi. Something like that:

    After deleting eaccelerator.so i could query php -i, and now it worked bot warned me about missing module of eaccelerator, maybe this recompiling helps
    sounds promising

    that fcgi file already configures your php, so you shouldn't reactivate it in the main config file (like in the old how to)

  13. #103
    Did something like this
    Code:
    # Configuration from other optware packages
    #include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"
    So it uses part from .conf file without external modules/files. Now waiting to configure it once again because of missing module Hope this will help

  14. #104
    And recompiling didn't helped at all, still no fcgi engine running and got this error:
    Code:
    (plugin.c.131) Cannot load plugin mod_fastcgi more than once, please fix your config (we may not accept such configs in future releases)
    Maybe some clues how to solve this issue.

  15. #105
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cichy View Post
    And recompiling didn't helped at all, still no fcgi engine running and got this error:
    Code:
    (plugin.c.131) Cannot load plugin mod_fastcgi more than once, please fix your config (we may not accept such configs in future releases)
    Maybe some clues how to solve this issue.
    sounds like you have the conf.d fcgi script included, and uncommented it in the main config file.

    so you need to uncomment the "mod_fastcgi" in the server.modules list.
    because in the php-fcgi.conf file it says:
    server.modules += ( "mod_fastcgi" )

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