Skip to content

A VirtualBox provisioned Vagrant setup with puppet, thanks to puphpet. Sets up PHP 5.2, mysql, symfony 1.1.6, and other necessary packages for this setup.

Notifications You must be signed in to change notification settings

SgtPooki/Debian-Squeeze-PHP-5.2-Symfony-1.1.6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Overview The VM setup by this vagrantfile and puppet provisioning config was created for a project that required PHP 5.2 and Symfony 1.1.6. I started with a Debian squeeze box provided by puphpet (Thanks puphpet!), then added an install.sh script inside the /puphpet/files/exec-once folder that handles downgrading PHP, installing symfony, and running project specific files.

##Installation

  1. Clone this repo
  2. Edit puphpet/files/exec-once/install.sh to install symfony or not.
  • If you only need PHP 5.2, you may want to comment out everything after sudo bash installphp52.sh
  1. Type vagrant up in the directory you installed this repo into.

##Tips?

###Git Submodule If you want to add this vagrant setup to an existing project, I would recommend setting it up as a submodule. However, in order to do so you will need to edit puphpet's config.yaml (/puphpet/config.yaml) from

synced_folder:
  4I266QFkRLKU:
    source: ./
    target: /var/www

to

synced_folder:
  4I266QFkRLKU:
    source: ../
    target: /var/www

After changing the source of the synced folder (your project files) to look at the parent directory, try the below commands:

git submodule add [email protected]:SgtPooki/Debian-Squeeze-PHP5.2.git vagrant
cd vagrant
vagrant up

You will probably also need to edit the aliases and apache settings in the puphpet/config.yaml file.

###Database import

You can edit the puphpet/config.yaml file to automatically import an sql file into your databases as well. Edit the sql_file option to point to the .sql file to import.

mysql:
    databases:
        dbIdentifier1:
            sql_file:

About

A VirtualBox provisioned Vagrant setup with puppet, thanks to puphpet. Sets up PHP 5.2, mysql, symfony 1.1.6, and other necessary packages for this setup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published