I am Ahmed Khan, PHP Community Manager at Cloudways (http://www.cloudways.com/blog/author/ahmed-khan/ ). I blog about everything related to PHP, MYSQL and have also taken interviews of different people belonging to the field of PHP.
I came across your website and found it to be a good resource. I am, therefore, writing this mail to ask you to allow me to post an article on your site as a guest author.
Please let me know if you are interested. I will send you some topics for selection.
Thanks
Ahmed Khan
PHP Community Manager at Cloudways
“If you don’t have a lot of experience with Nginx, this is what we define here – index.html will be our default index, the server name is php-docker.local and it should be pointing (update your hosts file) to your Docker environment (localhost if you are on Linux or the docker machine if you are on Mac or Windows), we point the error logs to be the ones exposed by the default container, so that we will see the errors in our docker compose log, and finally we specify the root folder to be the one that we mounted in the container.”
I’m running a debian machin on linode and I try to set /etc/hosts to with new line
“php-docker.local localhost” with no sucess.
If you are trying to run this on a VPS, you need to update your local hosts file and point the domain to the ip of the VPS.
However, this could be too much of a hassle :) Instead, I would suggest to read the follow up article http://geekyplatypus.com/making-your-dockerised-php-application-even-better/ and checkout the code from https://github.com/mikechernev/dockerised-php. In there you can see how to make the setup in a way which requires no changes to the hosts file :)
Let me know if this helped.
Hi
I am Ahmed Khan, PHP Community Manager at Cloudways (http://www.cloudways.com/blog/author/ahmed-khan/ ). I blog about everything related to PHP, MYSQL and have also taken interviews of different people belonging to the field of PHP.
I came across your website and found it to be a good resource. I am, therefore, writing this mail to ask you to allow me to post an article on your site as a guest author.
Please let me know if you are interested. I will send you some topics for selection.
Thanks
Ahmed Khan
PHP Community Manager at Cloudways
Please mention…..
site.conf entire path to edit using vi
thats all :)
Hello,
First of all thanks for your blog.
I am starting with docker and i was following your tutorial but lost you at this point:
http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/
“If you don’t have a lot of experience with Nginx, this is what we define here – index.html will be our default index, the server name is php-docker.local and it should be pointing (update your hosts file) to your Docker environment (localhost if you are on Linux or the docker machine if you are on Mac or Windows), we point the error logs to be the ones exposed by the default container, so that we will see the errors in our docker compose log, and finally we specify the root folder to be the one that we mounted in the container.”
I’m running a debian machin on linode and I try to set /etc/hosts to with new line
“php-docker.local localhost” with no sucess.
Can you please explain this to me? Thanks a lot.
Hey Tiago,
If you are trying to run this on a VPS, you need to update your local hosts file and point the domain to the ip of the VPS.
However, this could be too much of a hassle :) Instead, I would suggest to read the follow up article http://geekyplatypus.com/making-your-dockerised-php-application-even-better/ and checkout the code from https://github.com/mikechernev/dockerised-php. In there you can see how to make the setup in a way which requires no changes to the hosts file :)
Let me know if this helped.
Cheers,
Mike