Commit ba354660 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

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

parent c359a47c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 \
+2 −0
Original line number Diff line number Diff line
@@ -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 \
+26 −1
Original line number Diff line number Diff line
@@ -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,6 +235,30 @@ 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",
+5 −0
Original line number Diff line number Diff line
@@ -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"