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
6
votes
1 answer
Can't seem to set AcceptPathInfo in Apache
I'm trying to migrate an ExpressionEngine site onto a new server and seem to have run into a roadblock. For the desired functionality, EE requires the AcceptPathInfo directive to be turned on, and for the life of me, I can't seem to get Apache to…

nageeb
- 224
- 2
- 12
6
votes
1 answer
error: Cannot find OpenSSL's centos 6.3 (install php)
I have a problem during the intallation of php 5.3.27.
When I launch the. / Configure
I get this error and does not complete the installation.
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking…

user201202
- 61
- 1
- 1
- 2
6
votes
2 answers
Apache consuming too much CPU and memory
I'm having some troubles with CPU and memory usage with an Apache Web Server.
We're running an Ubuntu Server 12.04 LTS on a Virtual Machine. Our server has following specs:
8GB RAM;
4 vCPUs (12ghz);
We configured the server to run a Drupal (7.23)…

humungs
- 265
- 3
- 4
- 8
6
votes
2 answers
Error installing APC in apache2 VPS with php-5.5.1
When I install APC:
pecl install apc
I'm getting this error:
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…

Manolo
- 552
- 2
- 8
- 23
6
votes
1 answer
How to install php-xml and php-mbstring on PHP 5.4.9-4?
I have added the PHP5 to UBUNTU 12.04
sudo add-apt-repository ppa:ondrej/php5 -y
and installed the PHP5
php5 php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear php5-dev php5-imap php5-mcrypt
However I…

Houman
- 1,545
- 4
- 22
- 36
6
votes
3 answers
Confirm that mysqli extension is not installed
Recently I discovered that mysqli extension is not installed in my server Centos version 2.6. I confirm it because I change the driver of db connection from mysqli to mysql and now works fine. So, is there another way/log to determinate this…

manix
- 165
- 1
- 1
- 8
6
votes
4 answers
Apache Never runs after configuring eAccelerator and FastCGI
I recently configured accelerator and fastcgi with apache using: http://secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html
Now my Apache never starts.
Logs shows:
Mon Jul 20 16:12:24 2009] [notice] ModSecurity for…

Shoaibi
- 809
- 1
- 10
- 28
6
votes
1 answer
Disable DNS Caching PHP
I need to get the latest A records of a DNS in a script. The script is doing some monitoring operations. The Default TTL of DNS record is 5 minutes, but the monitoring script is running every minute. I am using PHP's function dns_get_record to get…

Sparsh Gupta
- 1,127
- 7
- 21
- 31
6
votes
7 answers
What causes PHP pages to consistently download instead of running normally
I'm running a Ubuntu Server on a VM, to test out different web forum solutions. I have set up a ~/public_html/ to be accessible with the apache2 web server, and that works fine.
However when I go to a .php file on a browser (using my VM's…

Jon Cox
- 165
- 1
- 1
- 6
6
votes
3 answers
How do I enable the IMAP functions in PHP?
I have a LAMP box running Ubuntu, Apache 2 and PHP5 with Slicehost. I'm a bit new to all this sysadmin stuff (I'm primarily a web developer).
I need to use the IMAP functions in PHP, but they don't seem to be enabled according to phpinfo(). How do I…

Hellweaver666
- 165
- 1
- 1
- 4
5
votes
1 answer
Apapche + php-fpm + mysql too slow on powerful server
I'm trying to test load a LAMP application that my team developed and deployed on AWS ubuntu 14.04 using jmeter. We are using AWS CDN to serve static files, mysql and apache are on the same host.
When there is only one user doing stuff, the…

user388194
- 51
- 3
5
votes
1 answer
PHP 5.6 undefined function xml_parser_create
I have a new php 5.6 installation and get the following error from my application:
Fatal error: Call to undefined function xml_parser_create()
But libxml seems to be OK? phpinfo about libxml is:
libXML support active
libXML Compiled Version …

Andrea Schmuttermair
- 151
- 1
- 1
- 4
5
votes
3 answers
How to Upgrade to PHP 5.5 on Windows Server 2008
What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install.
PHP is already running on Windows Server 2008 R2 64 bit alongside IIS, just need to move on to a newer version of…

crjunk
- 101
- 1
- 1
- 3
5
votes
1 answer
Session variables not persistent in PHP5/Apache2/Ubuntu12
I have a website that uses session variables (in PHP) to know if the visitor is entering the website or not. If he's new, then I redirect him to the detected language. But if he's not new, you let him go wherever he wants to (even the pages in other…

Diego
- 145
- 1
- 6
5
votes
1 answer
Apache 2.4: mod_php vs php-fpm performance
There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm
However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both on Apache 2.4.x)?

OC2PS
- 539
- 2
- 9
- 21