Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install Bazaar:
    No Format
    sudo apt-get install bzr
    
  2. Go into the HipHop directory:
    No Format
    cd $HIPHOP
    mkdir pressflow-build
    
  3. Check out Pressflow from the Hip Hop compatibility branch and make it the working link building directory:
    No Format
    bzr checkout lp:pressflow/6.x-hiphop
    cd 6.x-hiphop
    
  4. Generate includes:
    No Format
    find . -name "*.php" > ../pressflow-build/files.list
    find . -name "*.inc" | grep -v "\.pgsql\.inc" | grep -v "\.mysql\.inc" >> ../pressflow-build/files.list
    find . -name "*.module" >> ../pressflow-build/files.list
    find . -name "*.install" >> ../pressflow-build/files.list
    find . -name "*.profile" >> ../pressflow-build/files.list
    
  5. Build the system:
    No Format
    $HIPHOP/hiphop-php/src/hphp/hphp --input-list=$HIPHOP/pressflow-build/files.list --keep-tempdir=1 \
    --log=3 --include-path="." --force=1 -v "AllDynamic=true" --output-dir=$HIPHOP/pressflow-build
    
  6. Fix everything, rebuild.
  7. Launch the server:
    No Format
    ../pressflow-build/program -m server -p 8080 -v "Server.SourceRoot=`pwd`" -v "Server.DefaultDocument=index.php" -c $HIPHOP/hiphop-php/bin/mime.hdf
    

...