docker-php-5.3-apache
docker-php-5.3-apache copied to clipboard
updating workdir
updating workdir to /home/site/wwwroot for the webserver to access the web app, which is generally deployed under "/home/site/wwwroot"
Hi @nithinpuch
The reason the workdir is /var/www/html
is that's where apache has it's default root: See this line: https://github.com/eugeneware/docker-php-5.3-apache/blob/master/apache2.conf#L57
Changing the workdir here only changed the default current directory, and is probably not what you want.
/var/www/html
is the default directory as used by the default https://hub.docker.com/_/php/ project, and I'm trying to maintain backwards compatibility with that.
But feel free to fork this for your own purposes, and to change the apache.conf file as part of the build.
Or, alternatively, if that's the only thing you'd like to change, then you could create your own Dockerfile that does something like:
FROM eugeneware/php-5.3
WORKDIR /home/site/wwwroot
Hope that helps.