Jump to content

drix

Active Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by drix

  1. seems that all good, I have not installed necessary packages

    opkg update
    opkg install php5 php5-mod-apc
    opkg install php5
    -mod-gd php5-mod-session
    opkg install php5-mod-pdo-mysql php5-mod-pdo php5-mod-mysql
    opkg install php5-mod-mcrypt php5-mod-mbstring php5-fastcgi php5-cgi php5-mod-xml php5-mod-ctype php5-mod-curl php5-mod-exif php5-mod-ftp php5-mod-iconv php5-mod-json php5-mod-sockets

    and php.ini

    extension=ctype.so
    extension
    =curl.so
    extension
    =gd.so
    extension
    =mbstring.so
    extension
    =mcrypt.so
    extension
    =mysql.so
    extension
    =pdo.so
    extension
    =pdo_mysql.so
    extension
    =session.so
    extension
    =sockets.so
    extension
    =tokenizer.so
    extension
    =xml.so
  2. seems that all good, php working and nginx, but my site doesnt. dont know why.

    what I do:

    first of all disable uhttpd

    next

    opkg update
    opkg install nginx php5 php5-fastcgi 

    next

    /etc/nginx/nginx.conf
    
    user nobody nogroup;
    worker_processes  1;
    
    error_log  logs/error.log;
    
    events {
        worker_connections  1024;
    }
    
    http {
        include mime.types;
        index index.php index.html index.htm;
        default_type text/html;
            
        sendfile on;
        keepalive_timeout 65;
        gzip on;	
        gzip_buffers     4 16k;
        gzip_http_version 1.0;
        gzip_comp_level 2;
        gzip_types       text/plain application/x-javascript text/css application/xml;
        gzip_vary on;
        gzip_min_length  1k;
    
        server {
            listen	80; # слушающий порт
            server_name  172.16.0.12; # имя или ip-адрес сервера
            fastcgi_connect_timeout 300;
            fastcgi_send_timeout 300;
            fastcgi_read_timeout 300;
            fastcgi_buffer_size 32k;
            fastcgi_buffers 4 32k;
            fastcgi_busy_buffers_size 32k;
            fastcgi_temp_file_write_size 32k;
            client_body_timeout 10;
            client_header_timeout 10;
            send_timeout 60;
            output_buffers 1 32k;
            postpone_output 1460;
            root   /srv/www;		# Папка с файлами сайта
            
            location ~ \.php$ {
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
                
                if (-f $request_filename) {
                    fastcgi_pass    127.0.0.1:1026; 
                }
            }
        }
    } 
    /etc/php.ini
    
    doc_root = "srv/www"
    cgi.force_redirect = 1
    cgi.redirect_status_env = "yes"; 
    /etc/init.d/nginx enable
    /etc/init.d/nginx start
    /etc/init.d/php5-fastcgi enable
    /etc/init.d/php5-fastcgi start 

    than test phpinfo, all good!

    post-44196-0-81513900-1412394574_thumb.j

    but when I'm trying to run my website I have got

    post-44196-0-09018300-1412394647_thumb.j

    dont understand why that happend, somebody, pls explain me :wacko:

    seems that script trying to define browser type and cant do it. hm.... :huh:

  3. Good day all, some time ago I have compiled my first OpenWRT image and successfully write it on my router with nand flash. But now, when I made all networkk setup I see the error message when trying to install php+nginx.

    opkg install php5-fastcgi nginx
    Installing php5-fastcgi (5.4.33-1) to root...
    Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages//php5-fastcgi_5.4.33-1_ar71xx.ipk.
    Installing nginx (1.4.7-2) to root...
    Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages//nginx_1.4.7-2_ar71xx.ipk.
    Collected errors:
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for php5-fastcgi:
     *      zlib *  libpthread *    zlib *
     * opkg_install_cmd: Cannot install package php5-fastcgi.
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for nginx:
     *      libopenssl *    zlib *  libpthread *
     * opkg_install_cmd: Cannot install package nginx.
    
    

    Seems that my version is too old for this packages, or not?

    what the problem can be?

    And I would like to ask you the main question, when I compile new OpenWRT image for update, what kind of image I should use in make menuconfig->target images?

    and then, when I compile it, I will update it with

    sysupgrade -v openwrt.bin
    

    Is that right way?

    My final target to learn how to install and config nginx with PHP on OpenWRT and sucssesfully made it!

    thanks a lot, for all unswers!

    Regards Andrey.

    that the present on my birthday, from me and hak5 shop and I like it.

    post-44196-0-07867900-1412386270_thumb.j

  4. Good day forum members, Im trying to make Keyboard leds switch on and off, manualy, I have found script for switching leds from SSH session, but I need to switch them from keyboard button.

    It is too difficult for me to find a answer what I shall to do, but maybe you know how to bind on keyboard button led switching.

    that what I see, when I press button in KB event file.

    root@OpenWrt:/# cat /dev/input/event0 | hexdump
    0000000 52e8 53c9 000e 4674 0004 0004 0007 0039
    0000010 52e8 53c9 000e 467d 0001 003a 0000 0001
    0000020 52e8 53c9 000e 4683 0000 0000 0000 0000
    0000030 52e8 53ca 0000 f838 0004 0004 0007 0039
    0000040 52e8 53ca 0000 f840 0001 003a 0000 0000
    0000050 52e8 53ca 0000 f845 0000 0000 0000 0000

    I was installed cmdpad, I think it can help, but cant do nothing again.

    cmdpad
    no command found for key 58, event PRESS
    no command found for key 58, event RELEASE

    I think that it would work if I add line in cmdpad (/etc/cmdpad.conf), does it will be work that way? ctlrelay - it is script that I found in the internet. I was trying but it is doesnt work :(

    command=58,P,/ctlrelay caps_off

    Or I need to modify that script (attached) to handle the event from that file. There is a question, what operations I need to make that button work.

    Sorry for my bad english and stupid questions, but Im really need that button.

    Thanks, Andrey.

    ctlrelay.zip

  5. Good day all, Im trying to install Openwrt on my new router rb951ui-2hnd, but I have never do that before, I was reading many articles about instalation openwrt on microtik devices, but all time I got a problems, there was no such files as in article and I cant Install or there was no information about compiling of openwrt distribution. Anyone knows how to compile files right?

    for example I have found 3 articles about.

    1. http://www.ericconrad.com/2012/05/installing-openwrt-on-routerboard-750gl.html

    2. http://ayufan.eu/projects/openwrt-rb951g/

    3. http://wiki.openwrt.org/toh/mikrotik/rb951g_2hnd

    I think all microtik's routerboards flashing same way. Is that true?

    I was trying to do all like it tells in first link.

  6. I was tried, but Im newbie in Linux (some time ago I was used and using now battrack 5, but there is a GUI and here, in pineapple only terminal), that why I got so much questions, I was asked, what is the way to the file on flash drive, it is like cd /dev/sda1/log/log.txt or no? seems that I need a good manual and some time to learn basic commands.

  7. good day, is anyone can help me with my pineapple wifi? There is several problems, and one of them is USB Flash drive, I've got 2 san disc crusader fit 4 and 8 gb, but all of them give me same errors, What's the problem?

    I'm using last firmware 2.8.1

    it seems that problem is here, what that mean?

    
    
    
    
    00:01:35 Pineapple kern.err kernel: [ 27.170000] usb 1-1: device descriptor read/64, error -145
    

    Sometimes it is work good, but I don't understand why... and it is too rarely, 2 times for 3 weeks

    seems that the problem was with power, all time I was using it with pineapple juice, but there was not enough power, and usb flash doest work good, then I power it with AC adapter and all works good.

×
×
  • Create New...