Commit ba354660 authored by Andrey Filippov's avatar Andrey Filippov

added sockets, shared memory to php, wstunnel and proxy to lighttpd

parent c359a47c
......@@ -43,6 +43,8 @@ IMAGE_INSTALL_append += " \
lighttpd-module-fastcgi \
lighttpd-module-cgi \
lighttpd-module-setenv \
lighttpd-module-wstunnel \
lighttpd-module-proxy \
apache2 \
perl \
php-cgi \
......
......@@ -4,6 +4,8 @@ SRC_URI_append += " file://php.ini"
EXTRA_OECONF += "--enable-elphel \
--enable-exif \
--enable-shmop \
--enable-sockets \
--with-curl=${STAGING_LIBDIR}/.. \
--with-readline=${STAGING_LIBDIR}/.. \
--with-config-file-path=${sysconfdir}/php \
......
......@@ -34,6 +34,7 @@ server.modules = (
# "mod_secdownload",
# "mod_rrdtool",
# "mod_webdav",
"mod_wstunnel",
"mod_accesslog" )
## a static document-root, for virtual-hosting take look at the
......@@ -234,7 +235,31 @@ server.port = 80
# )
# )
)
#### wstunnel module
#server.bind = "127.0.0.1"
#server.port = 8081
#server.port = 80
#mimetype.assign = (".txt" => "text/plain", ".html" => "text/html" )
#server.modules += ("mod_wstunnel")
wstunnel.server = (
"/ws/" => (
(
"socket" => "/tmp/wstunnel.socket",
"bin-path" => "/www/pages/echo.pl",
"max-procs" => 1
)
),
"/ws-nobin/" => (
(
"socket" => "/tmp/wstunnel-nobin.socket",
# "bin-path" => "/www/pages/echo.pl",
"max-procs" => 1
)
)
)
#### CGI module
cgi.assign = ( ".py" => "/usr/bin/python",
".cgi" => "")
......
......@@ -4,14 +4,19 @@ SRC_URI_append = "file://lighttpd.conf \
file://test.py \
file://phpinfo.php \
file://eth0-down-up-test.sh \
file://echo.pl \
file://wstunnel_count.html \
"
CONFFILES_${PN} = "${D}/lighttpd.conf"
do_install_append() {
cp ${WORKDIR}/test.py ${D}/www/pages/test.py
cp ${WORKDIR}/echo.pl ${D}/www/pages/echo.pl
cp ${WORKDIR}/wstunnel_count.html ${D}/www/pages/wstunnel_count.html
#cp ${WORKDIR}/phpinfo.php ${D}/www/pages/phpinfo.php
cp ${WORKDIR}/eth0-down-up-test.sh ${D}/www/pages/eth0-down-up-test.sh
rm -f ${D}/www/pages/index.html
install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
}
RDEPENDS_${PN} += " perl"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment