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
2
votes
2 answers

Apache2: Server reached MaxClients setting, consider raising the MaxClients setting

I'm encountering issues on a dedicated Ubuntu 12.04 LTS (Apache/2.2.22), PHP 5.3 with APC. Every few hours I see this happen: [Fri Aug 17 15:36:51 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting This causes…
Ian
  • 335
  • 1
  • 3
  • 19
2
votes
2 answers

I have a fresh VirtualServer running Ubuntu 12.04, how do I get a LAMP server running?

Although I have an overview of running commands like apt-get install apache2 what I don't know is what order I should run them in to get a LAMP server running. Also, I assume I should create a /var/www to put my sites in there (want about 4 domains…
ed209
  • 187
  • 3
  • 8
2
votes
2 answers

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [pool www] child 19208, script 'blahblah.php'…
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
2
votes
1 answer

Possible causes of PHP /var/lib/php/session full error

i'm running into problem here with my PHP sessions and i have no clue how to fix this. >> df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/vglocal20120426-root00 36274176 32885458 3388718 91% / tmpfs …
fahmi
  • 23
  • 1
  • 3
2
votes
4 answers

solr php extension fails to run on newest Debian Wheezy

I'm trying to use the Solr PHP extension on the recently-upgraded Debian Wheezy. It installs both from PECL and from sources flawlessly but instead of giving me expected functionality it gives me this on every PHP run: PHP Warning: PHP Startup:…
hijarian
  • 851
  • 1
  • 10
  • 14
2
votes
2 answers

How to install latest version of imagick on centos 5.8 64bit using bash

How can I download and install latest version of imagick on centos 5.8 64bit using bash for php 5.4. >yum info php Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.ellogroup.com * epel: mirror01.th.ifl.net …
user57221
  • 297
  • 1
  • 9
  • 19
2
votes
2 answers

how to point apache to different version of php

I installed apache on ubuntu like so: apt-get install apache2 I initially had installed PHP by doing: apt-get install php5 That gave me php 5.3.x. Now I want to use the latest version php 5.4.x so I installed from source. Through the cli $ php…
user1218776
  • 131
  • 4
2
votes
2 answers

How can I override mod-php5's .php mapping to php4-cgi per VirtualHost or Directory?

I am running Debian Linux with apache2 and libapache2-mod-php5 5.3.3-7. I have one VirtualHost which requires php4. So I researched and compiled php4-cgi. However, I cannot seem to: Override mod-php5's mapping of .php in that vhost (or even…
g0h
  • 123
  • 1
  • 5
2
votes
0 answers

php5-geoip performance issue

I installed the php5-geoip module on Ubuntu 10.04 via apt-get install php5-geoip. I've updated the geocities.dat library The production server performance decreased and load average is soaring. Before the install it was less than 1 for the same…
Niro
  • 1,401
  • 4
  • 20
  • 36
2
votes
1 answer

Can I limit the number of php-cgi.exe that run per website on IIS 7?

I wasn't sure which was best to post in so I posted here and on http://webmasters.stackexchange.com I will delete the other if this post is more relevant here. I'm having a slight issue with memory issues on my web server. It is Windows 2008 RC2…
Anthony
  • 367
  • 1
  • 4
  • 14
2
votes
4 answers

can't access the site without WWW in the url

Possible Duplicate: Enable access without “www.” on Ubuntu I just got set-up my first website and bought my own first domain name , but problem has showed up. I noticed that i can enter my site only with WWW at first of the url , for example this…
Mor Sela
2
votes
1 answer

I cannot install APC

I have php 5.3.6 and ubuntu. I want to install APC. When I do the $ pecl install apc, I eventually get an error: In file included from /tmp/pear/temp/APC/apc.c:44:0: /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or…
Mikkel Rev
  • 147
  • 9
2
votes
4 answers

APC does not load when calling PHP from cli

After installing APC on CentOS 5 via pecl install apc, APC does not load when PHP is called from the CLI (when called from apache, it loads without any problems). The error I get is: root@server [~]# php PHP Warning: PHP Startup: Unable to load…
xaav
  • 191
  • 1
  • 1
  • 6
2
votes
1 answer

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php caching. This system runs four sites and shows…
user101613
2
votes
3 answers

Unknown Apache2 + PHP5 FastCGI 500 error .. caused by search engine bots?

My Ubuntu server is configured with Apache 2.2.8 and PHP 5.2.4-2ubuntu5.18 in FastCGI mode. Everything works well, except I am seeing 500 errors that only seem to come from bots accessing the server.. for example (access.log): x.125.71.104 - -…
Ryan D
  • 21
  • 2