Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 60

Thread: Webserver

  1. #31
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    190
    Quote Originally Posted by hmantsao View Post
    yes, i did. i can use mysql +php+lighttpd now but still try performance.
    can you tell us how you got mysql running on this awsome box?

    Thxx

    Openwrt or Custom Firmware on asus? - http://wl700ge.hezik.nl/ - Http://wl700g.homelinux.net

    My ASUS collection: WL500gp(80GB usb-hdd - Running OpenWrt Kamikaze 7.09) | WL700gE(250GB - Running OpenWrt Kamikaze 8.09rc1)

  2. #32
    Sollie, I still think theres something wrong with my php/http config - it's all been updated to the latest versions. I still can't see users in a domain in phpxmail, and uebimiau refuses to load aswell. Both of those pages just sit there doing nothing, before just loading a blank page...

  3. #33
    Sent me your conf files: "removed" (hehe)

    Sollie.
    Last edited by sollie; 29-03-2007 at 17:49.

  4. #34
    That's the xmail address right

    the lighttpd conf is send

  5. #35

    mysql

    Quote Originally Posted by back2basic View Post
    can you tell us how you got mysql running on this awsome box?

    Thxx
    that is still have many problem, i need to try more times.
    basically, installing lighttpd & php is don't have big problem but mysql still have problem. maybe you can try it fist.

    install mysql.
    1. ipkg install mysql then will show error messages
    2. ln -s /opt/lib/mysql/libmysqlclient.so /opt/lib/libmysqlclient.so.14
    3. modify /opt/etc/my.cnf
    ;password = your passwd -> password = root
    4. copy database which name is mysql from anywhere we can to /opt/var/lib/mysql/mysql/* , i copy the database from "appsrv<-w32 program"
    5. /opt/libexec/mysqld &
    6 ipkg install phpmyadmin
    7. modify /opt/share/www/phpmyadmin/config.inc.php to add password.
    $cfg['Servers'][$i]['password'] = 'root'; // MySQL password (only
    8. now , you can try mysql in command mod or use phpmyadmin (please check your httpd location)
    9 and try to use

    as i showing before that still have many problem , need to check why can't create mysql database and why can't start mysql from /opt/etc/init.d/S70mysqld.
    Last edited by hmantsao; 14-01-2007 at 16:58.

  6. #36
    Quote Originally Posted by d3viant View Post
    Sollie, I still think theres something wrong with my php/http config - it's all been updated to the latest versions. I still can't see users in a domain in phpxmail, and uebimiau refuses to load aswell. Both of those pages just sit there doing nothing, before just loading a blank page...
    Heh, weird, been playing round with openWRT on my router - this now works perfectly. I think I will attribute it to usual ASUS firmware randomness...

  7. #37
    Quote Originally Posted by sollie View Post
    If you like we can talk on irc. I have xmail totaly running. Without errors. % minutes agoo i installed a php webmail script. All went perfecet. The script doesnt require php-pop or php-imap modules and no mysql.

    Perfect i think.

    Sollie.

    PS: http://www.uebimiau.org/
    Trying to get this going now I have phpxmail working properly (finally!)

    I am now having errors with the uebimiau code - when I try to login with my username and password, it complains about
    Code:
    ERROR (2): Header may not contain more than a single header, new line detected. (webmail/inc/inc.php:156)
    This file does indeed have a header that spans over 3 lines, but I can't see why this should affect the php... Any ideas?

  8. #38

  9. #39
    If you see this error in /webmail:

    ERROR (2): Header may not contain more than a single header, new line detected. (/webmail/inc/inc.php:156)

    edit /var/www/html/webmail/inc/inc.php.

    Change :

    Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
    "Cache-Control: no-cache\r\n".
    "Cache-Control: must-revalidate");
    to

    Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT");
    Header("Cache-Control: no-cache");
    Header("Cache-Control: must-revalidate");

    Save, and exit.

    PS: this is only for http://www.uebimiau.org/ users.

  10. #40
    d3viant, i also have an enhanced-ctorrent gui running on lighttpd (php).

    Sollie.

    PS: its an beta version, but dood enough for now. http://www.nslu2-info.de/showthread.php?t=4515&page=9

  11. #41
    Thanks sollie - telaen is working quite well for me - do you know of any way to speed up page serving for it though - it takes a few seconds for each page to load for me currently!


    May get round to trying the enhanced-ctorrent GUI too - does it work better than the transmission cgi script?
    Last edited by d3viant; 04-02-2007 at 13:30.

  12. #42
    I dont know how to speed up page serving. Maybe using a db-server like mysql.

    May get round to trying the enhanced-ctorrent GUI too - does it work better than the transmission cgi script?
    Its not working better right now. I hope it will in the near future (couple of weeks). I use it coz i want to use enhanced-ctorrent.

    Sollie.

  13. #43

    Cannot start lighttpd with php

    Hi All,

    I'm getting great results using the custom firmware and especially mt-daapd,
    but I'm having an issue running php - I've followed Sollie's instructions earlier in this thread, but when I try to start the lighttpd I get the following:

    Code:
    # /opt/etc/init.d/S80lighttpd start
    Starting web server: lighttpd
    #
    # (mod_fastcgi.c.988) execve failed for: /opt/bin/php-fcgi
    No such file or directory
    (mod_fastcgi.c.1014) the fastcgi-backend /opt/bin/php-fcgi
    failed to start:
    (mod_fastcgi.c.1018) child exited with status 2 /opt/bin/php-fcgi
    (mod_fastcgi.c.1021) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
    You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
    For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
    (mod_fastcgi.c.1026) If this is PHP on Gentoo add fastcgi to the USE flags
    (mod_fastcgi.c.1322) [ERROR]: spawning fcgi failed.
    (server.c.848) Configuration of plugins failed. Going down.


    If I re-comment out the php-fcgi part of lighttpd.conf the server starts ok.

    I've tried creating /opt/bin/php-fcgi folder with 777 privs, but then I get the error:

    Code:
    # 2007-02-05 18:44:30: (mod_fastcgi.c.988) execve failed for: /opt/bin/php-fcgi
    Permission denied
    Obviously it's a permissions thing, but I'm new to linux and haven't really got a clue what I'm doing...

  14. #44
    you have to install cgi support first,

    1:
    Code:
    ipkg update
    2:
    Code:
    ipkg upgrade
    3:
    Code:
    ipkg install mod-fastcgi
    Sollie.

  15. #45
    Thanks Sollie, that certainly downloaded and installed some new bits and pieces - including apache it seems- but I still get the same error. I've tried rebooting, and reapplying
    php, php-fcgi and lighhttpd. I did get the error:

    Code:
    Configuring apache
    syntax error
    httpd: bad user name nobody
    after installing mod-fcgi, but that may be a red herring.

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. WL-500gx with openwrt pre-rc5 howto webserver?
    By ye_old in forum WL-500g Custom Development
    Replies: 1
    Last Post: 22-03-2006, 12:54
  2. webserver stops after several minutes
    By arnold in forum WL-500g Q&A
    Replies: 0
    Last Post: 07-03-2006, 09:35
  3. Webserver not on port outside:80
    By void in forum WL-500g Q&A
    Replies: 1
    Last Post: 17-01-2006, 07:38
  4. Stupid-ftp with webserver, howto?
    By void in forum WL-500g Q&A
    Replies: 0
    Last Post: 16-01-2006, 21:27

Posting Permissions

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