1

Temat: czytanie maili przez stronke WWW/PHP

Otóż chciałem uruchomić prostą stronke do czytania maili (coś ala interfejs wp.pl albo google.com) do odebranych maili przez Xmaila działającego lokalnie na serwerku. Obecnie na serwerze mam php +lighttp bez sql'a. Czy znacie może najlepsze rozwiązanie ? smile Przeglądnałem już kilka róznych gotowców, ale jak narazie nic mi nie działa

Ps. stronka domowa na php'ie działa więc kwestią jest dobranie odpowiedniego "gotowca"

2

Odp: czytanie maili przez stronke WWW/PHP

Przecież tego od groma jest. Swego czasu ilohamail używałem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: czytanie maili przez stronke WWW/PHP

ale mam problem sam probówalem skorzystać z
http://nocc.sourceforge.net/

i dsotaje, na stronce :

The IMAP module does not seem to be installed on this PHP setup, please see NOCC's documentation.

czyli standardowo brakuje  wtyczki. Szybkie spojrzenie:

root@OpenWrt:/mnt/sda1/etc# opkg list_installed | grep php
php5 - 5.2.6-3 -
php5-cgi - 5.2.6-3 -
php5-cli - 5.2.6-3 -
php5-fastcgi - 5.2.6-3 -
php5-mod-ftp - 5.2.6-3 -
php5-mod-gd - 5.2.6-3 -
php5-mod-pcre - 5.2.6-3 -
php5-mod-pdo - 5.2.6-3 -
php5-mod-session - 5.2.6-3 -
php5-mod-sockets - 5.2.6-3 -
php5-mod-xml - 5.2.6-3 -

i potem na plik konfiguracyjny

root@OpenWrt:/mnt/sda1/etc# cat php.ini | grep ext
; leading '/'. You must also specify the file extension being used including
;docref_ext = .html
; PHP's built-in default is text/html
default_mimetype = "text/html"
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php"
; security context that the request runs under.  mod_fastcgi under Apache
; If you wish to have an extension loaded automatically, use the following
;   extension=modulename.extension
;   extension=msql.dll
;   extension=msql.so
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.
extension=ftp.so
extension=gd.so
;extension=mysql.so
extension=pcre.so
extension=session.so
extension=sockets.so
extension=xml.so
;         You can use the script in the ext/session dir for that purpose.
; Check HTTP Referer to invalidate externally stored URLs containing ids.

wniosek : brakuje extensiona do php'a
ale już od 30min szukam w make_menuconfig i nie wiem gdzie te biblioteki (i jaka ?) są przechowywane  na stronce openwrt są:

php-pear-db_1.7.11-1_brcm47xx.ipk                  03-Apr-2010 18:01               91924
php-pear-xmlrpc_1.5.1-1_all.ipk                    03-Apr-2010 18:01               19701
php-pear_1.5.4-1_brcm47xx.ipk                      03-Apr-2010 18:01              273065
php4-cgi_4.4.7-3_brcm47xx.ipk                      03-Apr-2010 18:08              384379
php4-cli_4.4.7-3_brcm47xx.ipk                      03-Apr-2010 18:08              383036
php4-fastcgi_4.4.7-3_brcm47xx.ipk                  03-Apr-2010 18:08              398213
php4-mod-curl_4.4.7-3_brcm47xx.ipk                 03-Apr-2010 18:08               11945
php4-mod-ftp_4.4.7-3_brcm47xx.ipk                  03-Apr-2010 18:08               12727
php4-mod-gd_4.4.7-3_brcm47xx.ipk                   03-Apr-2010 18:08               22000
php4-mod-gmp_4.4.7-3_brcm47xx.ipk                  03-Apr-2010 18:08               10665
php4-mod-ldap_4.4.7-3_brcm47xx.ipk                 03-Apr-2010 18:08               14171
php4-mod-mysql_4.4.7-3_brcm47xx.ipk                03-Apr-2010 18:09               17215
php4-mod-openssl_4.4.7-3_brcm47xx.ipk              03-Apr-2010 18:09               21645
php4-mod-pcre_4.4.7-3_brcm47xx.ipk                 03-Apr-2010 18:09               11218
php4-mod-pgsql_4.4.7-3_brcm47xx.ipk                03-Apr-2010 18:09               26113
php4-mod-session_4.4.7-3_brcm47xx.ipk              03-Apr-2010 18:09               19623
php4-mod-sockets_4.4.7-3_brcm47xx.ipk              03-Apr-2010 18:09               14860
php4-mod-xml_4.4.7-3_brcm47xx.ipk                  03-Apr-2010 18:09               10699
php4_4.4.7-3_brcm47xx.ipk                          03-Apr-2010 18:08                8395
php5-cgi_5.3.1-3_brcm47xx.ipk                      03-Apr-2010 17:26              866355
php5-cli_5.3.1-3_brcm47xx.ipk                      03-Apr-2010 17:26              858100
php5-fastcgi_5.3.1-3_brcm47xx.ipk                  03-Apr-2010 17:26                 929
php5-mod-ctype_5.3.1-3_brcm47xx.ipk                03-Apr-2010 17:26                2799
php5-mod-curl_5.3.1-3_brcm47xx.ipk                 03-Apr-2010 17:26               22561
php5-mod-exif_5.3.1-3_brcm47xx.ipk                 03-Apr-2010 17:26               25051
php5-mod-fileinfo_5.3.1-3_brcm47xx.ipk             03-Apr-2010 17:26              192884
php5-mod-ftp_5.3.1-3_brcm47xx.ipk                  03-Apr-2010 17:26               13813
php5-mod-gd_5.3.1-3_brcm47xx.ipk                   03-Apr-2010 17:26               30424
php5-mod-gmp_5.3.1-3_brcm47xx.ipk                  03-Apr-2010 17:26               10614
php5-mod-hash_5.3.1-3_brcm47xx.ipk                 03-Apr-2010 17:26               90974
php5-mod-iconv_5.3.1-3_brcm47xx.ipk                03-Apr-2010 17:27               12582
php5-mod-json_5.3.1-3_brcm47xx.ipk                 03-Apr-2010 17:27               10051
php5-mod-ldap_5.3.1-3_brcm47xx.ipk                 03-Apr-2010 17:27               14784
php5-mod-mbstring_5.3.1-3_brcm47xx.ipk             03-Apr-2010 17:27             1068873
php5-mod-mcrypt_5.3.1-3_brcm47xx.ipk               03-Apr-2010 17:27               11398
php5-mod-mysql_5.3.1-3_brcm47xx.ipk                03-Apr-2010 17:27               16417
php5-mod-openssl_5.3.1-3_brcm47xx.ipk              03-Apr-2010 17:27               34032
php5-mod-pdo-mysql_5.3.1-3_brcm47xx.ipk            03-Apr-2010 17:27               13247
php5-mod-pdo-pgsql_5.3.1-3_brcm47xx.ipk            03-Apr-2010 17:27               10550
php5-mod-pdo-sqlite_5.3.1-3_brcm47xx.ipk           03-Apr-2010 17:27                8683
php5-mod-pdo_5.3.1-3_brcm47xx.ipk                  03-Apr-2010 17:27               33425
php5-mod-pgsql_5.3.1-3_brcm47xx.ipk                03-Apr-2010 17:27               31606
php5-mod-session_5.3.1-3_brcm47xx.ipk              03-Apr-2010 17:27               22651
php5-mod-sockets_5.3.1-3_brcm47xx.ipk              03-Apr-2010 17:27               12315
php5-mod-sqlite3_5.3.1-3_brcm47xx.ipk              03-Apr-2010 17:27               13258
php5-mod-sqlite_5.3.1-3_brcm47xx.ipk               03-Apr-2010 17:27               21500
php5-mod-tokenizer_5.3.1-3_brcm47xx.ipk            03-Apr-2010 17:27                5156
php5-mod-xml_5.3.1-3_brcm47xx.ipk                  03-Apr-2010 17:27               10673
php5_5.3.1-3_brcm47xx.ipk                          03-Apr-2010 17:26                4149

tylko nie wiem który potrzebuje i gdzie w make menu config szukać tego hmm

4

Odp: czytanie maili przez stronke WWW/PHP

Może nie jest budowany. Pogrzeb po źródłach php i zobacz czy imap.so się buduje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez macmus 2010-04-13 15:30:26)

Odp: czytanie maili przez stronke WWW/PHP

fakt smile

sekcja languages:

  │ │ <M> php-pear............................................................ PEAR                                   │ │  
  │ │ <M>   php-pear-db............................................... PEAR DB module                                 │ │  
  │ │ <M>   php-pear-xmlrpc...................................... PEAR XML-RPC module                                 │ │  
  │ │ < > php4......................................... PHP4 Hypertext preprocessor                                   │ │  
  │ │ <M> php5......................................... PHP5 Hypertext preprocessor                                   │ │  
  │ │     PHP5 SPL Options (without SPL (pcre may be enabled))  --->                                                  │ │  
  │ │ <M> php5-cgi............................... PHP5 Hypertext preprocessor (CGI)                                   │ │  
  │ │ <M> php5-cli............................... PHP5 Hypertext preprocessor (CLI)     
  │ │ <M> php5-fastcgi....................... PHP5 Hypertext preprocessor (FastCGI)                                   │ │  
  │ │ <M> php5-mod-apc............................................... APC Extension                                   │ │  
  │ │ <M> php5-mod-curl................................................ cURL module                                   │ │  
  │ │ <M> php5-mod-exif............................................. EXIF Extension                                   │ │  
  │ │ <M> php5-mod-ftp.................................................. FTP module                                   │ │  
  │ │ <M> php5-mod-gd........................................... GD graphics module                                   │ │  
  │ │ <M> php5-mod-gmp.................................................. GMP module                                   │ │  
  │ │ <M> php5-mod-ldap................................................ LDAP module                                   │ │  
  │ │ <M> php5-mod-mysql.............................................. MySQL module                                   │ │  
  │ │ <M> php5-mod-openssl.......................................... OpenSSL module                                   │ │  
  │ │ <M> php5-mod-pcre................................................ PCRE module                                   │ │  
  │ │ <M> php5-mod-pdo..................................... PHP Data Objects module                                   │ │  
  │ │ <M>   php5-mod-pdo-sqlite............. PHP Data Objects module - SQLite support                                 │ │  
  │ │ <M> php5-mod-pgsql......................................... PostgreSQL module                                   │ │  
  │ │ <M> php5-mod-session.......................................... Session module                                   │ │  
  │ │ <M> php5-mod-sockets.......................................... Sockets module                                   │ │  
  │ │ <M> php5-mod-sqlite............................................ SQLite module                                   │ │  
  │ │ <M> php5-mod-xml.................................................. XML module

no i Makefile

x@ubuntu:/openwrt/trunk/feeds/packages/lang/php5$ cat Makefile 
# 
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=php
PKG_VERSION:=5.2.6
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.php.net/distributions/
PKG_MD5SUM:=7380ffecebd95c6edb317ef861229ebd

include $(INCLUDE_DIR)/package.mk

define Package/php5/Default
  SUBMENU:=PHP
  SECTION:=lang
  CATEGORY:=Languages
  TITLE:=PHP5 Hypertext preprocessor
  URL:=http://www.php.net/
endef

define Package/php5/Default/description
 PHP is a widely-used general-purpose scripting language that is especially 
 suited for Web development and can be embedded into HTML.
endef

define Package/php5/config
       choice
               prompt "PHP5 SPL Options"
               default PACKAGE_php5_without_spl

       config PACKAGE_php5_with_spl
               bool "With SPL (and pcre) static"

       config PACKAGE_php5_without_spl
               bool "without SPL (pcre may be enabled)"
       endchoice
endef

define Package/php5
  $(call Package/php5/Default)
    ifneq ($(CONFIG_PACKAGE_php5_with_spl),)
          DEPENDS:=+libopenssl +zlib
        CONFIG_PACKAGE_php5-mod-pcre:=
    else
          DEPENDS:=+libopenssl +zlib +libpcre
    endif
endef

define Package/php5/description
$(call Package/php5/Default/description)
 This package contains only the PHP config file. You must actually choose 
 your PHP flavour (cli, cgi or fastcgi).
endef

define Package/php5-cli
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE+= (CLI)
endef

define Package/php5-cli/description
$(call Package/php5/Default/description)
 This package contains the CLI version of the PHP5 interpreter.
endef

define Package/php5-cgi
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE+= (CGI)
endef

define Package/php5-cgi/description
$(call Package/php5/Default/description)
 This package contains the CGI version of the PHP5 interpreter.
endef

define Package/php5-fastcgi
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE+= (FastCGI)
endef

define Package/php5-fastcgi/description
$(call Package/php5/Default/description)
 This package contains the FastCGI version of the PHP5 interpreter.
endef

define Package/php5-mod-curl
  $(call Package/php5/Default)
  DEPENDS:=php5 +libcurl
  TITLE:=cURL module
endef

define Package/php5-mod-ftp
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=FTP module
endef

define Package/php5-mod-gd
  $(call Package/php5/Default)
  DEPENDS:=php5 +libgd
  TITLE:=GD graphics module
endef

define Package/php5-mod-gmp
  $(call Package/php5/Default)
  DEPENDS:=php5 +libgmp
  TITLE:=GMP module
endef

define Package/php5-mod-ldap
  $(call Package/php5/Default)
  DEPENDS:=php5 +libopenldap +libsasl2
  TITLE:=LDAP module
endef

define Package/php5-mod-mysql
  $(call Package/php5/Default)
  DEPENDS:=php5 +libmysqlclient
  TITLE:=MySQL module
endef

define Package/php5-mod-openssl
  $(call Package/php5/Default)
  DEPENDS:=php5 +libopenssl
  TITLE:=OpenSSL module
endef

define Package/php5-mod-pcre
  $(call Package/php5/Default)
  DEPENDS:=php5 +libpcre
  TITLE:=PCRE module
endef

define Package/php5-mod-pgsql
  $(call Package/php5/Default)
  DEPENDS:=php5 +libpq
  TITLE:=PostgreSQL module
endef

define Package/php5-mod-session
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=Session module
endef

define Package/php5-mod-sockets
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=Sockets module
endef

define Package/php5-mod-sqlite
  $(call Package/php5/Default)
  DEPENDS:=php5 +libsqlite2
  TITLE:=SQLite module
endef

define Package/php5-mod-pdo
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=PHP Data Objects module
endef

define Package/php5-mod-pdo-sqlite
  $(call Package/php5/Default)
  DEPENDS:=php5-mod-pdo +libsqlite3
  TITLE:=PHP Data Objects module - SQLite support
endef

define Package/php5-mod-xml
  $(call Package/php5/Default)
  DEPENDS:=php5 +libexpat
  TITLE:=XML module
endef

define Package/php5-mod-apc
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=APC Extension
endef

define Package/php5-mod-exif
  $(call Package/php5/Default)
  DEPENDS:=php5
  TITLE:=EXIF Extension
endef

PKG_CONFIGURE_LIBS:= -lcrypto -lssl
PKG_CONFIGURE_OPTS:= \
    --enable-shared \
    --disable-static \
    --disable-rpath \
    --disable-debug \
    --without-pear \
    \
    --with-config-file-path=/etc \
    --enable-magic-quotes \
    --enable-memory-limit \
    --disable-short-tags \
    \
    --disable-ctype \
    --disable-dom \
    --enable-ftp=shared \
    --without-gettext \
    --without-iconv \
    --disable-libxml \
      --without-libxml-dir \
    --disable-xmlreader \
    --disable-xmlwriter \
    --disable-mbstring \
    --disable-mbregex \
    --with-openssl=shared,"$(STAGING_DIR)/usr" \
      --with-kerberos=no \
      --with-openssl-dir="$(STAGING_DIR)/usr" \
    --enable-session=shared \
    --disable-simplexml \
    --disable-soap \
    --enable-sockets=shared \
    --disable-tokenizer \
    --with-zlib="$(STAGING_DIR)/usr" \
      --with-zlib-dir="$(STAGING_DIR)/usr" \
    --disable-filter

ifneq ($(SDK),)
  PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libexpat
# force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
  CONFIG_PACKAGE_php5-cli:=m
  CONFIG_PACKAGE_php5-cgi:=m
  CONFIG_PACKAGE_php5-fastcgi:=m
  CONFIG_PACKAGE_php5-mod-curl:=m
  CONFIG_PACKAGE_php5-mod-gd:=m
  CONFIG_PACKAGE_php5-mod-gmp:=m
  CONFIG_PACKAGE_php5-mod-ldap:=m
  CONFIG_PACKAGE_php5-mod-mysql:=m
  ifneq ($(CONFIG_PACKAGE_php5_with_spl),)
    CONFIG_PACKAGE_php5-mod-pcre:=n
  else
    CONFIG_PACKAGE_php5-mod-pcre:=m
  endif
  CONFIG_PACKAGE_php5-mod-pgsql:=m
  CONFIG_PACKAGE_php5-mod-sqlite:=m
  CONFIG_PACKAGE_php5-mod-xml:=m
endif

ifneq ($(CONFIG_PACKAGE_php5-mod-curl),)
  PKG_CONFIGURE_OPTS+= --with-curl=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-curl
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-gd),)
  PKG_CONFIGURE_OPTS+= --with-gd=shared,"$(STAGING_DIR)/usr" \
    --without-freetype-dir \
    --with-jpeg-dir="$(STAGING_DIR)/usr" \
    --with-png-dir="$(STAGING_DIR)/usr" \
    --without-xpm-dir \
    --without-ttf \
    --without-t1lib \
    --enable-gd-native-ttf \
    --disable-gd-jis-conv
else
  PKG_CONFIGURE_OPTS+= --without-gd
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-gmp),)
  PKG_CONFIGURE_OPTS+= --with-gmp=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-gmp
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-ldap),)
  PKG_CONFIGURE_OPTS+= --with-ldap=shared,"$(STAGING_DIR)/usr" \
    --with-ldap-sasl="$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-ldap
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-mysql),)
  PKG_CONFIGURE_OPTS+= --with-mysql=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-mysql
endif
ifneq ($(CONFIG_PACKAGE_php5_with_spl),)
  PKG_CONFIGURE_OPTS+= --with-pcre-dir="$(STAGING_DIR)/usr"
  PKG_CONFIGURE_OPTS+= --enable-spl
else
  PKG_CONFIGURE_OPTS+= --disable-spl
ifneq ($(CONFIG_PACKAGE_php5-mod-pcre),)
  PKG_CONFIGURE_OPTS+= --with-pcre-regex=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-pcre-regex
endif
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-pgsql),)
  PKG_CONFIGURE_OPTS+= --with-pgsql=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-pgsql
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite),)
  PKG_CONFIGURE_OPTS+= --with-sqlite=shared,"$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --without-sqlite
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-pdo),)
  PKG_CONFIGURE_OPTS+= --enable-pdo=shared
  ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite),)
    PKG_CONFIGURE_OPTS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
  endif
else
  PKG_CONFIGURE_OPTS+= --disable-pdo
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-xml),)
  PKG_CONFIGURE_OPTS+= --enable-xml=shared,"$(STAGING_DIR)/usr" \
    --with-libexpat-dir="$(STAGING_DIR)/usr"
else
  PKG_CONFIGURE_OPTS+= --disable-xml
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-apc),)
  PKG_CONFIGURE_OPTS+= --enable-apc --disable-apc-mmap --disable-apc-pthreadmutex
  PKG_CONFIGURE_LIBS+= -lrt
else
  PKG_CONFIGURE_OPTS+= --disable-apc
endif
ifneq ($(CONFIG_PACKAGE_php5-mod-exif),)
  PKG_CONFIGURE_OPTS+= --enable-exif
else
  PKG_CONFIGURE_OPTS+= --disable-exif
endif

define Build/Configure
endef

ifneq ($(CONFIG_PACKAGE_php5-cli),)
  define Build/Compile/php5-cli
    -$(MAKE) -C $(PKG_BUILD_DIR) clean
    $(call Build/Configure/Default, \
        $(PKG_CONFIGURE_OPTS) \
        --enable-cli \
        --disable-cgi \
        --disable-fastcgi \
        --enable-force-cgi-redirect \
        --enable-discard-path \
        , \
        LIBS="$(PKG_CONFIGURE_LIBS)" \
        php_cv_cc_rpath="no" \
    )
    $(MAKE) -C $(PKG_BUILD_DIR)
    mv $(PKG_BUILD_DIR)/sapi/cli/php $(PKG_BUILD_DIR)/php-cli
  endef
endif

ifneq ($(CONFIG_PACKAGE_php5-cgi),)
  define Build/Compile/php5-cgi
    -$(MAKE) -C $(PKG_BUILD_DIR) clean
    $(call Build/Configure/Default, \
        $(PKG_CONFIGURE_OPTS) \
        --disable-cli \
        --enable-cgi \
        --disable-fastcgi \
        --enable-force-cgi-redirect \
        --enable-discard-path \
        , \
        LIBS="$(PKG_CONFIGURE_LIBS)" \
        php_cv_cc_rpath="no" \
    )
    $(MAKE) -C $(PKG_BUILD_DIR)
    mv $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(PKG_BUILD_DIR)/php-cgi
  endef
endif

ifneq ($(CONFIG_PACKAGE_php5-fastcgi),)
  define Build/Compile/php5-fastcgi
    -$(MAKE) -C $(PKG_BUILD_DIR) clean
    rm $(PKG_BUILD_DIR)/configure
    cd $(PKG_BUILD_DIR) && ./buildconf --force
    $(call Build/Configure/Default, \
        $(PKG_CONFIGURE_OPTS) \
        --disable-cli \
        --enable-cgi \
        --enable-fastcgi \
        --enable-force-cgi-redirect \
        --enable-discard-path \
        , \
        LIBS="$(PKG_CONFIGURE_LIBS)" \
        php_cv_cc_rpath="no" \
    )
    $(MAKE) -C $(PKG_BUILD_DIR)
    mv $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(PKG_BUILD_DIR)/php-fcgi
  endef
endif

define Build/Compile
    $(call Build/Compile/php5-cli)
    $(call Build/Compile/php5-cgi)
    $(call Build/Compile/php5-fastcgi)
endef

define Package/php5/conffiles
/etc/php.ini
endef

define Package/php5/install
    $(INSTALL_DIR) $(1)/etc
    $(INSTALL_DATA) ./files/php.ini $(1)/etc/
endef

define Package/php5-cli/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(CP) $(PKG_BUILD_DIR)/php-cli $(1)/usr/bin/php-cli
endef

define Package/php5-cgi/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(CP) $(PKG_BUILD_DIR)/php-cgi $(1)/usr/bin/php-cgi
endef

define Package/php5-fastcgi/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(CP) $(PKG_BUILD_DIR)/php-fcgi $(1)/usr/bin/php-fcgi
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/php.init $(1)/etc/init.d/php
endef

define BuildPlugin
  define Package/$(1)/install
    [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/php
    for m in $(2); do \
        [ -z "$(CONFIG_PACKAGE_$(1))" ] \
             || $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$$$$$$$${m}.so $$(1)/usr/lib/php/ ; \
    done
  endef

  $$(eval $$(call BuildPackage,$(1)))
endef

$(eval $(call BuildPackage,php5))
$(eval $(call BuildPackage,php5-cli))
$(eval $(call BuildPackage,php5-cgi))
$(eval $(call BuildPackage,php5-fastcgi))
$(eval $(call BuildPlugin,php5-mod-curl,curl))
$(eval $(call BuildPlugin,php5-mod-ftp,ftp))
$(eval $(call BuildPlugin,php5-mod-gd,gd))
$(eval $(call BuildPlugin,php5-mod-gmp,gmp))
$(eval $(call BuildPlugin,php5-mod-ldap,ldap))
$(eval $(call BuildPlugin,php5-mod-mysql,mysql))
$(eval $(call BuildPlugin,php5-mod-openssl,openssl))
$(eval $(call BuildPlugin,php5-mod-pcre,pcre))
$(eval $(call BuildPlugin,php5-mod-pgsql,pgsql))
$(eval $(call BuildPlugin,php5-mod-session,session))
$(eval $(call BuildPlugin,php5-mod-sockets,sockets))
$(eval $(call BuildPlugin,php5-mod-sqlite,sqlite))
$(eval $(call BuildPlugin,php5-mod-pdo,pdo))
$(eval $(call BuildPlugin,php5-mod-pdo-sqlite,pdo_sqlite))
$(eval $(call BuildPlugin,php5-mod-xml,xml))
$(eval $(call BuildPlugin,php5-mod-apc))
$(eval $(call BuildPlugin,php5-mod-exif))

nie ma w definiicji sad

edit:
szperam po
https://dev.openwrt.org/browser/package … 5/Makefile
i coś nie widze obslugi imapa hmm

edit2:
a moze to ldap.so ?

6

Odp: czytanie maili przez stronke WWW/PHP

ldap.so. to coś innego.

Chodzi mi o to, że  po prostu nie ma definicji takiego pakietu. O ile samo php może taki moduł skompilować, o tyle w openwrt nikt go nie potrzebował...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: czytanie maili przez stronke WWW/PHP

czyli odpadaj klienty z wymaganym imapem ;(

8

Odp: czytanie maili przez stronke WWW/PHP

udało sie tylko z ilohamail, ale mam problem z wysyłaniem maili. Działa z jakiegokolwiek kilenta poczty ale ze stronki nie:

moj server.tab

root@OpenWrt:/mnt/sda1/mail# cat server.tab
"RootDomain"    "x.pl"
"SmtpServerDomain"      "x.pl"
"POP3Domain"    "x.pl"
"HeloDomain"    "x.pl"
#"PostMaster"   "admin@x.pl"
#"ErrorsAdmin"  "admin@x.pl"
#"TempErrorsAdmin"      "send-failures@xmailserver.test"
#"DefaultSMTPGateways"  "192.168.1.2,192.168.1.15"
"RemoveSpoolErrors"     "0"
"Pop3LogPasswd" "0"
#"NoSenderBounce"       "1"
#"DisableEmitAuthUser"  "1"
#"NotifyMsgLinesExtra"  "8"
#"NotifySendLogToSender"        "0"
#"NotifyTryPattern"     "1"
"MaxMTAOps"     "16"
"ReceivedHdrType"       "0"
"FetchHdrTags"  "+X-Deliver-To,+Received,To,Cc"
#"SmtpGwConfig" "NeedTLS=1,OutBind=192.168.1.1"
#"EnableCTRL-TLS"       "1"
#"EnableSMTP-TLS"       "1"
#"EnablePOP3-TLS"       "1"
#"SmtpMsgIPBanSpammers" "550 Denied due inclusion of your IP in our spam lists"
#"SmtpMsgIPBanSpamAddress"      "550 Denied due inclusion of your email address in our spam lists"
#"SmtpMsgIPBanMaps"     "550 Denied due inclusion of your IP in the following map"
#"CustomSMTPMessage"    "Please open http://www.xmailserver.test/smtp_errors.html to get more information about this error"
#"MaxMessageSize"       "20000"
"EnableAuthSMTP-POP3"   "0"
#"Pop3SyncErrorAccount" "psync-errors@xmailserver.test"
#"AllowNullSender"      "1"
#"AllowSmtpVRFY"        "1"
#"AllowSmtpETRN"        "1"
#"SMTP-MaxErrors"       "4"
#"SmtpMinDiskSpace"     "100000"
#"SmtpMinVirtMemSpace"  "64000"
#"Pop3MinVirtMemSpace"  "64000"
#"CustMapsList" "list.dsbl.org.:1,blackholes.mail-abuse.org.:1,dialups.mail-abuse.org.:0"
#"SMTP-RDNSCheck"       "1"
"CheckMailerDomain"     "1"
"SmartDNSHost"  "dns.home.bogus.net:tcp,192.168.1.1:udp"
#"SmtpConfig"   "mail-auth"
"SmtpConfig-192_168_0_2"        "mail-auth"
"DefaultSmtpPerms"      "MRVZ"

znalazłem taki zapis:

/***************** SMTP Server  **************
        SMTP server to use.  Default is "localhost",
        however any SMTP server that'll allow relaying
        from your webmail server can be used.
        Authenticated SMTP is currently not supported.

        Leave string empty to use PHP's mail() function.
        (Might work more reliably.)
*/

$SMTP_SERVER = "";


/***************** SMTP Type  **************
        The SMTP server type.  This is used to
        accomodate slight differences between SMTP
        servers.

        This directive only takes effect if $SMTP_SERVER
        is specified.

        Supported values:  "sendmail", "courier"

        NOTE: if you're not sure, just use "sendmail"
*/

$SMTP_TYPE = "sendmail";

9

Odp: czytanie maili przez stronke WWW/PHP

J/w. Musi być serwer który do wysyłania mejla nie potrzebuje autoryzacji (z localhosta)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: czytanie maili przez stronke WWW/PHP

czyli jak przestawic server.tab i ten config zeby umożliwić wysyłąnie temu skryptowi np:

- local host nie wymaga autoryzacji ?

11 (edytowany przez macmus 2010-04-14 14:02:38)

Odp: czytanie maili przez stronke WWW/PHP

edit: wpisanie w konfigu strony webowej

$SMTP_SERVER = "localhost";

i modyfikacja pliku smtprelay w xmailu

"127.0.0.1"<tab>"255.255.255.255"

sprawiła, że wysyłana działa smile

topic więc zamknięty !!