PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

learn more… | top users | synonyms

3
votes
0answers
69 views

Odd performance fluctation with php-fpm and nginx

I'm running a load test against a web service. It's a php application running on php-fpm and nginx, with fastcgi. There is a MySQL backend being used for small reads only. Invariably, I'm seeing a ...
3
votes
0answers
92 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
2
votes
0answers
262 views

Zabbix PDF Report Generation

if any of you have an idea how to implement zabbix generate PDF reports? in forum I found some like this: https://www.zabbix.com/forum/showthread.php?t=24998 . I try implement this to my zabbix ...
2
votes
0answers
102 views

What would cause Apache to return malformed HTTP responses?

I have a Go server that reverse proxies requests to an Apache/PHP server. I have been able to rarely observe that on occasion, the Apache/PHP server will cause Go to produce the following error ...
2
votes
0answers
32 views

PHP APC cannot increase cache above 32m

apc.shm_size I set it to 128M I have also try 128 (without M) But It always 32M :( /proc/sys/kernal/shmmax is set to 134217728
2
votes
0answers
1k 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 ...
2
votes
0answers
393 views

How to install a newer version of php on AWS Opsworks?

Our code base is using PHP 5.5 and we are wanting to deploy on AWS Opsworks however when selecting the PHP App Server layer we are told it has PHP 5.3. What I was hoping is that I could just use the ...
2
votes
0answers
84 views

include_path not working in httpd.conf

I have a virtual host set in httpd.conf. The virtual host resolves properly, but it is ignoring my php_include path directive: php_value include_path .:/var/www/xxx/library/ The path works, I ...
2
votes
0answers
286 views

PHP 5.5.9 with Apache 2.2 on Windows

Is it possible to run PHP 5.5.9 with Apache 2.2 on Windows? The PHP 5.5.9 package only comes with the php5apache2_4.dll module, which clearly doesn't work with Apache 2.2. I'm having trouble finding a ...
2
votes
0answers
469 views

phpinfo.php is not showing extra folder for additional PHP configuration files

My phpinfo.php is not showing extra folder for additional PHP configuration files. I am running Apache v2.4.4(with PHP DSO) and PHP v5.4.14 on CentOS v6.3 32-bit. Apache and PHP installations are ...
2
votes
0answers
169 views

Apache server returns 404 after timeout

Making multiple requests to the server causes a 404 error after about 40-60 seconds. I am using JavaScript to request: example.com/test/location. Apache has mod_rewrite enabled that maps this to the ...
2
votes
0answers
383 views

AWS amazon SES stopped working suddenly

I am not able to send the mail from aws.amazon SES since from Monday (30-10-2012) previously it is working fine suddenly it stopped working. I got following is the errors A PHP Error was encountered ...
2
votes
0answers
446 views

Strange Apache/PHP&Perl behavior—error (70007)

I’m dealing with a particular strange situation: I have two Linux machines, one with Scientific Linux (v4.8) and one with CentOS (v6.2). On the SL machine I have a XAMPP distribution with Apache ...
2
votes
0answers
717 views

Mod_pagespeed with Zend Framework gives 404

I am expiering some problems with the Google's Apache mod_pagespeed module to combine css, js, etc. During the last months I developed a new version of our software based on Zend Framework. I just ...
2
votes
0answers
349 views

PHP + ImageMagick Performance Issues

Good Day, I have two environments: OpenVZ VPS and Pentium 4 local dev machine. They have all packages installed the same way. ImageMagick is compiled from sources without OpenMP support. When I run ...
2
votes
0answers
1k views

Yum install on CentOS 6.2

I can't install any php extension Epel repository enabled Yum is updated yum repolist shows repo id repo name ...
2
votes
0answers
587 views

Installation of Image Magick on Wamp

I did the following yet the image Magick extension doesn't get loaded I downloaded and installed the binary ImageMagick-6.7.5-3-Q16-windows-dll.exe at c:/imagemagick added to the httpd.conf file ...
2
votes
0answers
205 views

Setting PHP remote write permissions in IIS7

I have two windows server 2008 servers. One is a web server one is a file server. A php script runs on the web server and is supposed to write to the other server. I am getting a permissions error. I ...
2
votes
0answers
1k views

php-cgi.exe and/or php5.dll crashing - PHP 5.2.17, Win2k8 & IIS7

A specific part of my PHP script crashes randomly and I'm not sure why. The only difference on this page and the rest of the pages, is that I'm doing a PDO SQLSRV call. But 80% of the time there are ...
2
votes
0answers
586 views

Content Encoding Error on new IIS 7 server with PHP

I recently moved a PHP (Cake framework) development site from an IIS 6 (x86) server to an IIS 7 server (x64). The content is all the same and the URL rewriting works, but on the attempt to display the ...
2
votes
0answers
85 views

Connection reset with duplicate query parameters

Is there anything that could cause a connection reset when duplicate query parameters are passed to a page? http://test/?test[]=1&test[]=2 Causes a connection reset http://test/?test[]=1 Works ...
2
votes
0answers
249 views

MagickWand PHP Module DDL for Windows

I'm struggling with enabling MagickWand as a PHP extension which is ran on Windows (Apache). I am running PHP 5.3.x. (I need namespaces). I have been able to install MagickWand on PHP 5.2.4 but not ...
2
votes
0answers
941 views

PHP: Call to undefined function mb_strlen() - on custom compiled PHP with mbstring enabled

I have this custom compiled PHP (v5.3.3) with the following extensions enabled (via configure): ./configure --prefix=/usr/local/php5.3.3 --with-config-file-path=/usr/local/apache2/conf ...
2
votes
0answers
328 views

Getting regular PHP updates in Ubuntu Lucid

So we have a few servers that are running Lucid and will be running apache/php. We would like to be able to run PHP scripts as different systems users as well as have customized php.ini files for ...
1
vote
0answers
18 views

PHP mail() function - “from” name overwritten by Exchange Server

I originally posted this on stack overflow but was told it might be better placed here on Serverfault. I am trying to send a very simple email from a php script ...
1
vote
0answers
10 views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command ...
1
vote
0answers
18 views

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get ...
1
vote
0answers
22 views

PHP temp uploaded files are not deleted on IIS due to 'Access Denied' for IUSR

When uploading a file by a HTML form to a PHP script, the uploaded file will remain in upload_tmp_dir, even when the request ended and this file was not removed explicitly by the PHP code. Expected ...
1
vote
0answers
38 views

PHP running slow on Plesk 12 Windows VPS, IIS7.5, 6 cores, 6gb RAM

I am having an issue where PHP is running very slow on my Plesk 12 Windows VPS. Its a high end VPS with 6 AMD Opeteron (2.4ghz) cores and 6gb RAM. The server runs Plesk 12 on Windows Server 2008 R2, ...
1
vote
0answers
32 views

suPHP won't allow access to PHP sources

I am running suPHP with Apache2 and PHP5.4 on a Debian Wheezy. I found out that .phps files won't be showed and access will result in a 403 page. The same file with equal chmod/chown/chgrp will be ...
1
vote
0answers
54 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
1
vote
0answers
124 views

Instal pecl_http: raphf installed but ./configure isn't seeing it

I'm trying to install pecl_http as an extension to php. phpise is working fine as I'm getting the configure file out. When I go to type ./configure I get the following error message; ... checking ...
1
vote
0answers
31 views

can't find mediawiki after changing apache listening port on ubuntu server

I had mediawiki installed and apache listening on port 9997 accessed via example.com:9997/mediawiki Mediawiki is under /var/www/html/mediawiki. So I wanted to change it to port 80. I changed ...
1
vote
0answers
30 views

Unable to load dynamic library pdo_mysql.so

I installed php55-* because I needed to upgrade an SDK in my app (which ended up needing PHP 5.4 or later). It seems that pdo_mysql.so cannot be loaded: PHP Warning: PHP Startup: Unable to load ...
1
vote
0answers
29 views

Memcached Pool - Outtage causes increased lag in response time

I have multiple cache servers which are added to a virtual pool at the PHP layer via the Memcached::addServers() api. During fault tolerance testing I noticed that taking one of the memcached servers ...
1
vote
0answers
67 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
1
vote
0answers
57 views

CentOS - Files to Copy to get Consistent MIME-type detection in PHP

I have the same website (written in PHP) running on two servers. I've tried uploading the same exact file to both servers through the website. On one of the servers, the file's mimetype is detected as ...
1
vote
0answers
77 views

Understanding & Resolving Web Server Exploits

We recently had someone contact our company pointing out that we had numerous security threats that could be used to exploit our systems. They were nice enough to provide a list of these to which we ...
1
vote
0answers
85 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 ...
1
vote
0answers
127 views

Simple php page gives 404 error in Magento

For testing purpose, I created a folder and created a test.php file in my magento site. It contains: <? echo "Hello"; ?> It works on one machine but not another machine. I chmod 777 to the ...
1
vote
0answers
113 views

command line alias inside php exec

Is there any possibility to define shell alias for commands executed via php system, exec etc functions? I'm running multiple versions of PHP using fastcgi and I need to run the right version of PHP ...
1
vote
0answers
187 views

User Uploaded Images– Blank Post – Connection reset by peer / FastCGI: incomplete headers

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as ...
1
vote
0answers
475 views

Apache SSL redirect loop

We are trying to redirect our site from http to https only. Everything we have tried in .htaccess has resulted in a redirect loop. If we manually type the "https://" in front of the url, our page ...
1
vote
0answers
140 views

APC has no system cache entries

I have 2 web servers to provide PHP websites. One server is : Apache + PHP-FPM + APC The other : Apache with MPM-itk + APC. For both of these servers, APC has no cache system entries but only users ...
1
vote
0answers
145 views

PhpMyAdmin Hangs On MySQL Error

I'm currently running PhpMyAdmin 4.0.10 (the latest version supporting PHP 4.2.X) on my Amazon EC2 connecting to a MySQL database on RDS. Everything works perfectly fine except actions that return a ...
1
vote
0answers
70 views

Rackspace Cloud Server / DB - getaddrinfo failed

I recently migrated my MySQL instance from my debian server to a cloud database server at rackspace. A couple times of day since then, I notice in the log files that we have the following error: PHP ...
1
vote
0answers
54 views

PHP define in config file does not update with new value

I have just installed a new system and set up the configuration file (DB settings). the conf' file has the following definitions: define('DB_USER', 'user'); define('DB_PASS', 'pass!'); It all works ...
1
vote
0answers
136 views

Can't load Mongo extension in php.ini

I'm having some issues while try to load mongo.so extension at php.ini. Below is what I tried: Compile the mongo extension by following the documentation at php.net for MongoDB site. This resumed ...
1
vote
0answers
60 views

IIS rewrite rules for subdomain and nonexistent files

Setup: I know how to use a rewrite rule to route urls to a routing script such as router.php. I know how to use a rewrite rule to route urls containing a subdomain to subfolders in the document ...
1
vote
0answers
25 views

Nginx-watch script - issue with inotifywait not seeing changes

I'm using Nick's excellent nginx-watch script to monitor an nginx.conf file in www root so that it reloads a couple of wordpress plugin nginx configurations automatically as soon as they change (BWPS ...