-
Check out the source code.
git clone https://github.com/ryanc/pastebin.git cd pastebin
-
Install Composer
curl -s http://getcomposer.org/installer | php
-
Install the project dependencies.
php composer.phar install
-
Bootstrap the database schema.
sqlite3 db/pastebin.db < sql/schema.sql
-
Assign permissions to folders that need to be writable to the web server.
# For Debian/Ubuntu chown -R www-data cache logs db # For Redhat/CentOS/Fedora chown -R apache cache logs db
-
Configure your web server. Sample configuration files are available for both Apache and Nginx.
This setup is ideal for development since it uses the vagrant configuration that has been committed to this Git repository. This requires that you have VirtualBox and Vagrant installed.
-
Check out the source code.
git clone https://github.com/ryanc/pastebin.git cd pastebin
-
Start Vagrant VM.
vagrant up
-
Bootstrap the database schema.
sqlite3 db/pastebin.db < sql/schema.sql
-
SSH into VM.
vagrant ssh cd /vagrant
-
Install Composer
curl -s http://getcomposer.org/installer | php
-
Install the project dependencies.
php composer.phar install
-
Visit http://localhost:8080 in your web browser.