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
2
votes
2 answers
How do I disable functions on servers for particular directories?
I want to disable some functions on server to improve security of server. I followed these steps:
STEP: 1
Open php.ini file:
vi /etc/php.ini
STEP: 2
Find disable_functions and set new list as follows:
disable_functions=…

Himanshu Matta
- 77
- 1
- 2
- 8
2
votes
1 answer
White screen of death with PHP-FPM, no error logged
This is a tale of two different php files.
File 1 source:
test();
File 1 output:
Fatal error: Call to a member function test() on a non-object in
/wwwroot/sites/example.com/public/fatal.php on line 1
This is also printed to…

Vic
- 294
- 4
- 18
2
votes
3 answers
Update from PHP 5.3 to 5.4 on CentOS 6.3 while keeping Plesk
I need to update the servers PHP version, but when I try to remove the old php to install the new PHP 5.4 via yum it wants to remove the whole plesk suite which I want to keep.
I followed this guide https://serverfault.com/a/461418/155005 but it…

Johannes Klauß
- 123
- 1
- 7
2
votes
1 answer
Zend 1 on Ubuntu with MSSQL not working
Does anyone know how to solve the following issue? If not, does anyone know how to setup Zend 1 on Linux to communicate with msSQL server?
We get the following error in the nginx logs when trying to use freetds and the pdo_dblib adapter. We're…

user162321
- 21
- 2
2
votes
1 answer
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, installed to C:/php). None my php files are parsing -…

JXPheonix
- 176
- 7
2
votes
1 answer
Can't install php5-apc from dotdeb source in Debian 6
I can't install php5-apc:
~# apt-get install php5-apc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if…

A. Z.
- 125
- 2
2
votes
1 answer
Secure against c99 and similar shells
I'm trying to secure my server as much as i can without limiting my options,
so as a first step i've prevented dangerous functions with php
disable_functions = "apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg,…
user148366
2
votes
3 answers
Tips to backup ubuntu server
I have a Ubuntu server hosting a PHP5 / MySQL webapp. I also have another server (offsite) with a directory just for backups of my webapp server. Currently, I have a simple cron job which performs the following:
Copies /var/www to local backup…

Andrew Ensley
- 932
- 2
- 17
- 30
2
votes
1 answer
how can i disable safe mode for php on web server?
I am using wkhtmltopdf for making a pdf of a page. My code executes the shell to run a command using this wkhtmltopdf library. Everything works fine in my wamp server but when the code runs on my web-server it does not work and gives the following…

Bushra Shahid
- 123
- 1
- 1
- 5
2
votes
2 answers
Does apache 2.4 have a hard limit on connections somewhere?
Im using Apache 2.4 with prefork.
My MPM directives are set as follows:
MinSpareServers 200
MaxSpareServers 400
StartServers 200
ServerLimit 1300
MaxClients 1300
MaxRequestWorkers 1300
MaxRequestsPerChild…

Mark
- 211
- 3
- 7
2
votes
2 answers
What packages do I need to install to serve php pages from apache2 on Fedora 17?
This seems like it should be easy to answer, but as a php newbie, I can't find out what exactly I need to install.
Some sites recommend just httpd, php and php-common; other suggestions include php-fpm and mod_fastcgi, as well as a bunch of php…

chris
- 3,993
- 6
- 28
- 37
2
votes
1 answer
missing config files when compiling a php extension
I do the phpize..
When I reach the ./configure It tells me it can fins the php-config (configure: error: Cannot find php-config. Please use --with-php-config=PATH)
I assume it means a file named php-config
I do ./configure…

Itay Moav -Malimovka
- 233
- 1
- 4
- 17
2
votes
1 answer
Unable to install PHP-FPM on Apache (Failed to connect to FastCGI server)
I have been having problem installing php-fpm for use with apache2-mpm-worker. This is the guide that I am following.
According to the guide's Step 5,
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi…

Nyxynyx
- 1,459
- 11
- 39
- 49
2
votes
2 answers
Upgrading PHP from version 5.3 to 5.4.7
Quickly so to speak I have noticed this topic around, I have searched and there are plenty of solutions. However these solutions do not work for me, not only that but I'm intending to learn more about the Debian based OS.
Questions
I would like to…

Ash
- 471
- 1
- 4
- 14
2
votes
3 answers
php-fpm version 5.4 with nginx constantly restarting
I just upgraded my php version from 5.3.x to 5.4.x and since doing this - memory has dropped signifincantly! - however, I'm constantly getting these in my php5-fpm.log:
[18-Sep-2012 15:11:34] WARNING: [pool www] child 8981 exited on signal 11…

endyourif
- 121
- 5