web:mirror
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | web:mirror [2013/07/11 20:51] – removed svn way, we don't use svn anymore bjori | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== How to create a PHP.net mirror ==== | ||
+ | Setting up an official (or unofficial) mirror is described within [[http:// | ||
+ | |||
+ | === I'm lazy. Just give me something to execute == | ||
+ | Save the following shell script as IcanHazPHPWeb.sh | ||
+ | Then execute sh ./ | ||
+ | And wait for ca 10 minutes. (took 7m30.871s on my box) | ||
+ | |||
+ | <code shell> | ||
+ | #!/bin/sh | ||
+ | mkdir ~/php.net | ||
+ | cd ~/php.net | ||
+ | |||
+ | # Checkout the english manual sources | ||
+ | svn co https:// | ||
+ | # Checkout the actual website (does not include / | ||
+ | git clone git:// | ||
+ | cd phpweb | ||
+ | |||
+ | # Some files are pre-generated on master.php.net for various reasons | ||
+ | (cd include && for i in countries.inc last_updated.inc mirrors.inc pregen-confs.inc pregen-events.inc pregen-news.inc; | ||
+ | (cd backend && for i in ip-to-country.db ip-to-country.idx; | ||
+ | cd .. | ||
+ | |||
+ | |||
+ | # Install PhD and build the manual | ||
+ | cd doc-en | ||
+ | php doc-base/ | ||
+ | pear install doc.php.net/ | ||
+ | phd -d doc-base/ | ||
+ | cd .. | ||
+ | |||
+ | cd phpweb | ||
+ | # Symlink the generated english documentations from our PhD build dir | ||
+ | (cd manual && ln -s ~/ | ||
+ | |||
+ | echo "Now copy& | ||
+ | echo "Fill out the ' | ||
+ | </ | ||
+ | |||
+ | Note: To see the "new look", add ?beta=1 after the url, or enable the cookie from /my.php | ||
+ | |||
+ | |||
+ | - Make a virtual host, see [[http:// | ||
+ | - If wanting the PHP Manual too, either: | ||
+ | * [[doc: | ||
+ | * Rsync it | ||
+ | * Download it |
web/mirror.txt · Last modified: 2023/12/05 12:17 by derick