web:mirror
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
web:mirror [2010/06/07 01:15] – move official mirror section to intro philip | web:mirror [2023/12/05 12:17] (current) – derick | ||
---|---|---|---|
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 ==== | ||
Setting up an official (or unofficial) mirror is described within [[http:// | Setting up an official (or unofficial) mirror is described within [[http:// | ||
- | === The SVN way, but with a hack === | + | === Quick Script to Set Up PHPWeb == |
+ | |||
+ | Save the following shell script as '' | ||
+ | Then execute '' | ||
+ | |||
+ | And wait for ca 10 minutes. | ||
+ | |||
+ | <code shell> | ||
+ | #!/bin/sh | ||
+ | mkdir ~/php.net | ||
+ | cd ~/php.net | ||
+ | |||
+ | # Checkout the manual base sources | ||
+ | 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 .. | ||
- | - 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) | + | # Install PhD and build the manual |
- | $files | + | php doc-base/configure.php |
+ | php -dmemory_limit=2G phd/render.php --docbook doc-base/.manual.xml -P PHP -f php | ||
- | foreach ($files as $file) { | + | cd phpweb |
- | file_put_contents($file, file_get_contents($mirror | + | # Symlink the generated english documentations from our PhD build dir |
- | } | + | rm -rf manual/en |
+ | (cd manual && ln -s `pwd`/../ | ||
- | // Another required file, let's create it ourselves | + | php -S localhost: |
- | file_put_contents(' | + | |
- | ?> | + | |
</ | </ | ||
- | - Make a virtual host, see [[http:// | ||
- | - If wanting the PHP Manual too, either: | ||
- | * [[doc: | ||
- | * Rsync it | ||
- | * Download it | ||
web/mirror.1275873353.txt.gz · Last modified: 2017/09/22 13:28 (external edit)