What language are nginx conf files?

So I’m a newbie to nginx, and had this same question. Turns out the syntax of the language as mentioned above is both custom and actually quite simple. The syntax is captured in a section in the NGINX docs, and repeated here for convenience: nginx consists of modules which are controlled by directives specified in … Read more

Gunicorn, no module named ‘myproject

Your error message is ImportError: No module named ‘myproject.wsgi’ You ran the app with gunicorn –bind 0.0.0.0:8000 myproject.wsgi:application And wsgi.py has the line os.environ.setdefault(“DJANGO_SETTINGS_MODULE”, “settings”) This is the disconnect. In order to recognize the project as myproject.wsgi the parent directory would have to be on the python path… running cd .. && gunicorn –bind 0.0.0.0:8000 … Read more

GD Library extension not available with this PHP installation Ubuntu Nginx

The GD Graphics Library is for dynamically manipulating images. For Ubuntu you should install it manually: PHP7.4: sudo apt-get install php7.4-gd PHP8.0: sudo apt-get install php8.0-gd PHP8.1: sudo apt-get install php8.1-gd That’s all, you can verify that GD support loaded: php -i | grep -i gd Output should be like this: GD Support => enabled … Read more

NGINX gzip not compressing JavaScript files

Change this line: gzip_types text/plain application/x-javascript text/xml text/css; To be this: gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css; Note the addition of application/javascript and text/javascript to your list of gzip types. There are also more details—and a more expansive list of gzip types—in the answer posted here.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)