Last active
May 3, 2016 17:01
-
-
Save rhamdeew/f414d908b37a945affff to your computer and use it in GitHub Desktop.
rhamdeew/lamp description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment