Mirroring a PHP.net server requires a few specific settings and considerations, and this document provides a list of problems with possible solutions. The mirror tools check for these problems and automatically disable the problematic mirrors. The [?] link within each title may be used to test this mirror.
Because the 'Options' directive may be ignored in VirtualHost, a solution is to move the MultiViews option into a specific directory and disable it from there. For example:
<VirtualHost *:80> <Directory /path/to/phpweb> Options -Indexes -MultiViews </Directory> DocumentRoot /path/to/phpweb ServerName .... .... </VirtualHost>
Some pages are returning incorrect
Content-Type headers. For example,
xx.php.net/manual/en/faq.html.php should be returning
application/x-httpd-php. See also the Apache
Negotiation. This problem might be specific to
By default, Apache inserts an alias for
/manual/ in the configuration
and this causes problems for mirrors. So for example if you find that
the manuals are listed on the documentation page but all of the links
open up a search page, you probably suffer from this problem and must
remove that alias.
If the shortcut features [e.g. xx.php.net/echo] are not working, be sure
the manual files are really under
DOCUMENT_ROOT and that the English
manual files are present. Also make sure that you have a correct
Invalid data is being received, and this is probably caused by improper error handler settings. See the mirror guidelines for how to setup the ErrorDocument.
The mirroring guidelines mention that Apache2
enables a 'var' handler by default and this may be disabled by using
RemoveHandler var in the configuration file.
When improperly set, users are not given a "download this file" prompt
when attempting to download the PHP Installer (a .msi file). Your web
server configuration should be adjusted to force .msi files as
'application/octet-stream'. In Apache this may be done by using:
AddType application/octet-stream .msi
If you have an official mirror server but it's not listed on mirrors.php or available from my.php then your mirror most likely failed the mirror tests and suffers from one of the problems listed here. Mirrors that fail the tests are automatically removed from the listing for our user's convenience. We send out weekly notifications to all disabled mirror maintainers, and to the email@example.com mailing list.
Although this test is currently a little unfair (it's only based from the USA), the response time of the server exceeds five seconds. Please confirm the speed of these mirrors and we'll likely adjust the testing procedure. This test will be performed from multiple locations in the future.
Several searches require outbound connections to www.php.net, so this is a test for that. The www.php.net box then connects to a third-party search engine.