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 [2010/06/07 01:15] – move official mirror section to intro philip | 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 ==== | ||
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 === | + | === I'm lazy. Just give me something to execute |
+ | Save the following shell script as IcanHazPHPWeb.sh | ||
+ | Then execute sh ./ | ||
+ | And wait for ca 10 minutes. (took 7m30.871s on my box) | ||
- | - Checkout phpweb (svn co http:// | + | < |
- | - Within phpweb, run this: < | + | #!/bin/sh |
- | <?php | + | mkdir ~/php.net |
- | // Note: This is a complete hack | + | cd ~/php.net |
- | // Mirror to steal from | + | |
- | $mirror = 'http://www.php.net/'; | + | |
- | // Files phpweb needs (typically from rsync box) | + | # Checkout the english manual sources |
- | $files = array('include/mirrors.inc' | + | git clone https://github.com/ |
+ | # Checkout the actual website | ||
+ | git clone https://github.com/php/web-php.git phpweb | ||
+ | cd phpweb | ||
- | foreach | + | # Some files are pre-generated on master.php.net for various reasons |
- | file_put_contents($file, file_get_contents($mirror | + | (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 .. | ||
- | // Another required file, let's create it ourselves | + | |
- | file_put_contents(' | + | # Install PhD and build the manual |
- | ?> | + | cd doc-en |
+ | php doc-base/configure.php | ||
+ | pear install doc.php.net/phd_php | ||
+ | phd -d doc-base/.manual.xml -P PHP -f php | ||
+ | cd .. | ||
+ | |||
+ | cd phpweb | ||
+ | # Symlink the generated english documentations from our PhD build dir | ||
+ | (cd manual && ln -s ~/ | ||
+ | |||
+ | echo "Now copy& | ||
+ | echo "Fill out the 'template' | ||
</ | </ | ||
+ | |||
+ | Note: To see the "new look", add ?beta=1 after the url, or enable the cookie from /my.php | ||
+ | |||
+ | |||
- 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 28: | Line 55: | ||
* Rsync it | * Rsync it | ||
* Download it | * Download it | ||
- |
web/mirror.txt · Last modified: 2023/12/05 12:17 by derick