Sign inSign up

inmean/webserver

By inmean

•Updated over 6 years ago

Ubuntu 20.10 Latest Nginx + PHP7.4 FCGI

Image
1

356

inmean/webserver repository overview

⁠Nginx + PHP 7.4 FCGI Web Server

⁠Usage
sudo docker run -d --name=nginx -p 80 -v $PWD/html:/var/www/html -e db_name=database -e db_user=username -e db_pass=password inmean/webserver
⁠Environment Variable

The environment variable will generate into env.php file and copy into /var/www/html each time container restart

  • db_host
  • db_name
  • db_user
  • db_pass
  • memcache_host
  • memcache_user

Extend use to create your own docker use following Dockerfile script to start services automatically

EXPOSE 80
CMD ["sh", "/var/www/start.sh"]
⁠How to display PHP Error?

Just include following PHP code

error_reporting(-1);
ini_set('display_errors', 'On');

Tag summary

Content type

Image

Digest

Size

147 MB

Last updated

over 6 years ago

docker pull inmean/webserver