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
213 views

How can I stop IIS 7.5 adding it's own redirect HTML to one issued by PHP?

I have an IIS 7.5 server configured with PHP 5.4.5 running through FastCgi. PHP is configured to return gzip encoded data if the client supports it. My problem is when I issue a 303 See Other header ...
2
votes
0answers
115 views

upload_max_filesize: php.ini or apache virtual host entry

I need a little perspective here as I am a bit confused. I was under the impression that adding a <IfModule mod_php5.c> php_value upload_max_filesize 200M php_value post_max_size 800M </...
2
votes
0answers
443 views

php5 not working with nginx 1.9.3

I am new to nginx, and having some trouble with php5. (I had it sorta working, but cant seem to get it working again.) There are 2 files I am woring with, that seem to control nginx, and php5-fpm. /...
2
votes
0answers
3k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
2
votes
0answers
872 views

SuexecUserGroup not working in Apache 2.4

I have upgraded my PHP from version 5.3 to 5.4 via yum which requires upgrading Apache from version 2.2 to 2.4. After doing configuration, it turns out that the userid and groupid is still using the ...
2
votes
0answers
490 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 ...
2
votes
0answers
451 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
296 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
60 views

PHP Script sending spams and mail.add_x_header not working

I've got my server hacked lately by some Php64 malware. Since then, I have found a lot of PHP files in my /var/www sub-folders. I am trying to delete each of these or clearing the files when some ...
1
vote
0answers
29 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
1
vote
0answers
84 views

Getting 404 Not Found while PHP works in background - Nginx

I have noticed that I get 404 - Not Found when calling a .php file even if the script works in background. The php file downloads a long Json and populates a db until I close the window. I am using ...
1
vote
0answers
18 views

Website trying to pull up a page from a different site

We've had an issue come up a couple times in the past month or so, and I don't know what is causing it. After the first time, we wrote it off as a fluke, but it happened again today, so I'm looking ...
1
vote
0answers
38 views

upgrading PHP from 5.3.3 to 5.4.40 breaks

I have a RHEL 6.7 server running: Apache: 2.2.15 PHP 5.3.3 getenforce => Disabled As is, its working fine. The web master for the server tells me that PHP-5.3 will no longer work with Facebook's API ...
1
vote
0answers
117 views

Installing an intermediate cert on Debian 8 for curl/openssl connections.

I am trying to contact a url via php's stream_socket_client() command which is failing with no error code or msg. Does this use openssl, curl or something else? The site uses https and works fine from ...
1
vote
0answers
790 views

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

I have been struggling for weeks with this error: (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function followed sometimes with this error: (104)Connection reset by ...
1
vote
0answers
92 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: FOO_DATABASE_URL=mysql://user:pass@host:...
1
vote
0answers
147 views

How do I troubleshoot an unresponsive Apache2 instance using 100% CPU?

I'm running a Debian 7 server with Kolab Groupware installed and not much else. It works perfectly fine normally, but randomly (always when I'm not looking, of course) the CPU usage will spike to 100% ...
1
vote
0answers
102 views

Apache2 on Debian freezes after some time

I have problem with apache server on Debian VPS. After some time (few hours) of work it freezes and no request is being processed (server allows connection but returns nothing). # apache2 -v ...
1
vote
0answers
264 views

environment variables set with SetEnv not passed to PHP

I'm setting some environment variables to get from the PHP $_SERVER global variable, but it does not work. The variables are not in $_SERVER and neither in the phpinfo() output. I have all modules ...
1
vote
0answers
320 views

200 OK blank page setting up Wordpress on restore test VM

I'm testing a partial backup of a frankly rather outdated (legacy, what can you do?) CentOS/Apache/MySQL/PHP/Wordpress server by restoring to a VM with a fresh copy of the relevant packages. After ...
1
vote
0answers
339 views

Apache 2.4 prefork, MySQL 5.6 and 2GB RAM

I think I'm having problem setting up Apache24 correctly. Apache seems to taking up to much RAM, and I'm not sure how to configure it. The FreeBSD server is using 50% of it's swap space. We are ...
1
vote
0answers
100 views

How to build PHP 5.5 with FastCGI?

I need to build my own PHP binary under Unix (because I need some SGBD option, that's an other problem). Currently my Apache server is linked to PHP throught CGI, but I read that it's not the ...
1
vote
0answers
125 views

Does OPcache work when PHP is running in CGI mode?

Does PHP 5.5s OPcache work with PHP running in CGI mode? Or does that even make sense, since it forks and kills PHP for each request?
1
vote
0answers
780 views

Strange requests with wrong server_name and port 25 in apache / php

If I try to telnet [myserver.mydomain.com] 25 I get Trying [ip number]... telnet: Unable to connect to remote host: Connection refused but still I get strange requests such as the following ...
1
vote
0answers
208 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
1
vote
0answers
312 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 enabled....
1
vote
0answers
184 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
191 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
225 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
2k 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' ...
1
vote
0answers
52 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
352 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
915 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
4k 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
266 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
782 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
729 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
202 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
92 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
219 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
31 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
60 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
533 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
485 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
671 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
135 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
392 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
853 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
1k 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
183 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.