web:mirror
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
web:mirror [2010/06/07 01:14] – created philip | web:mirror [2024/07/21 00:07] (current) – jimw | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Setting up phpweb for local development ==== | ||
+ | |||
+ | See [[https:// | ||
+ | |||
+ | Alternatively, | ||
+ | |||
==== How to create a PHP.net mirror ==== | ==== How to create a PHP.net mirror ==== | ||
- | === The SVN way, but with a hack === | + | Setting up an unofficial mirror is described within [[http:// |
- | - Checkout phpweb (svn co http:// | + | === Quick Script |
- | - Within phpweb, run this: <code php> | + | |
- | <?php | + | |
- | // Note: This is a complete hack | + | |
- | // Mirror | + | |
- | $mirror | + | |
- | // Files phpweb | + | Save the following shell script as '' |
- | $files = array(' | + | Then execute |
- | foreach ($files as $file) { | + | And wait for ca 10 minutes. |
- | file_put_contents($file, | + | |
- | } | + | |
- | // Another required file, let's create it ourselves | + | <code shell> |
- | file_put_contents(' | + | #!/bin/sh |
- | ?> | + | mkdir ~/php.net |
- | </ | + | cd ~/php.net |
- | - Make a virtual host, see [[http://php.net/ | + | |
- | - If wanting the PHP Manual too, either: | + | |
- | * [[doc: | + | |
- | * Rsync it | + | |
- | * Download it | + | |
- | === Or, simply rsync it === | + | # Checkout the manual base sources |
- | * As per [[http:// | + | git clone https:// |
+ | # Checkout the english manual sources | ||
+ | git clone https:// | ||
+ | # Checkout PHD to build documentation | ||
+ | git clone https:// | ||
+ | # Checkout the actual website (does not include / | ||
+ | git clone https:// | ||
+ | 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 | ||
+ | php doc-base/ | ||
+ | php -dmemory_limit=2G phd/ | ||
+ | |||
+ | cd phpweb | ||
+ | # Symlink the generated english documentations from our PhD build dir | ||
+ | rm -rf manual/en | ||
+ | (cd manual && ln -s `pwd`/ | ||
+ | |||
+ | php -S localhost: | ||
+ | </ | ||
web/mirror.1275873247.txt.gz · Last modified: 2017/09/22 13:28 (external edit)