I18n checker

Vivien Lacourba edited this page Jul 20, 2016 · 24 revisions

Nginx + FastCGI

How to install the W3C Internationalization Checker locally to be used as a Validator Suite assertor (see the application.assertor.i18n-checker.url Validator Suite configuration parameter).


On Debian/Ubuntu based systems.

Commands to run as root user (or using sudo)

apt-get install git nginx nginx-light php5-fpm php5-intl php5-curl php5-tidy
cd ~validator
git clone https://github.com/w3c/i18n-checker
chown www-data:validator i18n-checker/logs

cp PATH_TO_VALIDATOR_SUITE/conf/i18n-checker/etc/php5/fpm/pool.d/www.conf /etc/php5/fpm/pool.d/
vi /etc/nginx/fastcgi_params
# Add the following line to that file:
#  fastcgi_param  SCRIPT_FILENAME    $request_filename;
service php5-fpm restart

# Nginx
cp PATH_TO_VALIDATOR_SUITE/conf/i18n-checker/etc/nginx/sites-available/i18n-checker /etc/nginx/sites-available/
cd /etc/nginx/sites-enabled/
rm default
ln -s /etc/nginx/sites-available/i18n-checker .
service nginx restart


PHP-FPM Status page

GET 'http://localhost:11010/fpm/status'

I18n Checker

GET 'http://localhost:11010/check.php?uri=http://www.w3.org&format=xml'