FreeNAS 9でWordpressを動作させてみる試みでNginxの次はphpをインストールします
1) Install WordPress on FreeNAS 9 – Nginx
http://www.rootlinks.net/2013/11/15/install-wordpress-on-freenas-9-nginx/
参考サイト
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
- make test
- make install
- make clean
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
root@vhost:/root # cd /usr/ports/lang/php5 root@vhost:/usr/ports/lang/php5 # make showconfig ===> The following configuration options are available for php5-5.4.21: CLI=on: Build CLI version CGI=on: Build CGI version FPM=off: Build FPM version APACHE=off: Build Apache module AP2FILTER=off: Use Apache 2.x filter interface (experimental) EMBED=off: Build embedded library DEBUG=off: Enable debug DTRACE=off: Enable DTrace support IPV6=on: Enable ipv6 support MAILHEAD=off: Enable mail header patch LINKTHR=on: Link thread lib (for threaded extensions) ZTS=off: Force Zend Thread Safety (ZTS) build ===> Use 'make config' to modify these settings |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
root@vhost:/usr/ports/lang/php5 # make config-recursive ===> Setting user-specified options for php5-5.4.21 and dependencies root@vhost:/usr/ports/lang/php5 # make showconfig ===> The following configuration options are available for php5-5.4.21: CLI=on: Build CLI version CGI=on: Build CGI version FPM=on: Build FPM version APACHE=off: Build Apache module AP2FILTER=off: Use Apache 2.x filter interface (experimental) EMBED=off: Build embedded library DEBUG=off: Enable debug DTRACE=off: Enable DTrace support IPV6=on: Enable ipv6 support MAILHEAD=off: Enable mail header patch LINKTHR=on: Link thread lib (for threaded extensions) ZTS=off: Force Zend Thread Safety (ZTS) build ===> Use 'make config' to modify these settings |
1 2 3 4 5 6 7 8 9 10 11 |
root@vhost:/usr/ports/lang/php5 # make ===> License PHP301 accepted by the user ===> Found saved configuration for php5-5.4.21 ===> php5-5.4.21 depends on file: /usr/local/sbin/pkg - found => php-5.4.21.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://dk1.php.net/distributions/php-5.4.21.tar.bz2 php-5.4.21.tar.bz2 41% of 11 MB 208 kBps 00m32s (snip) crypt -lcrypt -o sapi/cgi/php-cgi Build complete. Don't forget to run 'make test'. |
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 |
root@vhost:/usr/ports/lang/php5 # make test Build complete. Don't forget to run 'make test'. ===================================================================== PHP : /usr/ports/lang/php5/work/php-5.4.21/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.4.21 ZEND_VERSION: 2.4.0 PHP_OS : FreeBSD - FreeBSD vhost 9.1-STABLE FreeBSD 9.1-STABLE #0 r+16f6355: Tue Aug 27 00:38:40 PDT 2013 root@build.ixsystems.com:/tank/home/jkh/src/freenas/os-base/amd64/tank/home/jkh/src/freenas/FreeBSD/src/sys/FREENAS.amd64 amd64 INI actual : /usr/ports/lang/php5/work/php-5.4.21/tmp-php.ini More .INIs : CWD : /usr/ports/lang/php5/work/php-5.4.21 Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2013-11-15 08:22:03 ===================================================================== PASS EXPECT [tests/run-test/test001.phpt] PASS EXPECTF [tests/run-test/test002.phpt] PASS EXPECTREGEX [tests/run-test/test003.phpt] (snip) ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X) [tests/lang/bug30638.phpt] Test disk_free_space and its alias diskfreespace() functions : basic functionality [ext/standard/tests/file/disk_free_space_basic.phpt] Test lstat() and stat() functions: usage variations - effects of is_dir() [ext/standard/tests/file/lstat_stat_variation10.phpt] Test lstat() and stat() functions: usage variations - writing data into file [ext/standard/tests/file/lstat_stat_variation7.phpt] Userstream unlink, rename, mkdir, rmdir, and url_stat. [ext/standard/tests/file/userwrapper.phpt] Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt] Test strptime() function : basic functionality [ext/standard/tests/time/strptime_basic.phpt] ===================================================================== You may have found a problem in PHP. This report can be automatically sent to the PHP QA team at http://qa.php.net/reports and http://news.php.net/php.qa.reports This gives us a better understanding of PHP's behavior. If you don't want to send the report immediately you can choose option "s" to save it. You can then email it to qa-reports@lists.php.net later. Do you want to send this report now? [Yns]: n |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@vhost:/usr/ports/lang/php5 # make install ===> Staging for php5-5.4.21 ===> php5-5.4.21 depends on shared library: libpcre.so - found ===> php5-5.4.21 depends on shared library: libxml2.so - found ===> Generating temporary packing list Installing PHP CLI binary: /usr/ports/lang/php5/work/stage/usr/local/bin/ Installing PHP CLI man page: /usr/ports/lang/php5/work/stage/usr/local/man/man1/ (snip) For more information, and contact details about the security status of this software, see the following webpage: http://www.php.net/ |
1 2 3 4 |
root@vhost:/usr/ports/lang/php5 # make clean ===> Cleaning for autoconf-2.69 ===> Cleaning for autoconf-wrapper-20130530 ===> Cleaning for php5-5.4.21 |