web:mirror
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
web:mirror [2011/06/05 00:23] – http -> https scottmac | web:mirror [2013/12/05 06:50] – add link to the README file bjori | ||
---|---|---|---|
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 ==== | ||
Line 15: | Line 22: | ||
# Checkout the english manual sources | # Checkout the english manual sources | ||
svn co https:// | svn co https:// | ||
- | # Checkout the actual website, except for the distribution/ and extra/ dirs (huge binary files, takes days to download) | + | # Checkout the actual website |
- | svn co --depth immediates https://svn.php.net/repository/web/php/ | + | git clone git://git.php.net/ |
cd phpweb | cd phpweb | ||
- | svn up --set-depth infinity ./styles ./security ./images ./reST ./manual ./backend ./stats ./bin ./releases ./ | ||
# Some files are pre-generated on master.php.net for various reasons | # Some files are pre-generated on master.php.net for various reasons | ||
Line 44: | Line 50: | ||
- | === The SVN way, but with a hack === | ||
- | |||
- | - Checkout phpweb (svn co https:// | ||
- | - Within phpweb, run this: <code php> | ||
- | <?php | ||
- | // Note: This is a complete hack | ||
- | // Mirror to steal from | ||
- | $mirror = ' | ||
- | |||
- | // Files phpweb needs (typically from rsync box) | ||
- | $files = array(' | ||
- | |||
- | foreach ($files as $file) { | ||
- | file_put_contents($file, | ||
- | } | ||
- | |||
- | // Another required file, let's create it ourselves | ||
- | file_put_contents(' | ||
- | ?> | ||
- | </ | ||
- Make a virtual host, see [[http:// | - Make a virtual host, see [[http:// | ||
- If wanting the PHP Manual too, either: | - If wanting the PHP Manual too, either: | ||
Line 69: | Line 55: | ||
* Rsync it | * Rsync it | ||
* Download it | * Download it | ||
- |
web/mirror.txt · Last modified: 2023/12/05 12:17 by derick