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
59 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
86 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
149 views

Apache stops communicating with memcache after creating too many vhosts

I've noticed a very peculiar problem with Apache. I have a very high number of virtual hosts set up - it's around 501. Problems started occuring after vhost number 493. First 493 vhosts work as ...
2
votes
0answers
190 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
92 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
28 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
827 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
363 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
76 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
262 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
429 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
153 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
370 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
432 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
700 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
343 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
558 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
199 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
576 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
245 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
878 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
19 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
46 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
44 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
23 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
23 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
19 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
47 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
41 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
65 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
75 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
101 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
98 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
150 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
432 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
121 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
129 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
65 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
53 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
133 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
24 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 ...
1
vote
0answers
154 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
0answers
161 views

Elastic Beanstalk w/ RDS and PHPmyAdmin

I'm trying to configure a Drupal CMS on my new Amazon EC2 server with Elastic Beanstalk PHP. I also have MySQL configured for my RDS database. I want to get PHPmyAdmin running for use with Drupal. I ...
1
vote
0answers
72 views

Web App login redirecting to homepage on AWS Elastic Beanstalk

I've hosted my application on AWS Elastic Beanstalk. The application behaves itself in a local environment and shared hosting environment, but when on AWS it refuses to login. Instead it redirects ...
1
vote
0answers
88 views

PHP file load time, perhaps related to NFS?

The Problem I'm attempting to diagnose a performance issue on a Drupal website I'm developing. In the morning, when the site has seen no traffic (not even a cron run) for over 8 hours, the homepage ...
1
vote
0answers
49 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...