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
5
votes
3 answers
Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?
I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts.
I have the following configured:
/etc/host.conf:
order hosts,bind
/etc/nsswitch.conf:
hosts: files dns
/etc/resolv.conf:
nameserver…

Damon Snyder
- 191
- 1
- 2
- 6
5
votes
4 answers
Ubuntu install php5-ffmpeg
When I try to install php5-ffmpeg:
apt-get install php5-ffmpeg
I get an error:
The following packages have unmet dependencies:
php5-ffmpeg : Depends: phpapi-20090626+lfs
As I understand my php5-ffmpeg was broken when I upgraded php from 5.3 to…

Victor
- 149
- 1
- 7
5
votes
1 answer
Apache 2.4 with PHP-FPM .htaccess redirection
I have Apache 2.4 set up with PHP-FPM on a server. To pass from Apache to PHP-FPM I use the following:
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/hosting_files/site.com/admin_secure/$1
"admin_secure" is the DocumentRoot in the vhost.
In…

nwalke
- 643
- 2
- 12
- 32
5
votes
5 answers
Install php-mssql in CentOS 6.2
I have a server running CentOS 6.2 with Plesk 10.4. When I SSH in, and try and install ms-sql extension it says "No package php-mssql available."
I can't seem to find much on Google for this, and I am a bit of a Linux noob. Can anyone offer any…

izip
- 221
- 1
- 3
- 8
5
votes
3 answers
How to configure Apache on Amazon Elastic Beanstalk
My PHP5.3 application is currently running on a Windows 2003 server running XAMPP 1.7.7
I've decided it will be better if I can get it moved onto the cloud, and Amazon Elastic Beanstalk looks like the easiest way to go. I'm starting with a 64bit…

Ian
- 261
- 1
- 2
- 11
5
votes
3 answers
Howto install php 5.2.17 on centos 6 x86_64
Does anyone know how to install php 5.2.17 on a 64bit centos 6 install? I've got a old legacy system that requires php 5.2.17, but centos 6 only supports php 5.3.
I've installed repo's such as webtatic, but had no luck at all.
Should I rather…

Conrad
- 151
- 1
- 1
- 4
5
votes
2 answers
Apache + PHP in paths with accented letters
I'm not able to run a PHP enabled web site under Apache on Windows XP if the path to DOCUMENT_ROOT contains accented letters. I'm not referring to the script file names themselves but to any folder in the path components.
I have this virtual host…

Álvaro González
- 245
- 3
- 7
- 25
5
votes
6 answers
smallest possible linux installation with apache
I want to setup a linux vm with apache and php and mysql support, which version of linux should I pick up.
I dont have a good bandwidth, preferably a smaller ISO of the installer is also appreciated.

John G
- 151
- 1
- 3
5
votes
1 answer
Correct PHP5 DLL for Apache 2.2?
I have installed Apache 2.2.14 (Win32) on a Windows XP machine and am trying to add the latest PHP module. I downloaded the ZIP file from here labeled "VC9 x86 Non Thread Safe" and extracted to my Apache directory. I then copied php5.dll to Apache's…

Nathan Long
- 1,545
- 7
- 22
- 38
4
votes
0 answers
Hostname provided via SNI and HTTP are different (AH02031 and AH02032 ) Error
I am using Apache 2.2 webserver on ubuntu Aws instance. My website goes down with below errors on error log,
[ssl:error] [pid 46283] AH02032: Hostname provided via SNI and hostname provided via HTTP are different
[ssl:error] [pid 50376]…

adminz
- 397
- 2
- 6
- 20
4
votes
2 answers
server reached pm.max_children setting (280), consider raising it
PHP-FPM process getting crashed in every few days due to reached pm.max_children, I have to manually start it to make the site up.
Server Configuration:
Total Memory: 7986M
CPU: 2 Core
1 PHP Process Taking: 22M
PHP-FPM Configuration:
pm =…

Irk
- 171
- 1
- 7
4
votes
2 answers
CentOS 7.2, PHP 5.4 - MySQL extension is missing
I'm trying to install a Wordpress blog on my Linux server (CentOS 7.2), using PHP 5.4 and MariaDB, but I keep running into this error:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Have been…

Sayem Khan
- 239
- 1
- 3
- 8
4
votes
1 answer
"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 I went on the server, there was huge disk IO and…

user268083
- 61
- 1
- 1
- 3
4
votes
0 answers
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 from PHP, IIS is sticking some HTML before the…

PeterBelm
- 141
- 1
4
votes
2 answers
PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so'
I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: cannot open shared object file: No such file or…

user3207586
- 43
- 1
- 1
- 3