This is...

/ home/ bcra/ public_html/ installation/ check_installation.php

Notes by David Gibson (mostly for myself). See page footer for date

Apache Info Server built: Apr 10 2025 15:26:09 Sometimes this gives an Apache version number, but it might just give the server build date. from: echo exec('httpd -v');
Software Apache from: echo $_SERVER['SERVER_SOFTWARE'];
Server Name bcra.org.uk from: echo $_SERVER['SERVER_NAME'];
Located at britiac4.british-caving.org.uk from: echo gethostbyaddr($_SERVER['SERVER_ADDR']);
Server Addr. 31.25.186.126 from: echo $_SERVER['SERVER_ADDR'];
PHP Version 5.6.40 from: echo phpversion();
Remote Addr. 3.139.240.192 from: echo $_SERVER['REMOTE_ADDR'];

This is BCRA's new site at britiac3.miniserver.com, also known as britiac4.british-caving.org.uk. This test page might be reachable in several different ways (e.g. via an add-on domain or a sub-domain, which maps to a sub-directory).

Changes from britiac2 operations

Operating with a sub-domain

The use of a sub-domain or add-on domain can make things complicated because the hierarchy for parsing .htaccess files (for server directives) is not necessarily the same as the hierarchy for parsing .user.ini files (for PHP directives). The salient point is that, on britiac3, PHP directives cannot appear in .htaccess, but must be placed in .user.ini instead. Note to self: watch out for this where a sub-domain maps to a sub-directory of public_html.

Location of PHP error log

The .user.ini file that I have provided for this test sets a PHP error log that is within the http document root (See force a run-time PHP error , below). If error_log is not specified then britiac3 defaults to error_log="error_log", which is a file in the current directory.

PHP: differences from britiac2

Britiac3 runs PHP in CGI mode (i.e. not as an Apache module), so you cannot use php_value or php_flag commands in a .htaccess file, else an 'internal server error' message will be generated. A per-directory .user.ini file can be used for PHP directives, or they can be run from PHP using the ini_set() function. See my demonstration files.

Some tests

PHP status: .    ...and is PHP short tag working? "Yes"
If .html files are not parsing for PHP, try check_installation.php , which then loads check_installation.html . This test is controlled by JS embedded on this page.

PHP initialisation: Has .user.ini been parsed? "89"
(Why?: This is a check whether .user.ini has set max_execution_time = 89. This might not be the case if you have arrived via a sub-domain that lands in a sub-directory of /home/public_html/ or if you are running this at localhost.