0
votes
2answers
55 views

php not working on nginx fresh install on centos 6.5 [on hold]

Got me a fresh install of centos 6.5 on virtualbox (under my lynx distro - mint). I've created a new user with public_html under the user's home directory, added simple php file and set up all ...
0
votes
1answer
21 views

Pass PHP5-FPM errors back to error page script?

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
0
votes
0answers
23 views

Nginx and PHP windows 7 64 bit - page temporarily unavailable [on hold]

I am running Windows 7 Professional N 64 Bit with nginx 1.6.2 (64-bit) and php-5.6.1-nts-Win32-VC11-x64 (non thread safe) I have the nginx and php folders setup like C:\nginx C:\php I can start ...
-1
votes
0answers
25 views

How to compile or run PHPNG with another user? [closed]

I am testing https://wiki.php.net/phpng Already compiled and working, the only problem is that to make php-cgi work with a framework like wordpress you need to run it with the user nginx is runnning, ...
0
votes
1answer
32 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
1answer
44 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance?

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
0
votes
0answers
15 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
29 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
34 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
348 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
45 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
113 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
36 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
104 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
39 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
44 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
65 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
45 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
64 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
47 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
65 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
184 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
57 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
68 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
203 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
30 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
50 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
33 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
109 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
74 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
185 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
391 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
98 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
339 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
55 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
69 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
69 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
833 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
123 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
40 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
143 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
132 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
79 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
167 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
161 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
81 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
342 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
168 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
42 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
40 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: ...