Skip to content
Advertisement

Tag: nginx

Nginx Php-fpm 7.3 Can’t read PHP files from a particular folder

We have a Magento 2 website. For some reason our Nginx/PHP-FPM is unable to read files from MAGEROOT/pub/ folder other than index.php. We are getting the following error in Nginx Log “Unable to open primary script: /home/goodprice/public_html/releases/current/pub/get.php (No such file or directory)” and the browser shows No input file specified. Here is the partial Nginx config file. This causes a

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 directory: The problem is with the location try files block that

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 seems to be ignored. I can’t understand why. This

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 1.17.8

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) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.

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. NOTE: During the night, no updates

str_replace() is not working in aws server returning empty string but working on cpanel and locally

I am developing a laravel ride sharing applicaiton and for the settings data I used a config files. To change any value usign file file_get_contents after that with str_replace and file_put_contents for updating the value. here is some code example: But the $change_content doesn’t return any value in the AWS server NOTE: This is working in my local machine also

nginx return file not found with nginx-proxy and doesn’t load static files

I’m using nginx-proxy-automation to run my php application which is written using CodeIgniter 4 and the app structure is the following: the index.php file is available inside the public folder. The docker-compose.yml of php-application contains the following stuff: Inside the php-application/docker-compose.yml I have this: essentially I have three services: php-fpm: which mount the application files in the /var/www/html folder, and

Advertisement