[BACK]Return to MESSAGE CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / php-ja-wordpress

File: [cvs.NetBSD.org] / pkgsrc / www / php-ja-wordpress / MESSAGE (download)

Revision 1.4, Sun Oct 26 07:11:51 2014 UTC (4 years ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-, HEAD
Changes since 1.3: +3 -3 lines

Improve description.

$NetBSD: MESSAGE,v 1.4 2014/10/26 07:11:51 ryoon Exp $

To use Japanese localized WordPress with Apache httpd 2.4 and php-fpm,
you will need to perform the following steps.

1. Install databases/mysql55-server, and enable it, and set root password.

2. Create the database for WordPress.

	$ mysql -u root -p
	Enter password:
	mysql> create database wordpressdb;

3. Create MySQL user account for WordPress, and grant permission for them.

	$ mysql -u root -p
	Enter password:
	mysql> grant all on wordpressdb.* to 'wpadmin'@'localhost' \
	identified by 'wppassword';

4. Edit ${PREFIX}/share/ja-wordpress/wp-config.php, and it should have
   the following lines.

	define('DB_NAME', 'wordpressdb');
	define('DB_USER', 'wpadmin');
	define('DB_PASSWORD', 'wppassword');
	define('DB_HOST', 'localhost');

5. Edit ${PREFIX}/etc/httpd/httpd.conf, and add the following line at
   the its bottom.

	LoadModule proxy_module lib/httpd/mod_proxy.so
	LoadModule proxy_fcgi_module lib/httpd/mod_proxy_fcgi.so
	ProxyPassMatch ^/wordpress/(.*\.php(/.*)?)$ fcgi://${PREFIX}/share/ja-wordpress/$1
	Alias /wordpress ${PREFIX}/share/ja-wordpress
	<Directory "${PREFIX}/share/ja-wordpress">
		Order allow,deny
		Allow from all
		AllowOverride FileInfo All
		Require all granted
		DirectoryIndex index.php

6. Add the following line to ${PREFIX}/etc/php.ini.


7. Adjust ${PREFIX}/etc/ja-wordpress.conf for your environment.

8. Start Apache httpd 2.4 and php-fpm, and access
   http://localhost/wordpress/ , and enter website name etc.

For further post-installation customisation you may need to make
changes to file permissions etc. based on the functionality that
you require.  A good starting place for these issues can be found
in this article: