############################# # $LastChangedBy: pierre $ # $Date: 2021-02-07 11:32:00 -0600 (Sun, 07 Feb 2021) $ # # Almost all the dependencies are in the book, except: # - GD: there is a bundled version. If you have built your own, you should # add the switch --with-external-gd # - Net-SNMP: remove the switch --with-snmp if not built # - Berkeley-DB: only versions 1 to 5.3 are supported. The build with # version 6.x is possible if using the following sed. However you should # make sure that the licence for that version is compatible with your # intended usage. ############################# grep -rl "DB_VERSION_MAJOR == 5" | xargs sed -i 's/DB_VERSION_MAJOR == 5/DB_VERSION_MAJOR >= 5/' && sed -i 's/(4|5)/(4|5|6)/' ext/dba/tests/dba_db4_handlers.phpt ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --datadir=/usr/share/php \ --mandir=/usr/share/man \ --enable-fpm \ --with-fpm-user=apache \ --with-fpm-group=apache \ --with-config-file-path=/etc \ --with-openssl \ --with-kerberos \ --with-external-pcre \ --with-zlib \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --with-curl \ --enable-dba=shared \ --with-gdbm \ --with-db4 \ --enable-inifile \ --enable-flatfile \ --enable-exif \ --enable-ftp \ --with-openssl-dir=/usr \ --enable-gd \ --with-jpeg \ --with-zlib-dir=/usr \ --with-xpm \ --with-freetype \ --with-gettext \ --with-gmp \ --with-ldap \ --with-ldap-sasl \ --enable-mbstring \ --with-mysqli=mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-unixODBC=/usr \ --enable-pcntl \ --with-pdo-mysql \ --with-pdo-odbc=unixODBC,/usr \ --with-pdo-pgsql \ --without-pdo-sqlite \ --with-pgsql \ --with-pspell \ --with-readline \ --with-snmp \ --enable-sockets \ --with-tidy \ --with-xsl \ --with-iconv # Notes about tests: # - To test mysqli and pdo_mysql, the MySQL server should be local, and # there should be a database named `test', accessible and # modifiable by user `root' without password. # - To test pgsql and pdo_sql, it is assumed that the PostgreSQL server # is installed locally, that there is a PostgreSQL account for the # user running the test, and there is database named `test'. # - For ldap, most tests rely on the availability of an LDAP server # configured with TLS (as recommended in the BLFS book). Furthermore, an # empty LDAP structure is needed. # The (/etc/openldap/)slapd.conf file should contain the following in # addition to the default configuration set up on the openldap page: # ---------- # TLSCACertificateFile /etc/openldap/ssl/server.pem # TLSCertificateFile /etc/openldap/ssl/server.pem # TLSCertificateKeyFile /etc/openldap/ssl/server.pem # TLSVerifyClient never # authz-regexp # uid=Manager,cn=digest-md5,cn=auth # cn=Manager,dc=my-domain,dc=com # --------- # A self signed certificate is needed, and can be generated (as root) using: # # mkdir -p /etc/openldap/ssl && cd /etc/openldap/ssl # # openssl req -newkey rsa:1024 -x509 -nodes -out server.pem \ # -keyout server.pem -days 3650 # # chown ldap:ldap /etc/openldap/ssl/* # The (/etc/openldap/)ldap.conf file should contain: # --------- # TLS_REQCERT never # --------- # The LDAP user is cn=Manager,dc=my-domain,dc=com, with password "secret". # - TODO: document test requirements for odbc, etc.