Skip to content
Advertisement

Tag: nginx

Nginx not finding PHP files

I’ve been searching through all the questions asked and all answers haven’t worked. I’m trying to install Damn Vulnerable Web App to my Centos 6.9 server, but when I try to access the page, I’m greeted with a 404 File Not Found error. I can access html files perfectly, just not PHP. /etc/nginx/conf.d/default.conf: Can anyone help at all please? UPDATE:

How to stop nginx from using port 80

I’m trying to update nginx using sudo apt-get install nginx, but it is giving me an error message related to port 80 being occupied. When I run I get Although I wasn’t able to easily understand what each column means from the –help function, I suppose that in this example 6845 is the process ID of nginx. If I try

Need help on Nginx CGI Configuration

I need to set the nginx configurations such that the URL “http://host/cgi-bin/hw.sh/some/path/to/data/” should trigger the shell script “hw.sh” present under path “/usr/lib/cgi-bin/”. Now, according to the instructions mentioned in page https://www.howtoforge.com/serving-cgi-scripts-with-nginx-on-debian-squeeze-ubuntu-11.04-p3, we need to set the configurations under a “.vhost” file. But I have a default file already present under path “/etc/nginx/sites-available/default” instead of a .vhost file. And when I

PHP Fpm process is killing my website: process is blocked with status D

After days of searching in the web, Stack Overflow, Google,. Everywhere, I can not understand what happens to PHP-fpm after hours of working normally. Description of the problem: I have an Ubuntu 16.04 VPS where I have installed PHP-FPM and Nginx and a small redis-server to store sessions. I have 4 websites running under PHP-fpm. All websites are good, just

Magento 2 Installation – Key must not exceed 56 bytes

I’m having issues installing Magento 2 via command line. When setup is running it gets to: Module ‘Magento_Indexer’: Running recurring.. And it throws an error: [MagentoFrameworkExceptionLocalizedException] Key must not exceed 56 bytes. I have searched around and couldn’t find any clues as to what it can be. I thought the –key might be too long for Magento setup but I

Howto debug when nginx gives 502 bad gateway?

On landing.example.com:10000 have I a webserver that works fine, which is a Docker container that exposes port 10000. Its IP is 172.17.0.2. What I would like is having a nginx reverse proxy on port 80, and send the visitor to different Docker containers depending on the URL they visit. When I do this, I get 502 Bad Gateway and the

Advertisement