Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 60

Thread: Webserver

  1. #16
    It appeared to be enabled in the default conf - .php files were set to be recognised as applications to be executed (unless I missed something)

    My internet at home is on the fritz since the bad weather in the UK yesterday, hopefully it'll get fixed today so I can have a play with the http servers at the weekend...

  2. #17
    Ok, lets go:

    1: Install php (without editing php.ini, the default works fine)
    Code:
    ipkg install php
    2: Install fast cgi
    Code:
    ipkg install php-fcgi
    3: Install lighttpd
    Code:
    ipkg install lighttpd
    4: Install file editor
    Code:
    ipkg install nano
    5: Edit lighttpd.conf
    Code:
    nano /opt/etc/lighttpd/lighttpd.conf
    5.1 Uncomment --->
    Code:
    "mod_fastcgi",
    5.2 Use --->
    Code:
    server.document-root        = "/opt/share/www/"
    5.3 Change serverport to --->
    server.port = 8082
    5.4 Uncomment --->:
    fastcgi.server = ( ".php" =>
    ( "localhost" =>
    (
    "socket" => "/tmp/php-fastcgi.socket",
    "bin-path" => "/opt/bin/php-fcgi"
    )
    )
    )
    Dont forget to use /opt/bin/php-fcgi

    6: Chmod www directory
    Code:
    chmod 777 /opt/share/www
    7: Create a symlink to MYSHARE1
    Code:
    cd /shares/MYVOLUME1/MYSHARE1
    ln -s /opt/share/www
    Thats all,

    Sollie.

  3. #18
    Right, phpxmail 1.5 is now running again using lighttpd. but I still can't see the mailboxes within an existing domain - I can see the mailbox table section only if there are no users in the domain...

  4. #19
    I had that also,
    I rebooted the router and it was ok.

    Sollie.

  5. #20
    Ps: use this option in rc.local to start xmail.

    Code:
    /opt/etc/init.d/S43xmail start
    I modded the file a little to enable logging in phpxmail and i read something on a optware forum:

    Code:
    #!/opt/bin/bash
    #
    # skeleton	example file to build /etc/init.d/ scripts.
    #		This file should be used to construct scripts for /etc/init.d.
    #
    #		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
    #		Modified by Davide Libenzi <davidel@xmailserver.org>
    #
    # Version:	@(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
    #
    
    XMAIL_ROOT=/opt/var/MailRoot
    #XMAIL_CMD_LINE="-SX 1 -Qn 1 -Yt 1 -Ln 1 -PX 1 -CX 1"
    XMAIL_CMD_LINE="-Md -SX 1 -Qn 1 -Yt 1 -Ln 1 -PX 1 -CX 1 -Pl -Sl -Ql -L1"
    PATH=$XMAIL_ROOT/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
    DAEMON=/opt/bin/XMail NAME=XMail DESC="XMail server"
    
    test -f $DAEMON || exit 0
    
    set -e
    ulimit -c 10000
    
    start_xmail()
    {
        MAIL_ROOT=$XMAIL_ROOT
    	export MAIL_ROOT
        MAIL_CMD_LINE=$XMAIL_CMD_LINE
    	export MAIL_CMD_LINE
        $DAEMON $MAIL_CMD_LINE > /dev/null 2>&1 &
        while [ ! -f /var/run/$NAME.pid ]
        do
            sleep 1
        done
    }
    
    stop_xmail()
    {
    	if [ -f /var/run/$NAME.pid ]
    	then
        	echo `date` > $XMAIL_ROOT/.shutdown
            kill -INT `cat /var/run/$NAME.pid`
        	while [ -f $XMAIL_ROOT/.shutdown ]
        	do
            	sleep 1
       		done
    	fi
    }
    
    
    case "$1" in
      start)
          echo -n "Starting $DESC: "
          start_xmail
          echo "$NAME.[" `cat /var/run/$NAME.pid` "]"
    	;;
      stop)
          echo -n "Stopping $DESC: "
          stop_xmail
          echo "$NAME."
    	;;
      #reload)
    	#
    	#	If the daemon can reload its config files on the fly
    	#	for example by sending it SIGHUP, do it here.
    	#
    	#	If the daemon responds to changes in its config file
    	#	directly anyway, make this a do-nothing entry.
    	#
    	# echo "Reloading $DESC configuration files."
    	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
    	#	/var/run/$NAME.pid --exec $DAEMON
      #;;
      restart|force-reload)
    	#
    	#	If the "reload" option is implemented, move the "force-reload"
    	#	option to the "reload" entry above. If not, "force-reload" is
    	#	just the same as "restart".
    	#
    	echo -n "Restarting $DESC: "
    	stop_xmail
    	sleep 1
    	start_xmail
            echo "$NAME.[" `cat /var/run/$NAME.pid` "]"	
    	;;
      *)
    	N=/etc/init.d/$NAME
    	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
    	echo "Usage: $N {start|stop|restart|force-reload}" >&2
    	exit 1
    	;;
    esac
    
    exit 0

  6. #21
    Also use this in rc.local to start lighttpd at boot:

    PHP Code:
    /opt/etc/init.d/S80lighttpd start 

  7. #22
    yup - thanks, I have the startup scripts in place

    (kicking them all off at once with
    for i in `ls /opt/etc/init.d/S*`; do $i start; done
    )
    I have modified /opt/var/MailRoot/xmail to get logging working. Still no luck with getting the user mailboxes to display though - it's a bit strange, the page takes awhile to load as if something is happening, but the mailbox entries never actually come up, the page just loads up with the sidebar and the links to other options for that domain.

  8. #23
    did you use this one:
    XMAIL_CMD_LINE="-Md -SX 1 -Qn 1 -Yt 1 -Ln 1 -PX 1 -CX 1 -Pl -Sl -Ql -L1"

    -CX 1 -Pl -Sl -Ql -L1 --> logging
    -Md --> I dont know, read about it My tests went ok with this line
    There are two files to start xmail, i use only S43.

    Sollie.
    Last edited by sollie; 13-01-2007 at 08:35.

  9. #24

  10. #25
    Thanks, that link got the logging going, I believe the S43xmail is a symbolic link to /opt/var/MailRoot/xmail, so there is only actually 1 startup file.

    I still don't have individual users mailboxes displaying like they should, but I guess I can do without that feature...

  11. #26
    Try:

    Code:
    ipkg update
    After that:

    Code:
    ipkg upgrade
    php is updated some days ago.

    Sollie.

  12. #27

    mysql

    do anyone install mysql to route?
    i am still try it ..

  13. #28
    How about we all start asking questions in another thread, instead of using this one?

    /regards
    Henrik
    /regards
    Henrik

  14. #29
    d3viant, update for logging:
    Code:
    -Pl -Sl -Ql -Yl -Fl -Cl -Ll
    Sollie.

  15. #30

    mysql

    yes, i did. i can use mysql +php+lighttpd now but still try performance.
    Last edited by hmantsao; 14-01-2007 at 05:28.

Page 2 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
  •