Jason Fesler edited this page Apr 5, 2014 · 1 revision

Install Apache with PHP

Your web server must be configured to use PHP. For Apache, this is likely to be as simple as installing the right packages. This is a typical activity; any system administrator should be able to do this; possibly with the help of existing information on the internet (or even the PHP install documentation!).

PHP is used for these purposes:

  • survey.php is used to record test data from each visitor
  • comment.php is used when people want to leave a comment about their test results. This is used to email you, the mirror operator.

Technically, you can go without these features. Your /site/config.js can comment out those features; and they'll be skipped. However, I encourage you to have a fully functional system.

To confirm you have PHP installed, you can do something like this:

% grep php /usr/local/etc/apache22/httpd.conf
LoadModule php5_module        libexec/apache22/
AddType application/x-httpd-php .php .php5 

PHP modules

We use the following modules (at a minimum):

  • php_mbencode used by comment.php and survey.php

One person reports:

On RHEL 6.4, "php-5.3.3-22.el6.x86_64"  doesn't include MB support.

I don't know if this is fixed in some well-known repository.

I installed a matching "php-mbstring-5.3.3-22.el6.x86_64.rpm" from
and it then worked.