A hello world PHP script
FROM codenvy/php
# | Description | Command |
---|---|---|
1 | Start Apache, tail logs | sudo service apache2 start && sudo tail -f /var/log/apache2/access.log -f /var/log/apache2/error.log |
2 | Stop Apache | sudo service apache2 stop |
3 | Restart Apache | sudo service apache2 restart |
localhost:$mappedPort/$projectName
To access database, run env | grep MYSQL
in the terminal. You will get MySQL user, password and database. root
user is passwordless.