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

5
votes
0answers
162 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. ...
4
votes
0answers
2k views

Apache 2.4 not closing connections

I have an Apache 2.4 webserver that runs on a micro instance of AWS with CentOS. The apache is running PHP with a prefork MPM module. The server is accessed via an Amazon load balancer which has a ...
3
votes
0answers
69 views

LDAP over TLS fails to connect, Schannel Alert 48

I am trying to use PHP to edit users in active directory through LDAP. My test machine is using a simple WAMP setup and is NOT connected to the windows domain. This machine can connect to LDAP on the ...
3
votes
0answers
34 views

SQL server and PHP restart

i have Apache/PHP running on a server running windows 7 with SQL server 2008 r2 running on windows Server 2008. When SQL is restarted Apache/php will no longer connect to SQL once it is back up ...
3
votes
0answers
1k views

nginx recv() failed (104: Connection reset by peer) while reading response header from upstream

I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: 502 Bad Gateway There were no log entries in the var/log/ folder: ...
2
votes
0answers
238 views

php generated css no output, net::ERR_INCOMPLETE_CHUNKED_ENCODING

I am running apache on an ubuntu installation. Several webapps are running on the same server. I installed a new app, which required the pdo-sqlite extension to be installed. Now my server is ...
2
votes
0answers
65 views

Suexec PHP does not load php.ini

I'm using FastCGI with suEXEC for PHP on CentOS 7. My wrapper script looks as follows: #!/bin/sh PHPRC=/home/ben/etc/ export PHPRC export TMPDIR=/home/ben/tmp/ exec /usr/bin/php-cgi -c ...
2
votes
0answers
53 views

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production ...
2
votes
0answers
246 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
2
votes
0answers
46 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
2
votes
0answers
115 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
2
votes
0answers
297 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 ...
2
votes
0answers
629 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 ...
2
votes
0answers
253 views

HHVM RepoAuthoritative Unable to stat file

My magento installation is hosted on a VPS running CentOS, Nginx, MariaDB and HHVM, which works without any problem. However, I am now trying to pre-build the RepoAuthoritative file for my ...
2
votes
0answers
1k 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
167 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 ...
2
votes
0answers
206 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
50 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
2k 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
597 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
155 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
510 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
103 views

intermittent AWS Linux AMI server error “File does not exist: /var/www/html/var”

Intermittent error "File does not exist: /var/www/html/var" from all areas of a Zend MVC app resulting in pages occasionally failing to load - when normally they load perfectly. Our Set-up MVC app on ...
2
votes
0answers
854 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
90 views

ICU Latin-ASCII on Centos

Have ICU 4.2 on Centos 5, but need Latin-ASCII translitarator, which came in ICU 4.6. Is there any easy way to add Latin-ASCII without recompiling ICU (no rpm for Centos) and then PHP?
2
votes
0answers
269 views

Jail PHP to OpenBasedir or Document Root Debian

I have a VServer running with Debian Squeeze Debian Squeeze / Apache2 / FastCGI / MySQL / Froxlor. The administration of Customers, Domains and FTP Accounts are performed using Froxlor. Following ...
2
votes
0answers
492 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
552 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
862 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
1k views

Best opcode cache for fcgid? (APC vs eaccelerator vs xcache)

I have been reading a while the web trying to find out about opcode caches for fcgid. As I understand so far APC is not a good solution for fcgid, since APC with fcgid caches only per process and that ...
2
votes
0answers
398 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
276 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
2k 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
683 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
97 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
268 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
330 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
4 views

Use different client IPs with mod_rewrite and mod_remoteip

I have a reverse proxy that my site points to to help with DDoS protection. I have mod_rewrite set to use a specific header provided by the reverse proxy in order to pull the actual client IPs instead ...
1
vote
0answers
9 views

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid ...
1
vote
0answers
29 views

Apache authentication with PHP file

Is it possible to have authentication in Apache (or for example Nginx/HAProxy/etc) with a PHP file? What I want is the following: User visits a portal (index.php). Apache will look if index.php ...
1
vote
0answers
61 views

Apache downloading PHP files instead of rendering them after uddate form php 5.3.3 to 5.4

I have some scripts that need to use a newer version of PHP, Im running Debian 6 which has PHP 5.3.3 support, I found I could install php 5.4 using https://www.dotdeb.org/instructions/ packages. This ...
1
vote
0answers
6 views

Anonymous Authentication Identity Win 2012 r2 security

I have a web app that uses PHP on the back-end, and the PHP executes powershell scripts to reset AD passwords through system calls. EX: shell_exec("powershell.exe -file ...
1
vote
0answers
26 views

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: ...
1
vote
0answers
113 views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
1
vote
0answers
122 views

Why do I get an OpenSSL Error when connecting PHPMyAdmin through SSL?

I'm running PHP 5.6.11 on Apache 2.2 with OpenSSL 1.0.1 on Ubuntu 12. I've sucessfully setup SSL in Apache and MySQL. Now I want to set up a PHPMyAdmin and connect it through SSL. I don't really need ...
1
vote
0answers
35 views

IIS 7.5 - Windows Authetication FQDN

Currently, I have to implement an auto login function for my mediawiki and I have enabled windows authentication on my IIS 7.5. It is working on localhost without any prompt. However, when I tried ...
1
vote
0answers
26 views

PHP remote network location not appearing

I'm having some difficulty getting PHP (or more specifically, Python via PHP) to recognize an important network location. I'm trying to make a simple website which will allow users to easily execute ...
1
vote
0answers
244 views

How to override “Content-Type” header with PHP script on Nginx

I have some php script which returns jpeg image(1x1 pixel) with content type "image/jpeg": // return image $image_name = 'img/pixel.jpg'; $image = fopen($image_name, 'rb'); header('Content-Length: ' ...
1
vote
0answers
48 views

Why won't php5-fpm start?

I've just installed php-fpm 5.6.8 but it won't start - start php5-fpm gives me a Job failed to start message. I've found several people with simalar problems, but the none of the answers seem to work ...