-5
votes
0answers
20 views

bug php files , Adhesion connections in the server? [on hold]

Please, This file is responsible for downloading files from sub-servers The problem, the connections to the subserver, remain in the server does not end or close, This causes very high load We ...
0
votes
0answers
5 views

nginx chunked_transfer_encoding enable/disable inside script

It is possible to control the value of chunked_transfer_encoding on/off sending a header or something from a PHP script? Thank you
-2
votes
0answers
15 views

Change nginx root on different requests

I am trying to configure nginx. If I enter http://localhost/dav it should use index.php script from configured root (c:/wt-nmp/www/app-dav/frontend/web) in location /dav directive. But when I debug ...
0
votes
1answer
23 views

Multiple server blocks in nginx: Php not working on server 2

I have a nginx server running on my webserver. I would like to achieve the following: example.com + www.example.com -> /my/web/dir/www pma.example.com -> /my/web/dir/pma The first point is not ...
2
votes
2answers
321 views

The Content-Length header does not exist

I have nginx server installed on Linux. When I send a request with curl, the Content-Length header is missing from the response. The 1.php file is: <?php echo "hello"; ?> The example ...
0
votes
0answers
33 views

NGINX redirect attempts download instead of rendering image

I've got a PHP page that renders a dynamic image /scripts/oem-image.php?brand=$1&sku=$2 break; I'm trying to do a background redirect (keep the original url) from a .jpg link. For instance, if ...
0
votes
0answers
47 views

how to fix upstream sent too big header while reading response header from upstream?

I have this error in my log : upstream sent too big header while reading response header from upstream And I tried to add proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size ...
0
votes
1answer
35 views

Production server (cluster) configuration

I have a problem, that i'd like to address to you. We are creating an webapp that shows infos and statistics. And we have a problem about how to 'do right' our server configuration The thing is that ...
0
votes
1answer
83 views

PHP5-FPM Slow Execution on Ubuntu 14.04 (EC2 micro server)

I have a cluster of EC2 servers set up and just one is behaving very strangely. It's a t1.micro server running Ubuntu 14.04. Nginx, MySQL, and php5-fpm are installed. I've concluded that nginx and ...
0
votes
1answer
32 views

nginx Subdirectory Rewrites for MVC

I am tasked with administering a web application that has a base directory with a bunch of legacy code in it, and a subdirectory of my own making with an MVC based API which we are using to slowly ...
-1
votes
1answer
38 views

Strange php redirections with nginx (Works fine in apache)

Finally I decide to ask here after hours trying, searching and researching. Months ago I migrated my site to a newer version and everything works fine with my old hosting in apache. Recently I ...
0
votes
2answers
57 views

Php runs on server, but not command line: “libssl.so.10: no version information available”

php is running on my server, though I'm unable to get it to run command line. I'm running this file: <?php echo "done"; ?> using this command: php test.php When I do, I get this error: ...
2
votes
1answer
40 views

NginX/Varnish and Auto Caching

Let's say we have a wordpress site example.com On our site, there are multiple products. Urls look like this: example.com/products/product-1/ example.com/products/product-2/ ...
-4
votes
3answers
55 views

cronjob or similar to open a local php file including query [closed]

How do I open the following file with cronjob correctly every 5 minutes: /var/www/mysite/folder/foo.php?query=1 I tried myself but i just did not get it working... i tried with /usr/share/php5 , ...
0
votes
0answers
41 views

LIVE Video Streaming with Nginx + PHP-FPM / Process Timeout

I have a live video streaming in my server using nginx + php. the php file reas a live streaming and it directly sends it to the client. I have only one problem. The problem is that i want each ...
1
vote
0answers
56 views

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 ...
0
votes
0answers
103 views

Enable Soap for PHP 5.5.x on CentOS 6.5

Unfortunately I have to support soap on my server for the Fedex webservice. I recompiled PHP enabling support and it works via CLI but not PHP-fpm. They both point to the same ini file and both show ...
1
vote
2answers
44 views

After ntpdate update for ubuntu server I always receive the old php file in nginx

The problem with nginX caching happened when I used ntpdate ntp.ubuntu.com to sync my server clock. Now when I request the path http://www.example.com/project/create I receive the old PHP file that ...
0
votes
1answer
57 views

Nginx configuration for a PHP custom file handler

I am new to nginx and am learning as I go. I have the following nginx configuration for a blog site I'm trying out. When I go to my site http://example.org/markdown-example.md, it loads the content of ...
0
votes
1answer
109 views

Laravel 4.1 on nginx routes error 404

I am having troubles with the routes of laravel on a nginx Server. It shows a "404 not found" for all the routes, except for the default one, very similar to this problem: ...
0
votes
1answer
29 views

Where cURL store files in web server? [closed]

I have a centOS machine using a nginx web server. In my application (php) I use cURL to get a remote file and then send it to the view: $cache_expire = 60*60*24*365; header("Pragma: ...
0
votes
0answers
41 views

How to write my logic in PHP for an nginx reverse-proxy?

I want to know how can I implement a reverse-proxy using Nginx for protecting (Token Authentication) some servers. One of the obstacles I'm struggling with is how can I establish a relationship ...
0
votes
1answer
28 views

Nginx does not have access to centos path

Sorry for the rather confusing title, I am trying to understand this error. I have a php file, inside a folder like site.com/src/app/index.php and this site.com folder is placed in /var/www/html/ in ...
2
votes
2answers
94 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
0
votes
2answers
56 views

Migrating a server from Apache to Nginx - how is my request handled?

I'm trying to migrate a service from a server to another. It's a simple php app. On the first server (Apache) I could request a JSON in the following way: ...
0
votes
0answers
155 views

Nginx PHP index.php rewrite not allowing proxy pass to '/writing'

What I'd like: I want to have the laravel site show unless it's for /writing. In that case I want it to proxy pass anything in that subdirectory to a nodejs site. What happens: The laravel site ...
-2
votes
3answers
307 views

nginx and php | can't resolve hostname and make connection with FQDN

I don't know what can cause this problem, nginx configs or php or anything else but : I can not make connection when host value for these php functions listed below is set to FQDN like ...
0
votes
0answers
86 views

Set disable_functions parameter per vhost

I'm trying to use the disable_functions directive for php with different values for each of my domains. First time a tried with nginx's fastcgi_param PHP_VALUE. It worked well until I had more than ...
1
vote
1answer
243 views

PHP NginX - Output Buffering - Video Streaming

(Since it contains some coding but also it's concerning nginx configuration i think it would be the best to have it in serverfault). I have some Video Files in my Server that are stored in a folder ...
0
votes
1answer
48 views

nginx + php-fpm + v8js crashing

I have a problem concerning v8js extension for php. I needed to install it on my server (and did) (CentOS 6.5, Nginx 1.0.15, php 5.5.12) but whenever I give such a simple test to it: ...
0
votes
0answers
66 views

Nginx server goes down when php file is executed in command line

We have a production nginx web server with php FPM. We ran a php script which updates a particular field in mysql database and mails some content using php mail function. This php script was executed ...
0
votes
0answers
58 views

Can't access the DELETE method on nginx

I have run into a strange issue with my server setup. I have nginx installed with php-fastcgi and MySQL. I am using Slim Framework for running my website. For some reason, the DELETE method does not ...
0
votes
1answer
668 views

502 Bad Gateway - Nginx, spawn-fcgi, WordPress

I host several sites on a CentOS VPS, and all was working fine until one of the WordPress sites on the server started returning a 502 Bad Gateway error. Other sites work fine. The WordPress site will ...
0
votes
1answer
109 views

Inconsistent behavior with Nginx's auth_request_set and more_set_input_headers

I'm trying to use the auth_request module in conjunction with the more_set_input_headers to automatically login my users into web apps. Basically, it works like this: Users have some session cookie ...
0
votes
0answers
37 views

is nginx + php5-fpm sufficient for long polling?

On my web application, I need to implement live notifications. I use nginx with php5-fpm. Digging through php5-fpm's configuration, I found out that it has a limit on the number of php scripts that ...
0
votes
0answers
114 views

Nginx & PHP: How to install / activate PDO

I have an nginx server with PHP running on Windows Server 2012 and I want to install Collabtive. This web-based project management software requires PDO to connect to a MySQL database. The ...
0
votes
0answers
125 views

How to figure out nginx 502 errors when logs are ok

I'm running a blog (on Wordpress) with nginx 1.6.0 + HHVM 3.1.0 + memcache on Ubuntu 14.04. Every few hours (~12-20h), nginx throws a 502 error and my blog gets down. I tried to figure it out, but I ...
-1
votes
1answer
65 views

Running PHP in HTML Files on NginxProxy Centos

I have a ngnixproxy server on Centos 6.0. Wordpress and php files are running fine. But I have a static site with an html file with php code in it. The code is not working and the server is ...
0
votes
0answers
151 views

nginx custom error page does not work when putting 404 response code in php

server { root /var/www/; index index.php; server_name example.com; location / { try_files $uri @rewrite; } location @rewrite { rewrite ^/(.*)$ ...
0
votes
1answer
128 views

Configure both php and node app together using nginx

I have an Ubuntu VPC. I have a nodejs app running on it in some folder. I have a php app running on apache in var/www. What I want is to configure nginx so that when a user comes on mydomain.com , ...
0
votes
0answers
70 views

How Should I Properly Handle Multiple Nginx Location Blocks?

I think I am getting close, but I am missing something important in nginx configuration. I would like all files ending in .php to be handled by fastcgi, so I have the following block: location ~ ...
0
votes
0answers
303 views

PHP-FPM pool stops responding and fails to restart

I am running PHP as PHP-FPM behind Nginx. Occasionally one of the pools stops responding to requests. It seems that nginx is accepting the connection, passing it to PHP-FPM but then PHP-FPM is not ...
0
votes
1answer
128 views

php-fpm use a lot of cpu

I use wordpress on Ubuntu 12.04 with Nginx + php-fpm on my VPS. There are 2 CPU cores + 4096Mb memory. I've moved mysql database to antoher server and set remote access. There are about 300 online ...
0
votes
2answers
37 views

How can I instruct nginx to interpret an individual file as php

A legacy application relies on the following .htaccess rule for an individual file <Files MyFile.html> AddType application/x-httpd-php .html </Files> The new machine has nginx and ...
0
votes
0answers
37 views

compress html pages on Nginx with mod_strip

I have installed Nginx 1.4.7 on my VPS and compiled mod_strip from this site https://github.com/evanmiller/mod_strip and tried to run it on my vhost block as it says in the manual like the code below: ...
-1
votes
2answers
857 views

PhpMyAdmin 500 Internal Server Error on Nginx/php5-fpm/Debian

I downloaded PhpMyAdmin a while ago and am having a hard time getting it to work. Requesting localhost/phpmyadmin gives a 500 Internal Server Error response, but there's nothing in the error log. ...
0
votes
1answer
159 views

How to tell Nginx to not rewrite URL's in selected location

I am writing some PHP CMS code with a clean url implementation in Nginx. To improve security of my code I want to rewrite all of the requests in my root directory / using the following type: rewrite ...
0
votes
1answer
2k views

Nginx 500 Internal Server error on subdirectory

I'm getting a 500 Internal Server error only on sub directories. For example, If my website is example.com, example.com/index.php works. But example.com/phpbb/index.php doesn't work. It just turns ...
2
votes
0answers
444 views

PHP Files being downloaded instead of displayed in browser

I created a VPS using Nginx and I tried to display the php info with: <?php phpinfo(); ?>. Instead, the browser asks me to download the php file, and it's not parsed either. This happens only ...
0
votes
2answers
707 views

Nginx PHP-fpm permission

When i'm setting the user in nginx.conf to root root: user root root; then my website is working, but when i set it to nginx nginx i get error in the logs: connect() to ...