initial improvements

- add nginx configurations
- add php.ini directives
- fix tty issue
- improve .gitignore
- other minor improvements