InstallApachePHP
Jason Fesler edited this page Apr 5, 2014
·
1 revision
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/libphp5.so
AddType application/x-httpd-php .php .php5
We use the following modules (at a minimum):
-
php_mbencode
used bycomment.php
andsurvey.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
http://rpmfind.net//linux/RPM/centos/6.4/x86_64/Packages/php-mbstring-5.3.3-22.el6.x86_64.html
and it then worked.
-
Install - Installation Outline
- DownloadOptions
- InstallDNS
- InstallApachePHP
- InstallModIP
- InstallContent
- InstallApacheVirtualHost
- InstallProjectConfigFile
- InstallCharts (Optional)
- InstallPMTUD
- Validation
- BecomeAnOfficialMirror (Recommended)
- TransparentMirror (Appreciated!)
- SSL-and-HTTP-2-plans
- Developers
- Community
- New Mirrors
- Working notes