Jump to content

drix

Active Members
  • Posts

    19
  • Joined

  • Last visited

Recent Profile Visitors

898 profile views

drix's Achievements

Newbie

Newbie (1/14)

  1. how I can install all php packets? seems that not on all devices site works good.
  2. seems that all good, I have not installed necessary packages and php.ini
  3. 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! but when I'm trying to run my website I have got dont understand why that happend, somebody, pls explain me seems that script trying to define browser type and cant do it. hm....
  4. 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.
  5. Hi all, is it possible to make script that will execute command in terminal? I made it!!!!!!!!!!!!!!!!!!!!!!!!!! sorry) But Im happy!
  6. 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
  7. what kind of openWRT will be good for that router? when I compile distribution like it told in instruction for rb750, there is no file with name "openwrt-ar71xx-nand-vmlinux-initramfs.elf"
  8. 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.
  9. the screen can be install by using command "opkg screen". It is a good way, to know all by youself! will try to reinstall reaver After I was reinstalled reaver, I try reaver again, and all become good!!! regards, happy me now I would like to try cat file, thanks Foxtrot
  10. when I'm using reaver, there is 1 problem for 1 minute all good, then I got message in terminal like "segmentation fault", is that mean that reaver need folder for files? or what I need to do?
  11. 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.
  12. Foxtrot yes it is pineapple mark IV, firmware 2.8.1 hey, Foxtrot nice module will be Automator! :)
  13. my bad, now I understand where the problem was. It is client function, not the server. Sorry for bad topic. Now I would like to know, how can I open flash drive file system, for example "log.txt" file in folder named "log" on flash drive (ie. .../log/log.txt)/ thanks for the answer.
  14. You need to use USB hub with external power cable, you need two power sources, one for pineapple, and another one for devices connected to pineapple. don't forget about red cord.
  15. is it possible to compile files on wifi pineapple? Or I find another way, maybe I should set ClientAliveInterval (e.g. 60) and TCPKeepAlive (yes or no) to appropriate values on the serverside sshd.conf. but where is sshd.conf?
×
×
  • Create New...