All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
0 answers
96 views

Docker nginx + php performance

I am using docker-compose to run an nginx container and a PHP container. I have a performance issue, where each 4th or 5th request to a simple PHP script takes several seconds (normally <<1s). I ...
Joaquim d'Souza's user avatar
0 votes
1 answer
96 views

cgi/fastcgi 0% CPU and N% Memory?

I have php wordpress website hosted on IIS, have been using FastCGI, below is my fastCGI configuration Below is screenshot of task manager There are many fastCGI processes that are using 0% CPU but ...
utsav's user avatar
  • 117
0 votes
0 answers
271 views

IIS FastCGI configuration for high concurrency

I am hosting, on Windows Server 2022, a web application that makes regular ajax calls to a PHP backend. The calls themselves are quite light, just pulling and pushing data from and to a MySQL db. Over ...
resle's user avatar
  • 189
0 votes
1 answer
417 views

Nginx - fastcgi cache not working for rewrite enabled php page

I've been trying to figure out why Im failing to achieve fastcgi caching for a rewrite rule applied php page. While all other request wonderfully cache, the rewrite ^(.+)/special/?$ /inc/special....
TheMonkeyKing's user avatar
0 votes
1 answer
34 views

Is include() cached with fastcgi?

I have a script like this script.php <?php include "data/package.php"; echo $package[0]["name"]; echo "Hello World"; ?> and i do cache false with this map $...
yvgwxgtyowvaiqndwo's user avatar
1 vote
0 answers
564 views

nginx 404 not found in subfolder

I installed a php script in /files/ subfolder on Nginx but when I access the page, it's not working. Just showing 404 not found. I added this in the config but not working. location ^~ /files { if (!...
Genisys Mythic's user avatar
1 vote
1 answer
4k views

Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource

I installed php8.1-fpm on Ubuntu 22.04. In principle, I set everything up, but still "403 Forbidden You do not have permission to access this resource "error message is displayed. The system ...
Teo76's user avatar
  • 11
1 vote
1 answer
740 views

How do I pass on a custom FastCGI param value onto an NGINX variable?

Using the FastCGI module allowed me to pass on server variables directly onto my PHP application through the use of param. What I'm hoping to do next is record one of these params onto my NGINX access ...
Gibz's user avatar
  • 11
1 vote
0 answers
2k views

nginx 502 error for api call from application but working in postman and curl request

Environment: Laravel Version: 5.8.29 PHP Version $ php --version: PHP 7.2.24 (cli) NGINX Version $ nginx -v: nginx version: nginx/1.14.0 (Ubuntu) Problem Statement: Everything works fine, except for ...
Maqsud's user avatar
  • 111
0 votes
0 answers
522 views

change fastcgi directory in nginx configuration

i am not sure how to write the proper title i have 5 ajax requests that gonna execute postgresql query in php here is the directory /var/www/webgis.com: 1. webgis.html 2. php(directory) -query1....
astaga's user avatar
  • 1
0 votes
1 answer
185 views

NGINX FastCGI "Primary script unknown" on every other image upload POST

I have a simple upload php script that accepts image jpg files and saves them to a screenshots directory then returns the link to the client. In pre-deployment testing, I am running into the nginx ...
Fireant456's user avatar
1 vote
0 answers
417 views

PHP FastCGI Process Manager (FPM) on IIS

Is there a way to enable fpm-fcgi sapi on IIS? I'm aware that the default SAPI for PHP on IIS is cgi-fcgi.
user4333349's user avatar
0 votes
1 answer
2k views

Nginx - Redirect to remove index.php from path

I'm trying to deploy a web application for building REST services. The application is built using PHP and you BYO web server and database software. I'm using Nginx and MySQL (MariaDB). I've managed to ...
damiante's user avatar
0 votes
0 answers
282 views

Nginx FastCGI primary script unknown when using a wildcard setup

I am trying to set up a dev stack where I can simply create a new directory and have it accessible as subdomain through nginx. I am running into the infamous 'primary script unknown' issue, and I ...
Ieuan's user avatar
  • 111
0 votes
1 answer
637 views

Pin point 500 Error which seems to orginating from FastCGI Module

I have a php application which I have been hosting on IIS that has suddenly stopped working and returns a server 500 error. In an attempt to troubleshoot it I have added a Failed Request Tracing Rule ...
Niana 's user avatar
  • 101
1 vote
0 answers
247 views

Apache2 executes PHP only implicitly, not when explicitely opened

I am facing a rather strange behavior. I have placed a simple phpinfo test script (see below) as index.php in the root directory of my domain. When I open it as www.example.com in the browser, it ...
Aileron79's user avatar
  • 259
0 votes
0 answers
840 views

PHP is looking for php.ini in C:\php rather than C:\Windows

My monitoring software (Dynatrace) messed up php on my web servers. For some reason all of my IIS websites are loading the php.ini file from C:\php-5.4 instead of C:\Windows. From phpinfo(): ...
rando513's user avatar
1 vote
0 answers
1k views

nginx pfp-fpm - "No input file specified." when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
Sakibul Alam's user avatar
0 votes
0 answers
484 views

configure nginx for PHP in subfolder

I wish to serve an old app that lives in a folder - the folder contains everything needed - index.html, various .js and a "server.php" backend. index.html works fine, but I get 404 for the calls to ...
minisaurus's user avatar
0 votes
1 answer
583 views

PHP FPM .conf per site vs server PHP pool performance tunning

I saw this article how to tune the PHP FPM https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534 this article shows Excel sheet to calculate ...
Roman_G's user avatar
  • 63
-1 votes
1 answer
247 views

NGINX location block to fastcgi process URL segments as URL parameters. How?

I am trying to understand how to get this location block to work as desired. ## TESTING MOD REWITE FROM APACHE... location /beta9/projects/project/ { try_files $uri $uri/ /beta9/projects/project/...
suchislife's user avatar
0 votes
1 answer
2k views

[alert]: fastcgi request record is too big -Fastcgi receives an error message that the get request is too long

Recently, the program encounter ed a problem, LNMP environment, because PHP in the program spliced GET request uri parameter is too long, resulting in an error, nginx processing uri is too long ...
丁文浩's user avatar
1 vote
1 answer
2k views

PHP under IIS FastCGI - How to determine the best values for InstanceMaxRequests and PHP_FCGI_MAX_REQUESTS

I'm running PHP 5.4 (yes, I know it's old and needs to be upgraded) as a FastCGI component in IIS 8.5 on Windows Server 2012 R2. While I was tuning the settings I read the https://docs.microsoft.com/...
luisdev's user avatar
  • 143
2 votes
0 answers
321 views

Repercussions of setting the IIS responseBufferLimit to = 0

I'm running a PHP application (Moodle) under FastCGI in IIS 8.5, Windows Server 2012 R2 and PHP 5.4. There are two VM server nodes in the setup using an F5 load balancer. I am using Wincache for the ...
luisdev's user avatar
  • 143
1 vote
0 answers
122 views

How can I determine a reasonable value for pm.max_children in dynamic mode?

I really don't understand the purpose of this variable - what exactly is the purpose of it? To prevent the exhaustion of ram? It seems ineffective as each request could use a variable amount of ram up ...
Chris Stryczynski's user avatar
0 votes
1 answer
6k views

Changing PHP_FCGI_MAX_REQUESTS

I cannot find the location of the conf file where I can change the value of PHP_FCGI_MAX_REQUESTS. Info about the system: Debian, php7, FAST-CGI, Apache 2.4, Plesk Onyx 17. There are similar ...
Ulugbek's user avatar
1 vote
0 answers
934 views

Wordpress won't load after updating PHP to 5.4, gives FastCGI Error (Windows)

I'm having a lot of problem here trying to start the development of a new website. We have an external host running on Windows (our client already have a website on the root - we end up not having ...
Mateus Oliveira's user avatar
1 vote
1 answer
2k views

NGINX PHP FastCGI multiple locations (alias) issue

First time posting and very new to all this - was advised to try here over stack overflow and have read a few different things linked but just cannot get my head around it. After alot of trial and ...
PBX's user avatar
  • 11
-1 votes
2 answers
3k views

Why FastCGI and C in Nginx instead of PHP?

I want to run a (compiled) C program every time Nginx receives a request for a URL, say https://myserver.com/programs/my-C-file. More specifically, when a PR in GitHub is merged, I want a hook to ...
OrdinaryHuman's user avatar
0 votes
1 answer
476 views

Nginx global conf for running php scripts

To configure Nginx to process a PHP app, one can create a dedicated conf file under sites-available and then create an according symlink under sites-enabled, but I don't want to use this method - I ...
Arcticooling's user avatar
2 votes
1 answer
2k views

Can't get nginx to run php on ubuntu 16.04 server

I am setting up a server running nginx and I'm trying to get it to run php scripts. Apparently the greatest article on how to get nginx to run php is this one: https://www.digitalocean.com/community/...
john-jones's user avatar
1 vote
0 answers
271 views

Apache + Nginx + HHVM FastCGI on Mac OS X not working?

My phpinfo() correctly tells me that I am running HHVM 3.18.1 on my Apache webserver. If I try to load any PHP page other than my index.php, I get: [Thu Aug 17 11:35:56.542841 2017] [proxy_fcgi:error]...
NobleUplift's user avatar
0 votes
1 answer
2k views

PHP FastCGI - How PHPRC works

I have a weird situation here in my configuration of Apache. I have decided to use FastCGI and multiple versions of PHP. Below are my configuration files. If I check phpinfo(); I can see that on ...
Arxeiss's user avatar
  • 101
0 votes
1 answer
726 views

PHP on Nginx crashes after some minutes

I'm having a embedded device with a running OpenWrt Linux. I have installed and configured the pakages php5-fastcgi and nginx like described on OpenWrt Wiki: https://wiki.openwrt.org/doc/howto/http....
Benjamin J.'s user avatar
1 vote
2 answers
2k views

Remove index.php from Nextcloud urls, using Apache+fastcgi

I installed Nextcloud on my Webfaction web space, and want to remove the "index.php" in the URL. I followed the instructions here, but then realized that it says: Furthermore these instructions are ...
jdm's user avatar
  • 191
1 vote
0 answers
319 views

how do I modify php verbs web.config

I have a project that needs the PUT request enabled for PHP. By default GET, HEAD, and POST are enabled but I need to enable PUT verb from my web.config, not from IIS manager. How can I do this?
Abdullah Seba's user avatar
0 votes
1 answer
982 views

PHP script cannot run more than 1 minute on IIS 8.5

I've set max_execution_time to 0, set memory_limit to '-1' and time limit 15 minute for FastCGI but getting a "500 - Internal Server Error" when running a PHP script more than 1 minute. Anyone have ...
Bimal Bavalava's user avatar
1 vote
0 answers
997 views

Site becomes inaccessible due to PHP-FPM listen queue, CPU touches 100%

I've been racking my brains apart trying to solve this issue that comes up randomly every few hours on my production server hosting a single Wordpress blog (with decent traffic: 2000 users realtime on ...
LittleLebowski's user avatar
7 votes
1 answer
5k views

Create FastCGI application with PowerShell

I'm trying to automate the provisioning of a Windows 2012 server, but I'm having trouble getting PHP to work. This is the command I'm using to add a handler mapping to IIS: New-WebHandler -Name "PHP-...
Willem-Aart's user avatar
1 vote
1 answer
644 views

FcgidWrapper Permission Denied

I am trying to setup FastCGI to work with PHP on Apache 2.4.6 (CentOS). I am following the instructins verbatim from the docs: https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html /etc/httpd/conf/...
Cinolt Yuklair's user avatar
0 votes
1 answer
461 views

Nginx Primary script unknown (fastcgi_param + alias)

I'm using Laravel in a serverblock and I'd like to create an alias, for example /webmail. This results in an nginx "Primary script unknown" error. I think I need to change my fastcgi_param. Can anyone ...
Patrick's user avatar
  • 71
2 votes
1 answer
4k views

Apache 2 Fast CGI php issue

I'm trying to set php5.6.23 as fast CGI on my server for using php7 as main version but in one of my domain, I get this error : The requested URL / was not found on this server. here is my vhost ...
Jeremy Talus's user avatar
1 vote
1 answer
72 views

HHVM w/ FastCGI vs. Uploading via WordPress

I successfully installed nginx, HHVM (running with FastCGI) etc. on an Ubuntu 15.10 installation, and HHVM is, in itself, running fine. My /var/www directory is owned by my user and group (e.g. sam:...
physalis's user avatar
  • 145
1 vote
0 answers
79 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
user2464424's user avatar
0 votes
0 answers
907 views

Unable to get Nginx/Apache + FastCGI + PHP-FPM + HTTP/1.0 to use Keep-Alive

For a reason beyond my control (an app that cannot be modified), I need to get a server that processes HTTP requests for PHP pages over FastCGI, to honour "Connection: Keep-alive" (sent by said client)...
Shimi's user avatar
  • 116
0 votes
2 answers
800 views

nginx+fastcgi+php-fpm step from standard config = 404

I want to work simple url like http://host/test.php, note there are no trailing / at the end. I start from standard config from nginx site + serverfault: location ~ [^/]\.php(/|$) { ...
fghj's user avatar
  • 196
1 vote
1 answer
1k views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
Imre Szalai's user avatar
1 vote
3 answers
7k views

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP ...
Fabio's user avatar
  • 55
1 vote
0 answers
2k views

mod_fcgid: error reading data from FastCGI server

This is my first post here although I often do search and find answers here. This time I've spent a couple of days searching various sites but unfortunately none of the answers in other threads helped ...
John Mc Murray's user avatar
1 vote
1 answer
290 views

Why does a new application pool identity have write access?

I am running IIS 8.5 with PHP (various versions) via FastCGI. Impersonation is on in the PHP config for FastCGI. The app pool is set to use the App Pool Identity. In fact, if I actually ...
AJ Henderson's user avatar

1
2 3 4 5 6