Install Yii of the PHP Frame Work on FreeBSD8
FreeBSD 8.0
Apache 2.2.14
MySQL 5.0.90 (mysqli)
PHP 5.2.12
PHP のフレームワークで
最近注目されているYiiをインストールしてみた。
php5.1以上が必要です。
#cd /usr/ports/www/yii
#make config-recursive
x Options for yii 1.1.1 x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x [X] MYSQL Install MySQL PDO support x x
x x [ ] PGSQL Install PostgreSQL PDO support x x
x x [ ] SQLITE Install SQLite v3 PDO support x x
x x [X] REQPHP Install PHP dependencies required by plugins x x
x x x x
x x x x
tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu
x [ OK ] Cancel x
x Options for pecl-APC 3.0.19 x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x [ ] MMAP Enable mmap memory support (default: IPC shm) x x
x x [ ] SEMAPHORES Enable sysv IPC semaphores (default: fcntl()) x x
x x [ ] SPINLOCKS Enable spinlocks (experimental) x x
x x [ ] FILEHITS Enable per request cache info x x
x x [ ] PHP4_OPT Little optimization to PHP4 x x
x x x x
x x x x
tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu
x [ OK ] Cancel x
----------------------------------------------------------------------
Libraries have been installed in:
/usr/ports/databases/php5-pdo_mysql/work/php-5.2.12/ext/pdo_mysql/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'.
===> Installing for php5-pdo_mysql-5.2.12_2
===> php5-pdo_mysql-5.2.12_2 depends on file: /usr/local/include/php/main/php.h - found
===> php5-pdo_mysql-5.2.12_2 depends on file: /usr/local/lib/php/20060613/pdo.so - found
===> Generating temporary packing list
===> Checking if databases/php5-pdo_mysql already installed
===> Registering installation for php5-pdo_mysql-5.2.12_2
****************************************************************************
The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:
extension=pdo_mysql.so
****************************************************************************
===> Returning to build of yii-1.1.1
===> Generating temporary packing list
===> Checking if www/yii already installed
***************************************************************
Now you need to adjust PHP's include_path to contain
`/usr/local/share/yii/framework'
For example, insert:
include_path = ".:/usr/local/share/yii/framework"
into `/usr/local/etc/php.ini'.
If you upgrade from previous version, please read
`/usr/local/share/doc/yii/UPGRADE' first.
For more general information about the Yii, please
visit: http://www.yiiframework.com/
***************************************************************
===> Registering installation for yii-1.1.1
PDO拡張等インストール結果をサーバーに反映させるために再起動します。
include_path = ".:/usr/local/share/yii/framework"
【重要】
#reboot
つぎにYiiの要求仕様をサーバーが満たしているか確認します。
検証用のプログラムをApachから見えるところにコピーします。
ここではApacheがデフォルトの設定のまま使われていると仮定しています。
#cd /usr/local/share/examples/yii/
#cp -r requirements /usr/local/www/apache22/data
ブラウザから今コピーしたrequirementsのページを開きます。
IE・FireFox等で
http://192.168.0.200/requirements
のようにして開きます。
PostgreSQLは今回インストールもしていないので[注意]のままでもOKと。
インストール編 おわり
で。。ここからどーすんの?(^ー^;
0 件のコメント:
コメントを投稿