| 8 | |
| 9 | == Compatibility Issues In General with PHP 7.x.xx == |
| 10 | |
| 11 | Basically PHP will work for the most part outta the box but thus far the following extentions need to be compiled from ports and installed manually. |
| 12 | |
| 13 | So that being Said Use this to Compile the Base : |
| 14 | |
| 15 | {{{ |
| 16 | export OPENSSL_LIBS="-L/usr -lssl -lcrypto -lz" && export OPENSSL_CFLAGS="-I/usr/include" && ./configure \ |
| 17 | --with-layout=GNU \ |
| 18 | --enable-mbstring \ |
| 19 | --with-ldap \ |
| 20 | --without-iconv \ |
| 21 | --with-imap \ |
| 22 | --with-imap-ssl \ |
| 23 | --enable-exif \ |
| 24 | --enable-gd \ |
| 25 | --with-zip \ |
| 26 | --enable-ftp \ |
| 27 | --with-jpeg \ |
| 28 | --with-curl \ |
| 29 | --with-openssl=/usr/local \ |
| 30 | --with-zlib \ |
| 31 | --enable-pdo \ |
| 32 | --with-pdo-pgsql \ |
| 33 | --with-pgsql \ |
| 34 | --with-mysqli \ |
| 35 | --with-config-file-scan-dir=/usr/local/etc/php \ |
| 36 | --enable-ctype \ |
| 37 | --with-libxml \ |
| 38 | --with-password-argon2=/usr/local \ |
| 39 | --program-prefix= \ |
| 40 | --enable-mysqlnd \ |
| 41 | --enable-cli \ |
| 42 | --disable-cgi \ |
| 43 | --with-apxs2=/usr/local/sbin/apxs \ |
| 44 | --enable-maintainer-zts \ |
| 45 | --enable-dtrace \ |
| 46 | --prefix=/usr/local \ |
| 47 | --localstatedir=/var \ |
| 48 | --mandir=/usr/local/man \ |
| 49 | --infodir=/usr/local/share/info/ \ |
| 50 | --build=amd64-portbld-freebsd12.1 \ |
| 51 | build_alias=amd64-portbld-freebsd12.1 \ |
| 52 | PKG_CONFIG=pkgconf \ |
| 53 | CFLAGS='-O2 -pipe -fstack-protector-strong -fno-strict-aliasing' \ |
| 54 | CPP=cpp \ |
| 55 | CXXFLAGS='-O2 -pipe -fstack-protector-strong -fno-strict-aliasing' |
| 56 | }}} |
| 57 | |
| 58 | * From there please note the following modules need to be compile in and added to php.ini file manually |
| 59 | ** intl extention |
| 60 | ** Found in '''/usr/ports/devel/php74-intl''' |
| 61 | ** Add to /usr/local/etc/php.ini file '''extension=/usr/local/include/php/ext/intl/modules/intl.so''' |
| 62 | |
| 63 | ** iconv.so - Note this was required to fix the apache core dump issues when in use. |
| 64 | ** Found in '''/usr/ports/converters/php74-iconv''' |
| 65 | ** Add to /usr/local/etc/php.ini file '''extension=/usr/local/include/php/ext/iconv/modules/iconv.so''' |
| 66 | |
| 67 | ** imagick.so extention (please see additional notes) |
| 68 | ** Found In '''/usr/ports/graphics/pecl-imagick''' |
| 69 | ** Add to /usr/local/etc/php.ini file '''extension=/usr/local/include/php/ext/imagick/modules/imagick.so''' |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |