![]() ![]() | ![]() |
File: [cvs.NetBSD.org] / pkgsrc / www / php-tiki6 / MESSAGE (download)
Revision 1.4, Mon Jan 1 10:23:09 2018 UTC (5 years, 8 months ago) by wiz
apache22: remove, it was eol'd in June 2017 Remove packages that only work with apache22. Remove apache22 references. |
=========================================================================== $NetBSD: MESSAGE,v 1.4 2018/01/01 10:23:09 wiz Exp $ To use tiki with Apache, you will need to perform the following steps. 1. Install www/apache24 and www/ap-php 2. Setup PHP. At least, ${PREFIX}/etc/php.ini should have date.timezone line. If your machine are located in Tokyo, Japan, you should get the following. # cat ${PREFIX}/etc/php.ini | grep date.timezone date.timezone ="Asia/Tokyo" 3. Install MySQL database server. # cd databases/mysql51-server # make install 4. Start MySQL server, and setup MySQL server # ${RCD_SCRIPTS_DIR}/mysqld start And see messages. 5. Add MySQL user, tiki $ mysql -u root -p Enter password: YOUR_MYSQL_ROOT_PASSWORD > create user tiki identified by 'tiki_user_password'; > quit 6. Create database for tiki $ mysql -u root -p Enter password: YOUR_MYSQL_ROOT_PASSWORD > create database tiki; > grant SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER on tiki.* to tiki@localhost identified by 'tiki_password'; > quit 7. Be sure to have the following lines in ${PREFIX}/etc/php.ini. extension=gd.so extension=xmlrpc.so extension=mysqli.so extension=iconv.so 8. Be sure to have the following lines in ${PREFIX}/etc/httpd/httpd.conf DocumentRoot "${PREFIX}/share/tiki6" LoadModule php5_module lib/httpd/mod_php5.so AddType application/x-httpd-php .php <Directory ${PREFIX}/share/tiki6 > Options All Allow from All </Directory> 9. Access http://localhost/tiki-install.php And setup with the following information. database name: tiki user name: tiki password: tiki_password ===========================================================================