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/04/06 10:59] – external edit 127.0.0.1 | web:mirror [2021/03/29 11:13] – Changed git.php.net to GitHub sergey | ||
---|---|---|---|
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 14: | Line 21: | ||
# Checkout the english manual sources | # Checkout the english manual sources | ||
- | svn co https://svn.php.net/ | + | git clone https://github.com/php/doc-en.git |
- | # 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 | + | git clone https://github.com/php/web-php.git phpweb |
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 http:// | ||
- | - 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