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 [2012/06/05 11:03] – use git bjori | 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 (does not include / | # Checkout the actual website (does not include / | ||
- | git clone git://git.php.net/web/php.git phpweb | + | git clone https://github.com/php/web-php.git phpweb |
cd phpweb | cd phpweb | ||
Line 43: | 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: |
web/mirror.txt · Last modified: 2023/12/05 12:17 by derick