Skip to content

Instantly share code, notes, and snippets.

@nkonev
Forked from rhamdeew/README
Created September 20, 2015 00:53
Show Gist options
  • Save nkonev/0bfbaaf0951a009cd921 to your computer and use it in GitHub Desktop.
Save nkonev/0bfbaaf0951a009cd921 to your computer and use it in GitHub Desktop.
rhamdeew/lamp description
1. sudo docker pull rhamdeew/lamp
2. sudo docker run -v /your_empty_project_path/:/var/www/srv/ -p 80:80 -t -i rhamdeew/lamp /bin/bash
3. in container: cp -R /var/www/example/* /var/www/srv
4. in container: cd /var/www/srv/
5. in container: ./start.sh
6. open http://localhost/1.php
Your project structure
projectname/
/www -> php files
/etc/php.ini -> custom php.ini
/db/db.sql ->database dump
/db/db.txt ->database settings
Example found in /var/www/example
@nkonev
Copy link
Author

nkonev commented Sep 20, 2015

chown -R nik /home/nik/phpWorkspace/lamp-hamdeew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment