Tagged Questions
0
votes
1answer
37 views
Can't get PHP files to work “File not found”
I have nginx installed on my VPS which is running CentOS 6.3 and I can't seem to get any PHP files to work.
Here is my nginx.conf file:-
user nginx;
worker_processes 2;
error_log ...
0
votes
0answers
43 views
How do I enable PHP FastCGI for apache on debian squeeze?
I would like to enable FastCGI on my server to enable PHP slow logging.
I installed it so far after this tutorial:
How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Squeeze.
But since I have ...
1
vote
2answers
96 views
PHP-FPM is not displayed in phpinfo()
I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure ...
0
votes
1answer
31 views
Nginx not parsing php when using try_files
I am basically trying to implement the Apache MultiViews behaviour so that my URLs do not require the .php extension.
As far as I can see from other questions answered here on Server Fault, I should ...
1
vote
0answers
47 views
Performance issues with small dedicated plesk centos5 server
I am getting some fairly sever performance issues with my plesk 11 dedicated box, it has 8 gigs of ram, static pages load very fast, a firstbyte time of less then 0.5 seconds, however dynamic php ...
0
votes
1answer
38 views
Multiple VHosts with FastCGI and Suexec
I have a Debian virtual machine server which I have full control over, but I have someone who wants to host a single domain on it. This is obviously a security concern, as even if his particular user ...
1
vote
0answers
29 views
IIS and PHP with FastCGI/WinCache not seeing updated files
We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones.
We're seeing many cases on IIS where the ...
0
votes
1answer
65 views
FCGI and upload_tmp_dir PHP directive are not working correctly
I run PHP as FCGI! I'm setting upload_tmp_dir option as value /home/domain.com/tmp. When executed phpinfo() for double-check it's confirmed that the settings above are correct.
Nevertheless, when ...
-1
votes
1answer
45 views
php-cgi.exe is opening up an enormous amount of instances
I am hosting php 5.2 on IIS 8. Yes, I know that's a horrible idea, but that is reality.
The server runs out of resources after our website is up for a few hours because for some reason php-cgi.exe ...
0
votes
1answer
83 views
nginx, php-fpm on diff server bad gateway (and security too)
This is somewhat of a multipart question.
First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong.
Second, I would love to know how I ...
0
votes
0answers
17 views
FastCGI PHP + Apache accepts any file/directory as valid if it follows php extension
I am facing a strange problem.
On my WHM/Cpanal server (Apache 2.2 MPM with FastCGI PHP 5.3+Xcache) any url that ends with php followed by anything random works. For example:
...
0
votes
0answers
115 views
Apache mpm-worker, mod_fcgid, OpenX - high load and Error 500
since a few Days we get an 500 Error from Apache. In the error-log from Apache I found the following lines, but I have no idea where the problem is.
[Tue Mar 19 13:11:53 2013] [warn] [client ...
0
votes
0answers
73 views
Configuring Lighttpd for running silex
I'm trying to get the php-microframework Silex up and running with lighty (local installation for debugging) on my ubuntu machine.
The phpinfo() gets processed properly by the webserver.
Here is my ...
1
vote
1answer
132 views
Nginx FastCGI in subdirectory only?
I have a single domain where the root is served by a python application running under uWSGI. I however need to run a PHP forum on a subfolder /forum/. I have the following in the apps-available ...
0
votes
1answer
73 views
Compiling / installing up-to-date nginx with fastcgi_cache on Ubuntu 12.04?
What is the recommended path to compile or install nginx with fastcgi_cache on Ubuntu 12.04 LTS precise that works with up-to-date nginx-common (read >= ver 1.2.7) packages?
Or is there a method to ...
0
votes
2answers
189 views
Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?
TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response?
I have a set up running php-fpm behind nginx. In general, this works very ...
0
votes
3answers
468 views
Make PHP-FPM Listen at 'IPAddress:Port' Instead of '/var/run/php5-fpm.sock;'
As I was load testing my site today (using blitz.io); despite lots of RAM (more than 50%) and CPU power (over 70%) available, results showed that my site started timing out at a certain number of ...
1
vote
0answers
66 views
Can lighttpd be configured to spawn it's own instances of PHP on Windows7?
Currently, this is how I start PHP and lighttpd and it works fine:
start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521
start /b LightTPD.exe
Once and awhile PHP crashes and I get 503 errors ...
0
votes
1answer
160 views
web server very slow, bombarded with php-cgi processes?
I have a Parallel Plesk 11.0.0 with CentOS 6.3. Lately, I've noticed that my web server runs VERY slow (not the norm), CPU average at 80% no matter what kind of traffic, and my top is filled with ...
-3
votes
1answer
65 views
weird php .so error [closed]
Do I need to recompile or rebuild or something? I never had this issue before.
/usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information available (required by /usr/bin/php)
/usr/bin/php: ...
1
vote
0answers
117 views
NGinx - PHP / CGI - No input file specified
I know this is a common problem. I googled and tried a lot but still doesn't work. "No input file specified" while calling PHP files from browser. I Installed nginx php/cgi on a fresh debian machine.
...
3
votes
1answer
149 views
Nginx - Enable PHP for all hosts
I am currently testing out nginx and have set up some virtual hosts by putting configurations for each virtual host in its own file in a folder called sites-enabled.
I then ask nginx to load all ...
0
votes
1answer
108 views
Long running php script hangs/terminates on IIS 7.5
I'm a bit of nube when it comes to configuring IIS 7.5 and Php so apologies if this is a silly question but I've been wrestling with this for over half the day and need some fresh input.
I have a php ...
0
votes
1answer
356 views
How to pass custom parameters to PHP from Nginx?
I'm using Nginx 1.2.4 in combination with PHP-FPM 5.4.8 with a fastcgi pass and trying to pass custom parameters to PHP. Here are the options I have found so far:
using the env directive to set an ...
2
votes
0answers
66 views
Can't make PHP work as FastCGI on Apache and Windows
I'm trying to run PHP as FastCGI with no success.
I made a *.conf file such on mod_fcgid page but without a wrapper script.
Here is my conf:
# php5 as FastCGI executable
FcgidMaxRequestsPerProcess ...
0
votes
1answer
235 views
Apache + PHP via FastCGI
I'm running into some problems while attempting to run PHP via FastCGI in Apache. I have the FastCGI module loaded, but get the following error when attempting to load a page:
The requested URL ...
1
vote
1answer
196 views
PHP5.3 FastCGI doesn't use global config's values
There's a Centos6.3 system. Apache 2.2.15 + mod_fcgid + PHP 5.3.3
There's a problem with date.timezone value. It's mentioned in the global /etc/php.ini like this:
date.timezone = "Europe/Moscow"
...
0
votes
1answer
41 views
Puzzle: php code get displayed when turn on https
When I try to set up https (let nginx listen on 443, with the ssl settings) and access my page, the quite surprising thing happens that I see my php code being displayed.
I see this in the nginx ...
0
votes
0answers
69 views
Read raw POST stream in nginx
I want to capture the raw POST stream in PHP via nginx and fastCGI. In Apache with mod_php I could add a SetEnvIf rule to replace the multipart header which would allow me to open php://input and read ...
2
votes
1answer
233 views
Loopback connection via PHP's getimage size crashes server (Magento's CMS)
We were able to trace down a problem that is crashing our NGINX server running Magento until the following point:
Background info: Magento Backend has a CMS function with a WYSIWYG editor.
This ...
1
vote
1answer
123 views
Edit MaxRequestLen in FastCGI on IIS (Plesk)
I am receiving a 500 Internal Server Error when trying to upload large files on my server. All of my PHP settings are correct, i.e. post_max_size, execution_time etc...
I am pretty certain it is a ...
1
vote
0answers
65 views
timeout with apache & php w/ each virtual host has his own user process
I have 10 unix users in /home/.
Each user is for a specific subdomain for example user www in /home/www/public_html is for www.mywebsite. blog in /home/blog/public_html is for blog.mywebsite.
90% is ...
1
vote
2answers
276 views
Turn off gzip for a location in Nginx
How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and ...
0
votes
2answers
84 views
How to increase simultaneous requests for LIGHTTPD
I have Red Hat 6 and I've installed Lighttpd + MySQL and at the moment in getting 500 internal server error, logs shows that I have arround 2000 requests / sec, while as soon as requests drop below ...
0
votes
1answer
200 views
File upload folder permission fastCGI - How to make it writeable?
I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC
I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems.
The folder (and all ...
1
vote
1answer
158 views
Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user
What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications.
The server ...
10
votes
1answer
2k views
Multiple php versions simultaneously on Ubuntu
I want to be able to run multiple php versions on my development box running Ubuntu 12.04. What I want to accomplish is that when I use localhost as domain a default is used (let's say php 5.3.17). ...
0
votes
1answer
177 views
mod_fcgi produces random 500 Errors
php 5.4.7 via mod_fcgi
when I run the site sometimes it works, sometimes it crashed with 500 Internal Error, this is what I see in error.log everytime I run the script
[Mon Sep 24 18:50:43 2012] ...
0
votes
1answer
325 views
how to add an open_basedir path in nginx vhost
In php.ini I've set
open_basedir = /home/user/web/
Now I would like to run phppgadmin on a subdomain which needs to include files from /usr/share/phppgadmin.
So I added the following line to the ...
1
vote
0answers
272 views
fastcgi cache how-to cache for logged-in users and make it custom for each user
Currently I'm doing cache using fastcgi_cache for non-logged-in users, and using ( if + fastcgi_no_cache + fastcgi_cache_bypass ) to pass logged-in users directly to backend which is PHP-FPM.
this ...
0
votes
0answers
111 views
iis php internal server error
I developed a website, using php/mysql running at IIS Server as CGI Server API.
Suddenly it gives me error 500 after two weeks. It has lot of scripts but index.php home is working. But other script ...
1
vote
2answers
345 views
Nginx closes connection while PHP-Fpm is processing
I have a PHP script that does some data processing. The time that it takes to the script to finish all the job is based on the user input. It's not unusual that it takes 5-15 minutes of processing.
...
0
votes
1answer
220 views
eAccelerator with two versions of PHP through FastCGI
Alright so I will outline how everything is setup and running for me on my dedicated box. I have everything working accept eAccelerator only works on one of my PHP applications.
Apache2
I have ...
0
votes
1answer
251 views
apache crash and mod_fcgi error
Apache crash with the following error :
mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
mod_fcgid: /usr/local/cpanel/cgi-sys/php5 spawn score 10 >= 10, skip the spawn ...
0
votes
1answer
382 views
PHP-APC Installation
Trying to get my head around the way to install APC cache on PHP 5.3.13. That's a VPS with apache, configured preferably through whm/cpanel (although not only).
I read a bunch of articles where it ...
1
vote
2answers
2k views
SuExec: “command not in docroot” Even Though It Is?
Arch Linux 2011.08.19 (Linux 3.4.2 i686)
Apache 2.2.22 with SuExec
PHP 5.4.4 (cli) via FastCGI
My sites were all working fine earlier… I’m not sure when it happened because I noticed it over a week ...
0
votes
2answers
264 views
PHP on Windows as Fast-CGI (IIS vs Apache)?
We currently have a Windows web server. It's running Apache and PHP as a module. The server itself is a beast but PHP performs poorly in a Windows environment when installed as an Apache module and ...
1
vote
3answers
206 views
How to tell: Is it nginx or PHP-cgi which is slower?
I run a website with a lot of traffic. I'm using nginx and php fast-cgi.
However, when loading simple php documents in the browser, it takes up to 5-6 seconds before the page is loaded. Sometimes it ...
1
vote
1answer
291 views
“no input file specified” with apache/php after recompile
I have CPanel and I recompiled php to 5.3.13 and im getting "no input file specified" on sites like vB and MyBB running in fcgi and suEXEC (same mode as before).
on build I have checked:
Mod SuPHP
...
0
votes
3answers
794 views
nginx: php-fastcgi running but php files not executing
I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed.
...