mirror of
https://github.com/php/web-php.git
synced 2026-03-29 10:42:23 +02:00
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
Here is how to mirror the PHP3 site.
|
|
|
|
First, you need to have a cvs client. See http://www.cyclic.com, or grab one from your
|
|
local GNU mirror. You will also need MySQL installed and working. See http://www.tcx.se/
|
|
|
|
Fetch the web files with the following:
|
|
|
|
cvs -d:pserver:cvsread@inet-dev.bellglobal.com:/repository login
|
|
Password: phpfi
|
|
cvs -d:pserver:cvsread@inet-dev.bellglobal.com:/repository co phpweb
|
|
|
|
Symbolic link the phpweb directory to the correct place on your server.
|
|
|
|
Now, make sure your web server is set up to serve up .php3 files as PHP3 parsed files.
|
|
If it isn't, add the mime-type to your config.
|
|
|
|
Create a mysql database with: mysqladmin create php3
|
|
|
|
Make sure your "nobody" user has access to it. Then cd into your php3 directory and type:
|
|
|
|
mysql php3 <schema.mysql
|
|
|
|
You should be all set. Point your browser at www.yoursite.com/php3
|
|
|
|
You may want to set up a cron job that periodically does a 'cvs update -d' in
|
|
your web directory. This will ensure that your web site is up to date.
|
|
Something like: 0,15,30,45 * * * * (cd <your_path>; /usr/local/bin/cvs update -kb -d)
|
|
|
|
In order to get the Search button to work, you need to have the Glimpse binaries
|
|
installed. They are available at ftp://ftp.cs.arizona.edu/pub/glimpse
|
|
I haven't had much luck compiling from their sources, but the binary distribution
|
|
of Glimpse-4.0 seems to work fine. Install these in /usr/local/bin, and run
|
|
the following command:
|
|
|
|
/usr/local/bin/glimpseindex -b -i -t -H <path> <path>; chmod a+r <path>/.gli*
|
|
|
|
Replace <path> with whatever the path is to your php3 directory. Note that
|
|
the search script assumes all files are reachable with a URL of: /php3/filename.ext
|
|
(this needs to be fixed)
|
|
|
|
In order for the patches to download when you click on them, add this line to your
|
|
srm.conf file:
|
|
|
|
AddType application/octet-stream .fix
|
|
|
|
(instructions for database synchronization will follow when we figure out how
|
|
to do it)
|