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.
Questions tagged [php5]
865 questions
3
votes
1 answer
IP flooding despite mod_evasive?
I have an Apache 2 server running PHP5, prefork MPM, eaccelerator and modevasive.
My server sometimes goes down, apparently due to flooding from some IPs.
At least this is what I understand from running netstat. I get things like this :
tcp 0…

Eric
- 213
- 1
- 9
3
votes
2 answers
Configure php5-fpm for many concurrent users
EDIT: Added some configs and a clarification on how many is "many", as requested by anthonysomerset.
EDIT 2: Added fastcgi_cache to nginx config, as suggested by SleighBoy.
I run a server for a friend's site that now and then gets big spikes in…

jgabor
- 43
- 1
- 7
3
votes
1 answer
linux + apache + mpm_worker + mod_fcgid + php5
I am using VPS based hosting for a website and found that default apache2 + prefork + mod_php is too resource intensive for my VPS to achieve acceptable concurrency. (Eating RAM)
So I recently switched to apache2 + mpm_worker + mod_fcgid +…

Praveen
- 191
- 1
- 5
3
votes
4 answers
Why does my Linux Server not recognize "php" as a program?
I am in need of using PHP from the command line. When I type
php ....
The system says:
-bash: php: command not found
Now, I know for fact that PHP is up and running b/c it hosts my drupal site. I'm not sure how to find the program. I'm…

Scott
- 267
- 1
- 3
- 11
3
votes
4 answers
APC (PHP Cache) Uptime 0 minutes, not caching
My goal is to implement APC for opcode cache for a drupal 6 production site.
I have so far tested APC with several php files with and without including other php files with include_once.
Also tried to tweak the apc.ini values for shm_size,…

Jussi
- 31
- 1
- 2
3
votes
8 answers
Apache is not interpreting .PHP files
I recently downloaded OpenSUSE OS version 11.4 from the site to use it as a server..In order to do that I downloaded the server edition that has Apache/2.2.17 and PHP5 downloaded by default.....Ok till now it is fine
Now I started the Apache…

Ala ABUDEEB
- 131
- 1
- 1
- 4
3
votes
4 answers
How can I get PHP on my local computer system?
How can I test out PHP scripts on my local computer before uploading them? I'm a bit new to this so sorry for the simplicity. My domain provider's installed PHP version is 5.2.2 if that helps.
EDIT: Alright people keep your pants on I'm running…
Pete Allport
3
votes
4 answers
How to add a pool to FPM (nginx) without reload/restart fpm itself?
Im building an environment (on a ubuntu 10.04.02 machine) to handle a website with many (should support at least 1000) subdomains, each of them served by a different FPM pool, with a different user.
So nothing new; My problem is to create (and…

Strae
- 457
- 1
- 8
- 22
3
votes
2 answers
Setup PHP/MYSQL for chrooted jail (jailkit)
I'm running Ubuntu, with PHP5-FPM, mysql & Nginx
I've just setup a chrooted jail with jailkit. Now I need to work out how to setup my php and mysql to work within the jail.
Google search doesn't give me much, and there's no documentation for this on…

Emmanuel
- 347
- 1
- 9
- 20
3
votes
4 answers
apache with php fastcgi keeps going down
I have an apache2 server configured with MPM worker and php fast cgi. Lately the apache logs have been telling me that MaxClients is being reached frequently, even though it's already pretty high.
My server is now constantly going down, and I see…

Josh Nankin
- 722
- 12
- 27
3
votes
1 answer
Php: How to enable blowfish hashing on a debian server
I'm trying to make blowfish hashing available to php on a debian server.
Taken from the php manual on the crypt() function ( http://php.net/manual/en/function.crypt.php ), the following code checks for cryptographic functions...

Kzqai
- 1,278
- 4
- 18
- 32
3
votes
1 answer
PHP 5.3 Not Logging
I have set error_log = "/var/log/apache2/php_errors.log" and made sure errors were being logged. I have set the file to be owned by the www-data owner and group and even set the permissions to 777.
I have confirmed with phpinfo() that the error_log…

ParoX
- 302
- 1
- 7
- 21
3
votes
2 answers
Installed php-mcrypt but it doesn't show up in phpinfo()
I'm trying to install php-mcrypt on a CentOS 5.4 but while the extensions appears to be installed, there's nothing about it when I do a phpinfo().
For example, you can see below that php-mcrypt appears to be installed properly:
[root@... ~]# rpm…

Dean Harding
- 390
- 3
- 9
3
votes
5 answers
Find (or enable?!) php.ini on Ubuntu 10.10
Hiho!
Today I leave my comfort zone and want to edit my php.ini file and... guest what? It doesn't exist!
$ php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in:…

Thiago Belem
- 135
- 1
- 3
- 12
3
votes
1 answer
"Unable to initialize module" fileinfo php-pecl-Fileinfo.x86_64
I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum and pecl with no luck. Yum install fine "no error"…

Myers Network
- 31
- 1
- 2