Обсуждение: Dir-320 DD-WRT + WWW + PHP + MySQL + P

Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT
Goto page Previous  1, 2, 3, 4
Author Message
dyuss
DD-WRT Novice


Joined: 04 Sep 2012
Posts: 10

PostPosted: Sat Sep 08, 2012 7:56    Post subject: Reply with quote
Учитывая то, что ответов так много - видимо это я один такой идиот, который тужится использовать свой dir-320 в качестве web-сервера для своего блога. Печалька Mad
Sponsor
Megagloom
DD-WRT Novice


Joined: 14 May 2012
Posts: 1

PostPosted: Mon Jan 21, 2013 9:28    Post subject: Reply with quote
Помогите прикрутить php к lighttpd.

Имею роутер TPLINK TL-WDR4300 v1, прошивка DD-WRT v24-sp2 (12/31/12) std - build 20453, репозиторий http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/, установил пакеты php5, php5-fastcgi, lighttpd, lighttpd-mod-fastcgi. Добавил в автозапуск
Code:
export PHP_FCGI_CHILDREN=1
php-fcgi -b 1026 &
lighttpd -f /etc/lighttpd/lighttpd.conf

В настройках
Code:
server.modules = ("mod_fastcgi")
server.document-root = "/opt/share/www/"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

fastcgi.server = (".php" => (
                   "localhost" => (
                     "socket" => "/tmp/php-fastcgi.socket",
                     "bin-path" => "/usr/bin/php-fcgi"
                    )
                   )
                  )

По логу старт Lighttpd проходит без ошибок, а процессах вижу
Code:
23556 root      7700 S    php-fcgi -b 1026
23559 root      3724 S    lighttpd -f /etc/lighttpd/lighttpd.conf
23560 root      7700 S    /usr/bin/php-fcgi
23561 root      7700 S    php-fcgi -b 1026
23562 root      7700 S    /usr/bin/php-fcgi
23563 root      7700 S    /usr/bin/php-fcgi
23564 root      7700 S    /usr/bin/php-fcgi
23565 root      7700 S    /usr/bin/php-fcgi
23566 root      7700 S    /usr/bin/php-fcgi
23567 root      7700 S    /usr/bin/php-fcgi
23568 root      7700 S    /usr/bin/php-fcgi

при попытке открыть простой html-файл всё проходит нормально, но php-файл с содержанием
Code:
<?
phpinfo(INFO_GENERAL);
?>

не открывает, выдает страницу "No input file specified.".
Если html-файл переименовать в php - результат тот же. Разрешения на файлы 777.

Где грабли???


P.S. Сделал как описано здесь и всё заработало
Vitalii-33
DD-WRT Novice


Joined: 26 Feb 2017
Posts: 1

PostPosted: Sun Feb 26, 2017 19:36    Post subject: Помогите прикрутить принтер Reply with quote
Здравствуйте
Никак не получается прикрутить принтер
Роутер Dir-320 A2
Прошивка dd-wrt.v24_usb_generic
Принтер включается в USB роутера
Может кто-нибудь написать внятную инструкцию (или ссылку на нее) как заставить принтер печатать с компьютера в сети роутера. Бьюсь 3 дня, так ничего и не получилось.
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum