


FreeNAS 9のJail環境でWordpressを動作させるためのインストール作業です
FreeNAS Project – Open Source Storage
http://www.freenas.org/
FreeNASはNAS機能に特化したFreeBSDベースのOSですが、拡張機能としてJail環境が実装されています。そのJail環境でWordpressを動作させる実験です
今回はWebサーバにApacheではありきたりなので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/
さてここまでNginx, php5, php5 extensionsとインストールしてきましたが、今回はphp5-zlibです
- makeの実行
- make installの実行
- make cleanの実行
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 |
root@vhost:/ # cd /usr/ports/archivers/php5-zlib/ root@vhost:/usr/ports/archivers/php5-zlib # make config-recursive ===> Setting user-specified options for php5-zlib-5.4.21 and dependencies root@vhost:/usr/ports/archivers/php5-zlib # make ===> Building for php5-zlib-5.4.21 (snip) cp ./.libs/zlib.lai /usr/ports/archivers/php5-zlib/work/php-5.4.21/ext/zlib/modules/zlib.la ---------------------------------------------------------------------- Libraries have been installed in: /usr/ports/archivers/php5-zlib/work/php-5.4.21/ext/zlib/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. |
1 2 3 4 5 6 7 8 9 |
root@vhost:/usr/ports/archivers/php5-zlib # make install ===> Staging for php5-zlib-5.4.21 ===> php5-zlib-5.4.21 depends on file: /usr/local/include/php/main/php.h - found ===> Generating temporary packing list ====> Compressing man pages (compress-man) ===> Installing for php5-zlib-5.4.21 ===> Checking if archivers/php5-zlib already installed ===> Registering installation for php5-zlib-5.4.21 Installing php5-zlib-5.4.21... done |
1 2 |
root@vhost:/usr/ports/archivers/php5-zlib # make clean ===> Cleaning for php5-zlib-5.4.21 |
無事にインストールできました