FreeNAS 9でWordpressを動作させるためにPHP extensionsをインストールします
1) Install WordPress on FreeNAS 9 – Nginx
http://www.rootlinks.net/2013/11/15/install-wordpress-on-freenas-9-nginx/
2) Install WordPress on FreeNAS 9 – PHP
http://www.rootlinks.net/2013/11/15/install-wordpress-on-freenas-9-php/
参考サイト
Setting up a FreeBSD 9 WordPress Server on 128MB of RAM
http://virtuallyhyper.com/2013/04/setting-up-freebsd-9-wordpress-server-on-128mb-of-ram/
- オプション設定
- make
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
root@vhost:/root # cd /usr/ports/lang/php5-extensions root@vhost:/usr/ports/lang/php5-extensions # make showconfig ===> The following configuration options are available for php5-extensions-1.7: BCMATH=off: bc style precision math functions BZ2=off: bzip2 library support CALENDAR=off: calendar conversion support CTYPE=on: ctype functions CURL=off: CURL support DBA=off: dba support DOM=on: DOM support EXIF=off: EXIF support FILEINFO=off: fileinfo support FILTER=on: input filter support FTP=off: FTP support GD=off: GD library support GETTEXT=off: gettext library support GMP=off: GNU MP support HASH=on: HASH Message Digest Framework ICONV=on: iconv support IMAP=off: IMAP support INTERBASE=off: Interbase 6 database support (Firebird) JSON=on: JavaScript Object Serialization support LDAP=off: OpenLDAP support MBSTRING=off: multibyte string support MCRYPT=off: Encryption support MSSQL=off: MS-SQL database support MYSQL=off: MySQL database support MYSQLI=off: MySQLi database support ODBC=off: ODBC support OPENSSL=off: OpenSSL support PCNTL=off: pcntl support (CLI only) PDF=off: PDFlib support (implies GD) PDO=on: PHP Data Objects Interface (PDO) PDO_DBLIB=off: PDO DBLIB-DB driver PDO_FIREBIRD=off: PDO Firebird driver PDO_MYSQL=off: PDO MySQL driver PDO_ODBC=off: PDO ODBC driver PDO_PGSQL=off: PDO PostgreSQL driver PDO_SQLITE=on: PDO sqlite driver PGSQL=off: PostgreSQL database support PHAR=on: phar support POSIX=on: POSIX-like functions PSPELL=off: pspell support READLINE=off: readline support (CLI only) RECODE=off: recode support SESSION=on: session support SHMOP=off: shmop support SIMPLEXML=on: simplexml support SNMP=off: SNMP support SOAP=off: SOAP support SOCKETS=off: sockets support SQLITE3=on: sqlite3 support SYBASE_CT=off: Sybase database support SYSVMSG=off: System V message support SYSVSEM=off: System V semaphore support SYSVSHM=off: System V shared memory support TIDY=off: TIDY support TOKENIZER=on: tokenizer support WDDX=off: WDDX support (implies XML) XML=on: XML support XMLREADER=on: XMLReader support XMLRPC=off: XMLRPC-EPI support XMLWRITER=on: XMLWriter support XSL=off: XSL support (Implies DOM) ZIP=off: ZIP support ZLIB=off: ZLIB support ===> Use 'make config' to modify these settings |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
root@vhost:/usr/ports/lang/php5-extensions # make config-recursive ===> Setting user-specified options for php5-extensions-1.7 and dependencies root@vhost:/usr/ports/lang/php5-extensions # make showconfig ===> The following configuration options are available for php5-extensions-1.7: BCMATH=off: bc style precision math functions BZ2=off: bzip2 library support CALENDAR=off: calendar conversion support CTYPE=on: ctype functions CURL=on: CURL support DBA=on: dba support DOM=on: DOM support EXIF=off: EXIF support FILEINFO=off: fileinfo support FILTER=on: input filter support FTP=off: FTP support GD=off: GD library support GETTEXT=off: gettext library support GMP=off: GNU MP support HASH=on: HASH Message Digest Framework ICONV=on: iconv support IMAP=off: IMAP support INTERBASE=off: Interbase 6 database support (Firebird) JSON=on: JavaScript Object Serialization support LDAP=off: OpenLDAP support MBSTRING=off: multibyte string support MCRYPT=off: Encryption support MSSQL=off: MS-SQL database support MYSQL=on: MySQL database support MYSQLI=off: MySQLi database support ODBC=off: ODBC support OPENSSL=off: OpenSSL support PCNTL=off: pcntl support (CLI only) PDF=off: PDFlib support (implies GD) PDO=on: PHP Data Objects Interface (PDO) PDO_DBLIB=off: PDO DBLIB-DB driver PDO_FIREBIRD=off: PDO Firebird driver PDO_MYSQL=off: PDO MySQL driver PDO_ODBC=off: PDO ODBC driver PDO_PGSQL=off: PDO PostgreSQL driver PDO_SQLITE=on: PDO sqlite driver PGSQL=off: PostgreSQL database support PHAR=on: phar support POSIX=on: POSIX-like functions PSPELL=off: pspell support READLINE=off: readline support (CLI only) RECODE=off: recode support SESSION=on: session support SHMOP=off: shmop support SIMPLEXML=on: simplexml support SNMP=off: SNMP support SOAP=off: SOAP support SOCKETS=off: sockets support SQLITE3=on: sqlite3 support SYBASE_CT=off: Sybase database support SYSVMSG=off: System V message support SYSVSEM=off: System V semaphore support SYSVSHM=off: System V shared memory support TIDY=off: TIDY support TOKENIZER=on: tokenizer support WDDX=off: WDDX support (implies XML) XML=on: XML support XMLREADER=on: XMLReader support XMLRPC=off: XMLRPC-EPI support XMLWRITER=on: XMLWriter support XSL=off: XSL support (Implies DOM) ZIP=off: ZIP support ZLIB=off: ZLIB support ===> Use 'make config' to modify these settings |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
root@vhost:/usr/ports/lang/php5-extensions # make all-depends-list /usr/ports/ports-mgmt/pkg /usr/ports/lang/php5 /usr/ports/textproc/php5-ctype /usr/ports/ftp/php5-curl /usr/ports/databases/php5-dba /usr/ports/textproc/php5-dom /usr/ports/security/php5-filter /usr/ports/security/php5-hash /usr/ports/converters/php5-iconv /usr/ports/devel/php5-json /usr/ports/databases/php5-mysql /usr/ports/databases/php5-pdo /usr/ports/databases/php5-pdo_sqlite /usr/ports/archivers/php5-phar /usr/ports/sysutils/php5-posix /usr/ports/www/php5-session /usr/ports/textproc/php5-simplexml /usr/ports/databases/php5-sqlite3 /usr/ports/devel/php5-tokenizer /usr/ports/textproc/php5-xml /usr/ports/textproc/php5-xmlreader /usr/ports/textproc/php5-xmlwriter /usr/ports/devel/autoconf /usr/ports/devel/pcre /usr/ports/textproc/libxml2 /usr/ports/ftp/curl /usr/ports/converters/libiconv /usr/ports/databases/sqlite3 /usr/ports/devel/pkgconf /usr/ports/devel/m4 /usr/ports/misc/help2man /usr/ports/devel/gmake /usr/ports/lang/perl5.14 /usr/ports/devel/autoconf-wrapper /usr/ports/security/ca_root_nss /usr/ports/devel/p5-Locale-gettext /usr/ports/devel/gettext |
makeがエラーでSTOPしてしまいました
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
root@vhost:/usr/ports/lang/php5-extensions # make ===> Found saved configuration for php5-extensions-1.7 ===> php5-extensions-1.7 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by php5-extensions-1.7 for building ===> Extracting for php5-extensions-1.7 ===> Patching for php5-extensions-1.7 (snip) In file included from /usr/local/include/php/Zend/zend_config.h:1, from /usr/local/include/php/Zend/zend.h:51, from /usr/local/include/php/main/php.h:34, from /usr/ports/textproc/php5-ctype/work/php-5.4.21/ext/ctype/ctype.c:23: /usr/local/include/php/main/../main/php_config.h:2380:28: error: ext/php_config.h: No such file or directory In file included from /usr/local/include/php/main/php_compat.h:27, from /usr/local/include/php/main/php.h:36, from /usr/ports/textproc/php5-ctype/work/php-5.4.21/ext/ctype/ctype.c:23: /usr/local/include/php/main/php_config.h:2380:28: error: ext/php_config.h: No such file or directory *** [ctype.lo] Error code 1 1 error ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** [do-build] Error code 1 Stop in /usr/ports/textproc/php5-ctype. *** [build-depends] Error code 1 Stop in /usr/ports/lang/php5-extensions. *** [configure] Error code 1 Stop in /usr/ports/lang/php5-extensions. |
portsでインストールしているのにファイルが無いと怒られていますが….さてどうしたものか
/usr/local/include/php/main/../main/php_config.h:2380:28: error: ext/php_config.h: No such file or directory
確かにファイルが無いのですが何故でしょうか
1 2 3 4 5 6 7 8 9 |
root@vhost:/root # ls -l /usr/local/include/php/ext/ total 70 drwxr-xr-x 3 root wheel 4 Nov 15 17:29 date drwxr-xr-x 3 root wheel 5 Nov 15 17:29 ereg drwxr-xr-x 2 root wheel 3 Nov 15 17:29 libxml drwxr-xr-x 2 root wheel 22 Nov 15 17:29 mysqlnd drwxr-xr-x 2 root wheel 3 Nov 15 17:29 pcre drwxr-xr-x 2 root wheel 13 Nov 15 17:29 spl drwxr-xr-x 2 root wheel 64 Nov 15 17:29 standard |
phpのインストールが不完全だったのかな