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/12/26 23:43] – Add a script to initialize a fully functional phpweb environment bjori | web:mirror [2024/07/21 00:07] (current) – jimw | ||
---|---|---|---|
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 unofficial mirror is described within [[http:// |
+ | |||
+ | === Quick Script to Set Up PHPWeb == | ||
+ | |||
+ | Save the following shell script as '' | ||
+ | Then execute '' | ||
- | === 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. | And wait for ca 10 minutes. | ||
Line 13: | Line 21: | ||
cd ~/php.net | cd ~/php.net | ||
+ | # Checkout the manual base sources | ||
+ | git clone https:// | ||
# Checkout the english manual sources | # Checkout the english manual sources | ||
- | svn co https://svn.php.net/repository/phpdoc/modules/doc-en | + | git clone https://github.com/php/doc-en.git en |
- | # Checkout the actual website, except for the distribution/ | + | # Checkout PHD to build documentation |
- | svn co --depth immediates | + | git clone https://github.com/php/phd.git phd |
+ | # Checkout the actual website (does not include / | ||
+ | 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 | ||
- | (cd include && for i in countries.inc last_updated.inc mirrors.inc pregen-confs.inc pregen-events.inc pregen-news.inc; | + | (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 backend && for i in ip-to-country.db ip-to-country.idx; |
cd .. | cd .. | ||
# Install PhD and build the manual | # Install PhD and build the manual | ||
- | cd doc-en | ||
php doc-base/ | php doc-base/ | ||
- | pear install doc.php.net/ | + | php -dmemory_limit=2G phd/render.php --docbook |
- | phd -d doc-base/ | + | |
- | cd .. | + | |
+ | cd phpweb | ||
# Symlink the generated english documentations from our PhD build dir | # Symlink the generated english documentations from our PhD build dir | ||
- | (cd manual && ln -s ~/doc-en/ | + | rm -rf manual/en |
- | + | (cd manual && ln -s `pwd`/../../output/php-web en) | |
- | echo "Now copy& | + | |
- | echo "Fill out the ' | + | |
- | + | ||
- | </code> | + | |
- | + | ||
- | + | ||
- | === The SVN way, but with a hack === | + | |
- | + | ||
- | - Checkout phpweb (svn co http://svn.php.net/repository/ | + | |
- | | + | |
- | <?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 | + | 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.1293407028.txt.gz · Last modified: 2017/09/22 13:28 (external edit)