Skip to content

Tag: nginx

Is it possible to have web index outside public html?

Say a website has this folder structure And when someone visits the website I want the physical web root to point to /public, like mywebsite.com/dikpic.jpeg (without url rewrites). This can be achieved with the root /myuser/public; command. But I also want to load the index.php file from outside this director…

Why nginx ignores root and location directives?

I’m running Nginx as a service in docker-compose, with a volume mounted at /app inside the container. I just copied the whole project structure from Linux to MacOS where it worked fine. Here is my docker-compose.yml: I have a simple configuration for a PHP app, but the root directive inside location see…

Session Problem on Redis with Docker + Nginx + Yii2

The question is, i am having a problem with session using Docker with Nginx + Yii2 + Redis. I want use same login on banckend and frontend in Yii2 advanced template. I just configured all its ok, its work when i do not use Redis, but when i use Redis, dont work. My configuration is: Yii2 advanced 2.0.43 Nginx…

I can’t upgrade nginx PHP version to latest on ubuntu 16

I have tried to upgrade the PHP version. but I just get errors. I tried this tutorial. but I get this error. How can I solve this problem? I have tried my tutorial. but just get same error like this. Answer As stated in the ppa description: Only Supported Versions of PHP (http://php.net/supported-versions.php…

PHP fpm – value is NULL for a ZEND_INI_PARSER_ENTRY

I have a server running LEMP stack that hosts a wide range websites. During the night, all the sites got shutdown and the message “502 bad gateway” Is displayed. I followed the stream of errors and concluded that php7.4-fpm was the issue. I need help to figure out how to solve the error below. NOT…