Questions tagged [php5]

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.

865 questions
3
votes
2 answers

PHP session files are not being deleted (IIS 7)

Our website isn't displaying because the C:\Windows\Temp directory can't be written to, because C:\ is now out of space. The reason: tons of sess_230498230493240 [random hash] files. Like, thousands. php.ini is set to use C:\Windows\Temp for temp…
dallen
  • 249
  • 1
  • 2
  • 4
3
votes
3 answers

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to read what child say: Bad file descriptor…
Spacedust
  • 568
  • 5
  • 13
  • 28
3
votes
1 answer

Is there a way to dynamically forward subdomains in NGINX?

I've done all the googling I can, but no luck. I'm trying to figure out how to create a namespace for a user, say user.mysite.com, and have that redirect to his/her folder (mysite.com/user). Is there a way to make nginx forward all subdomains to…
3
votes
1 answer

PHP file not being interpreted by Apache on Red Hat

Running PHP 5.3.3 through Apache 2.2.15, on Red Hat (kernel 2.6) I have a test file in the root directory called test.php: When I point my browser to this file, it sends me this source uninterpreted. No errors are shown in the…
Monkey Boson
  • 193
  • 1
  • 5
3
votes
1 answer

How to monitor multiple sites using one copy of apc.php?

Regarding my particular APC setup: APC 3.1.9 PHP 5.3.3/fCGI/SuEXEC Apache 2.2.15 CentOS 6.3 I would like to keep only one copy of apc.php that can be accessed via any of the vhosts on the server. What's the recommended way to do this? It seems that…
Gaia
  • 1,855
  • 5
  • 34
  • 60
3
votes
2 answers

What are these zero-length files created by Apache in the tmp directory?

Any ideas on why apache (httpd) creates these files in /tmp? I'm on Redhat 5.5 and Apache 2.2, mpm-prefork. -rw-------. 1 apache apache 0 Aug 14 12:46 filec1puD5 -rw-------. 1 apache apache 0 Aug 14 12:46 fileKJqaih -rw-------. 1…
KM.
  • 1,786
  • 2
  • 18
  • 31
3
votes
2 answers

Enable coloured PHP CLI messages on console

How to enable coloured messages for PHP CLI on console (Mac OS X, latest PHP/Apache from MacPorts)? export CLICOLOR=1 export LSCOLORS=gxfxcxdxbxegedabagacad doesn't seem to be enough, all PHP CLI produced output is colourless on the console. Would…
Ain
  • 188
  • 7
3
votes
3 answers

Installing php5-imagick in Ubuntu 12.04 w/ ondrej packages results in dependency error

I've been trying to setup an Ubuntu 12.04 VM that is running PHP 5.4 with the imagick module. All the results I find on google say to use the ondrej packages, which for the most part works perfectly. All the major modules install and run exactly…
Twipped
  • 643
  • 2
  • 7
  • 10
3
votes
1 answer

How to disallow use of disable_functions in?

I'm obviously not the first one to have this problem, but I cannot not find an answer to this situation. I want to lock down PHP a bit, more specifically the use of disable_functions. The environment is CentOS 6.2/PHP 5.3.3 fcgid/Apache…
Gaia
  • 1,855
  • 5
  • 34
  • 60
3
votes
0 answers

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 time convert 'image.jpg' -resize "x60" -crop…
Stojko
  • 63
  • 2
  • 5
3
votes
3 answers

500 internal server error php long running process

I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings. PHP Config: max_execution_time: 3600 After around 10 mins ps…
3
votes
2 answers

$PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions

I am trying to setup my machine with pecl_http and memcache and in both cases, I get similar errors. This is on MAC OS X 10.7.3 (lion) and I also have XCODE installed on it. I also installed Zend Server community edition before running these…
krishna
  • 131
  • 1
  • 3
3
votes
2 answers

Couldn't find package php5-fpm

I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec. nginx is installed, and is successfully serving static pages like it should. Now I'm trying to install…
Whitey
  • 61
  • 1
  • 3
  • 4
3
votes
2 answers

Upgrading PHP 5.3.6 to 5.3.8 (Windows)

Is there an easy way to upgrade from one PHP maintenance level to another in Windows (i.e. 5.3.6 to 5.3.8)? Or is the only option to rename my current install folder, and install a fresh copy? I previously installed PHP using a flat ZIP file (no…
Jonah Bishop
  • 173
  • 1
  • 5
3
votes
1 answer

How can I protect files on my NGiNX server?

I am trying to protect files on my server (multiple types), with NGiNX and PHP. Basically I want people to have to sign in to the website if they want to access those static files like images. DropBox does it very well. Where by they force you to…
jnbdz
  • 927
  • 5
  • 24
  • 46