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
1k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
2
votes
0answers
295 views

PHP 5.2, Apache 2.2, Windows 8, PHP not parsing

I have an apache httpd 2.2 installation on windows 8 (using the installer, installed to C:/Program Files (x86)/Apache Software Foundation/Apache2.2) and a php 5.2 installation (using the .zip, ...
2
votes
0answers
295 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
182 views

php5-geoip performance issue

I installed the php5-geoip module on Ubuntu 10.04 via apt-get install php5-geoip. I've updated the geocities.dat library The production server performance decreased and load average is soaring. ...
1
vote
0answers
75 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
1
vote
0answers
34 views

PHP scripts on live Apache servers consume more memory?

Lately, I've been spending time trying to optimise PHP code. I develop on localhost inside a VM and have been putting the memory_get_usage() at the end of scripts to help do this. The localhost uses ...
1
vote
0answers
64 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
0answers
31 views

Installation of nagios failed due to ucf and file acls

While installing Nagios give me this error and hence the packages left unconfigured on my server. I looked for some help but they don’t tell me the exact solution. Does any one have a fix. cp: ...
1
vote
0answers
127 views

nginx/php + zurmo, rewrite or internal redirection cycle

I am trying to get Zurmo CRM running on my Debian Jessie system on localhost. I couldn't find an example nginx config and the application needs to rewrite URLS, which I have done wrong. I also use ...
1
vote
0answers
105 views

Trying to compile phpredis on a mac using phpize54

I installed php 5.4 using mac port. I then git cloned the phpredis repository ( https://github.com/nicolasff/phpredis ). Then, I execute these commands: phpize54 ./configure make && make ...
1
vote
0answers
275 views

IIS server restart required to convert web pages to PDF using COM

Have an annoying issue with our production web servers. Windows 2008 R2 x64, fully patched, using php 5. Also installed is ABC PDF, php will call the COM object to convert a web page to PDF and ...
1
vote
0answers
120 views

pecl_http : Apache is unable to load http.so

I'm using MAMP 2.1.3 with Mac OS 10.8.3. I've just installed the pecl_http extension with Mac Ports + PECL. The http.so exists and is in (correctly set in php.ini) : ...
1
vote
0answers
906 views

PHP 5.4.13 “procedure entry point could not be located in the dll php5ts.dll”

I did a manual install of PHP 5.4.13 on Windows Server 2008 R2 on D drive. Today I tried to run a script directly using php.exe through the command line but got two error pop up windows: The ...
1
vote
0answers
106 views

LAMP using ODBC to DB2

I have connected an openSUSE LAMP and an Ubuntu LAMP server to DB2 using ODBC. The openSUSE system we're using for a development environment, and the final deployment is to be on the Ubuntu system. ...
1
vote
0answers
369 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
0answers
375 views

Soap client in Centos6, zval_property_ctor in Unknown on line 0

We're having such a big problem in our Centos server in order to have working the SOAP client of PHP 5.3.3. One of our customers reported us that they were having problems to consume some webservices ...
1
vote
0answers
112 views

New Windows Server 2008 R2 WIMP running slower than Windows Server 2003

We recently upgraded a WIMP server from Windows Server 2003 (32 bit) to Windows Server 2008 R2 (64 bit). The new server has significantly better hardware than the old server, yet many processes take ...
1
vote
0answers
62 views

PHP5-CGI taking up too much load, second is MYSQL, third is APACHE

I recently moved to a new server and I am experiencing very high PHP5-CPI. I am running a forum that holds up to 450 people every 20 minutes. My forum ran very well a month a go for the longest time ...
1
vote
0answers
163 views

How to optimise apache2 with php5-cgi

I have a debian squeeze running with apache2 and php5-cgi. Please see the following stats from my munin: http://imageshack.us/photo/my-images/545/multipscharts.png/ I am running these per-process ...
1
vote
0answers
17 views

Strange behaviour of PHP's virtual() when Apache's mod_negotiation comes into play

First: if acting separately, PHP's virtual() as well as Apache's mod_negotiation work fine. But I've got trouble when virtual() refers to a file which needs negotiation (e.g. Multi-Lang). Easiest ...
1
vote
0answers
151 views

Error after installing mysqlnd_ms

I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd. I then do a "sudo pecl install myslqnd_ms" This installs fine. I add the ...
1
vote
0answers
52 views

nginx+mysql5 loadtesting configuration strangeness

i am trying to setup a new server running on debian6 and trying to make it work smooth under load. i ve used a wordpress site as a test object, and tried the configurations on http://blitz.io. when i ...
1
vote
0answers
299 views

Parsing files as PHP with AddHandler in different environments

I'm now so confused with how files should be parsed as PHP with AddHandler in different environments. local server: Windows 7 / Apache2.2 / PHP 5.2 (thread safe) AddHandler x-httpd-php .php ...
1
vote
0answers
256 views

IIS + PHP + Page with lots of images = Intermittent 403 errors

I am using an up-to-date Server 2008 R2 Datacenter, running IIS 7.5 and PHP 5.3.6/FastCGI On PHP pages with lots of images (60+), some of the images fail to load It is not always the same images-- ...
1
vote
0answers
326 views

PHP5 OCI8 FreeBSD

I'm running a FreeBSD server with Apache and PHP 5.3. I'm trying to get the Oracle DB extension (OCI8) running with PHP but I can't find a port or anything for it. Half of the Internet says it's no ...
1
vote
0answers
96 views

Request server url without explicit file name doesn't parse index.* files

I've set up a new vServer with apache2, php5 and mysql. When I enter my server url (e.g. example.org) in the browser it starts downloading the index.php instead of parsing it. But when I request a ...
1
vote
0answers
243 views

Web Platform Installer PHP Updates

I have installed a version of PHP with the Microsoft Web Platform Installer v3.0. In this case it was version 5.3.10 and since then version 5.4.0 has come out. How do I use the Microsoft Web ...
1
vote
0answers
484 views

After a PHP crash IIS 7.5 stops responding requests until the whole service is restarted

I have a standard PHP5.3 install under w2k8r2/IIS7.5 (with and without WinCache as I've tried both options). The events happens as follows: 1) I get an error on the Application event log that says: ...
1
vote
0answers
778 views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
0answers
140 views

How can I make sure PHP is using TBinaryProtocolAccelerated

How can I make sure PHP is using TBinaryProtocolAccelerated and not TBinaryProtocol as the protocol? I am using PHP5 in Ubuntu Server.
1
vote
0answers
403 views

How to configure PHPStorm to debug on IIS

I installed PHP 5 on IIS on a Windows 7 64 bit machine using the Web Platform Installer. I am using PHPStorm as my PHP IDE but cant find any documentation on how to get debugging to work. PHPStorm ...
0
votes
0answers
25 views

Upgrading PHP 5.3.3 to 5.4 on CentOS 6.4 (Transaction Check Error)

I am trying to upgrade PHP 5.3.3 to PHP 5.4 I have used this command: yum --enablerepo=remi,remi-php55 update --skip-broken -y However I got this error: Transaction Check Error: file ...
0
votes
0answers
40 views

10 Second Delay Before Page Begins Downloading

I currently have a Windows 2008 R2 Virtual Machine that I use for web hosting. It is controlled via Plesk 11, and most sites are configured to run PHP5.2, although I also have PHP5.4 installed. A ...
0
votes
0answers
34 views

CentOS 5.5 - php 5.1 upgrade to 5.3 + Drupal 7.26

I have a server running CentOS release 5.5 (Final) The server hosts a few Drupal(6.3) websites. I need to upgrade php from 5.1 to 5.3 as I need to install a new Drupal 7.26 site. so this is what I ...
0
votes
0answers
28 views

Running two different PHP fast-cgi instances on windows with OPCache enabled

I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache ...
0
votes
0answers
15 views

Can't seem to set AcceptPathInfo in Apache

I'm trying to migrate an ExpressionEngine site onto a new server and seem to have run into a roadblock. For the desired functionality, EE requires the AcceptPathInfo directive to be turned on, and for ...
0
votes
0answers
104 views

Installing SSH2 on Windows Server using PHP5.5 VC11NTS

for the past few days i've been aching my brain on installing the SSH2 Connection on PHP. My current setup is VC11 Non thread safe, which I have downloaded the appropriate zip folders on the PECL ...
0
votes
0answers
17 views

FPM sometimes serving from wrong pool

I am using nginx + php5-fpm with multiple sites & pools. Every pool in the fpm is chrooted. Normally everything works as expected. But sometimes (every 1/20th request), especially if I requested ...
0
votes
0answers
63 views

Apache2 PHP5 reports glibc detected corrupted double-linked list

recently I began to notice the following error message in the apache error log. I'm running Apache 2.2.22 with PHP 5.4.4 on Debian 7.4. All installed from stable packages. The error occurs randomly, ...
0
votes
0answers
88 views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
0answers
35 views

FastCGI sent in stderr: “Primary script unknown” file not found

I have installed nginx and php (fpm). static files are being served fine. I created a simple info.php <?php phpinfo(); I browse to my url http://xx.xx.xx.xx/info.php and see a: File not found. ...
0
votes
0answers
47 views

how to install libwbxml2-utils and tnef

I need to install libwbxml2 for sync in group-office and tnef to view winmail.dat attachments in the email module. I'm running Centos 6.4 64bit with cpanel and PHP 5.4 I tried: root@server [~]# yum ...
0
votes
0answers
27 views

Is it safe to upgrade a current mysql CentOS 6.0 server to CentOS 6.5?

This server has specific configuration of php, it is also acting as a node in a DRBD cluster which holds a critical MYSQL database. I wanted to know if this procedure is safe and if there are any ...
0
votes
0answers
40 views

Tweak Nginx and PHP-FPM for memroy usage

I switched to nginx to help me with less memory on VPS and High and speedy performance at the same time. But Now I have a problem of memory usage? Even If I add more memory to my VPS at the end of a ...
0
votes
0answers
72 views

MAMP Pro PHP 5.5.3 install crashes apache

I have just installed php 5.5.3 into my mamp pro installation (in the bin folder) but since doing that, apache completely fails to start. Any ideas? [Wed Dec 11 20:03:26 2013] [notice] caught ...
0
votes
0answers
38 views

mysqlnd_ms + PLESK + MYSQL connect fails // replication split read/write failed

I am running a centos 6.4 server with plesk panel. I have successfully installed mysqlnd. php -i shows that its correctly using it. I have also installed pecl mysqlnd_ms to split reads/writes. I have ...
0
votes
0answers
46 views

nginx + “filename part could not be saved, because the source file could not be read” error?

I am delivering ~ 100-300mb files using the following php code from my nginx setup : header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, ...
0
votes
0answers
633 views

“Cannot allocate memory” Using composer to install composer using fork from laravel git

Whenever I try to install a new laravel project, I receive the following error: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' ...
0
votes
0answers
34 views

apache performance improvements and maxclients

I know this has been asked a few (thousand) times around the internet but I was hoping someone whose in the know might be able to comment on my particular setup. I have a web server hosting one site ...
0
votes
0answers
76 views

How can I use php 5.4's Session Upload Progress with nginx?

Is there any way I can use php 5.4's Session Upload Progress with nginx enabled?