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.

learn more… | top users | synonyms

-1
votes
0answers
7 views

longjmp causes uninitialized stack frame ***: /usr/sbin/httpd terminated

So I've been getting a couple of these: zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted zend_mm_heap corrupted Followed by: ...
0
votes
1answer
28 views

Unable to install php5.5 apcu module on Debian 6.0 server

Since APC is not supported by PHP 5.5 as an OP code cache I read that I can still use APC for user data which sounds good for me. It's called APCu and it should be compatible with the old APC. ...
0
votes
0answers
28 views

Upgrading PHP 5.3.3 to 5.4 on CentOS 6.4 (Transaction Check Error)

I am trying to upgrade PHP 5.3.3 to PHP 5.4 I have used this command: yum --enablerepo=remi,remi-php55 update --skip-broken -y However I got this error: Transaction Check Error: file ...
0
votes
0answers
41 views

10 Second Delay Before Page Begins Downloading

I currently have a Windows 2008 R2 Virtual Machine that I use for web hosting. It is controlled via Plesk 11, and most sites are configured to run PHP5.2, although I also have PHP5.4 installed. A ...
1
vote
1answer
39 views

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 ...
0
votes
0answers
34 views

CentOS 5.5 - php 5.1 upgrade to 5.3 + Drupal 7.26

I have a server running CentOS release 5.5 (Final) The server hosts a few Drupal(6.3) websites. I need to upgrade php from 5.1 to 5.3 as I need to install a new Drupal 7.26 site. so this is what I ...
0
votes
0answers
32 views

Running two different PHP fast-cgi instances on windows with OPCache enabled

I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache ...
0
votes
1answer
74 views

installing php-mysql on centos 6

I've installed MariaDB for my database and Nginx on my computer that running Centos 6 . when i want to install php-mysql driver i get this problem : # yum install php-mysql Loaded plugins: ...
0
votes
0answers
17 views

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 ...
0
votes
1answer
80 views

phpMyAdmin 404 error after upgrade to PHP 5.5 [closed]

Ubuntu 12.04, just upgraded from PHP 5.3 to 5.5.9 Before I could access phpmyadmin from any of the servers by just adding "/phpmyadmin" after the ip address. Websites are working. Eg. ...
-3
votes
1answer
33 views

Apache2 restart error on ubuntu [closed]

while i am trying to restart my apache2 configuration the system display this error on my ubuntu. apache2: Syntax error on line 263 of /etc/apache2/apache2.conf: Could not open configuration file ...
0
votes
0answers
121 views

Installing SSH2 on Windows Server using PHP5.5 VC11NTS

for the past few days i've been aching my brain on installing the SSH2 Connection on PHP. My current setup is VC11 Non thread safe, which I have downloaded the appropriate zip folders on the PECL ...
1
vote
2answers
166 views

php5-fpm optimization for long polling

I'm designing a chat application in PHP. I use nginx with php-fpm environment. The problem is, that after several clients connected, PHP scripts are getting very slow. I have just several (5-10) ...
0
votes
1answer
17 views

Apache 2.4 not reachable in windows server 2012

I'm using Apache 2.4 32bit with php 5 and sqlsrv library in windows server 2012. Sometimes this stops to receive connection and browsers waits for answer for long time. The only way to unlock it is to ...
0
votes
1answer
182 views

Updating php5-mysql for MySQL 5.6 under Debian 7

After a lot of troubles installing MySQL 5.6 for Debian 7 (with ISPConfig) (FYI, I followed this tutorial : http://xmodulo.com/2013/12/upgrade-mysql-server-debian-ubuntu.html) my PHPMyAdmin shows me ...
0
votes
0answers
17 views

FPM sometimes serving from wrong pool

I am using nginx + php5-fpm with multiple sites & pools. Every pool in the fpm is chrooted. Normally everything works as expected. But sometimes (every 1/20th request), especially if I requested ...
0
votes
1answer
32 views

Apache 2.2.22 - Random Vhost misrouting

I have a Apache 2.2.22 + PHP 5.4.9 running on a Ubuntu 12.04 I'm hosting three sites here. For that, i have 2 virtual host pointing to three differents folders. For example, this is one Vhost for ...
0
votes
1answer
87 views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
0
votes
0answers
65 views

Apache2 PHP5 reports glibc detected corrupted double-linked list

recently I began to notice the following error message in the apache error log. I'm running Apache 2.2.22 with PHP 5.4.4 on Debian 7.4. All installed from stable packages. The error occurs randomly, ...
0
votes
1answer
76 views

Apache2 + mod_fcgid + php stopped working after upgrade from Debian squeeze to wheezy

I've updated my server from Debian squeeze to Debian wheezy. On this server are several apache2 vhost which running php via mod_fcgid (I'm also using mod_suexec but this shouldn't be the problem). ...
0
votes
0answers
92 views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
0answers
37 views

FastCGI sent in stderr: “Primary script unknown” file not found

I have installed nginx and php (fpm). static files are being served fine. I created a simple info.php <?php phpinfo(); I browse to my url http://xx.xx.xx.xx/info.php and see a: File not found. ...
1
vote
0answers
75 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
0
votes
1answer
29 views

Please help me to configure my server to give high performance for wordpress [closed]

I am using 2GB ram,2 core XEON processor. I want to configure my Apache, MySQL and PHP for giving me high performance, as of now when i try to test my server with stress test , it is breaking down ...
1
vote
0answers
35 views

PHP scripts on live Apache servers consume more memory?

Lately, I've been spending time trying to optimise PHP code. I develop on localhost inside a VM and have been putting the memory_get_usage() at the end of scripts to help do this. The localhost uses ...
0
votes
0answers
48 views

how to install libwbxml2-utils and tnef

I need to install libwbxml2 for sync in group-office and tnef to view winmail.dat attachments in the email module. I'm running Centos 6.4 64bit with cpanel and PHP 5.4 I tried: root@server [~]# yum ...
0
votes
0answers
27 views

Is it safe to upgrade a current mysql CentOS 6.0 server to CentOS 6.5?

This server has specific configuration of php, it is also acting as a node in a DRBD cluster which holds a critical MYSQL database. I wanted to know if this procedure is safe and if there are any ...
-1
votes
1answer
217 views

High CPU Load, Crashes frequently [closed]

I have been struggling the past few days to keep my server up and running. The load averages hover around 2 and peak in the double digits until it crashes. Currently I am on a cloud VPS with WHM and ...
0
votes
1answer
126 views

How to install new PDO driver to existing LAMP install

How do I install a new PDO driver to an existing LAMP installation? I am using Amazon Linux (on AWS EC2), and have installed PHP 5.5 and MySql from the Amazon repositories. When I look at phpinfo I ...
0
votes
1answer
51 views

Unable to install PHP5-APC

When trying to install php5-apc, getting this error : root@x-fr-1:/etc/apt# apt-get install php5-apc Reading package lists... Done Building dependency tree Reading state information... Done The ...
1
vote
0answers
65 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
0
votes
2answers
460 views

nginx does not seem to load memcached module for php

I have an Ubuntu machine with nginx and memcache running, and I'm trying to use PHP with Memcached. I'm getting Fatal error: Class 'Memcached' not found. The ini file is loaded from ...
1
vote
1answer
54 views

Rewrite file extensions in NGiNX

I'm looking to show a file like domain.com/login instead of domain.com/login.php My NGiNX site config is: #02API server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; ...
1
vote
2answers
61 views

Unable to upgrade to PHP 5.4 on my VPS

I'm able to see in phpinfo.php that I've PHP5.4 installed for use. Now, I'm trying to install symfony2 via composer. When I begin installing composer, it gives me an error stating that php5.3 is ...
0
votes
1answer
273 views

“php5-fpm: unrecognized service” and other issues after reverting from PPA

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here http://askubuntu.com/a/109544 it seemed that ...
0
votes
2answers
53 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
0
votes
1answer
108 views

Location directive is not allowed nginx

Hello I am setting up php with nginix and I need to add some code to the /etc/nginx/nginx.conf file. My nginx.conf file currently looks like this user nginx; worker_processes 1; error_log ...
-2
votes
1answer
28 views

how to make already compiled php5 shared module to static in apache 2.2

I have compiled apache 2.2 with php5 and after uncommenting loadmodule line for php in apache conf file the php started but as a shared module so is there any way to compile it as static ?
0
votes
0answers
41 views

Tweak Nginx and PHP-FPM for memroy usage

I switched to nginx to help me with less memory on VPS and High and speedy performance at the same time. But Now I have a problem of memory usage? Even If I add more memory to my VPS at the end of a ...
0
votes
0answers
72 views

MAMP Pro PHP 5.5.3 install crashes apache

I have just installed php 5.5.3 into my mamp pro installation (in the bin folder) but since doing that, apache completely fails to start. Any ideas? [Wed Dec 11 20:03:26 2013] [notice] caught ...
0
votes
0answers
38 views

mysqlnd_ms + PLESK + MYSQL connect fails // replication split read/write failed

I am running a centos 6.4 server with plesk panel. I have successfully installed mysqlnd. php -i shows that its correctly using it. I have also installed pecl mysqlnd_ms to split reads/writes. I have ...
0
votes
2answers
113 views

how can I install PHP5 manually on Ubuntu

I have a new VPN with Ubuntu server 10.04 LTS which came with Mysql 5.1 installed, that was not supporting Barracuda file formats, so I manually installed and configured Mysql 5.6. Which works ...
0
votes
1answer
54 views

curl lot loaded after adding SFTP support

I installed Tartarus, and since my current curl didn't have SFTP support I've done this . Tartarus worked fine but I started to receive mails: PHP Warning: PHP Startup: Unable to load dynamic ...
0
votes
1answer
66 views

Verify PHP 5.3.27 has been patched for CVE-2013-4248

Server setup: CentOS release 5.10 (Final) WHM 11.40.0 (26) EasyApache 3.22.24 rev9999 compiled apache 2.2.26 and PHP 5.3.27 w/ SuHosin 0.9.33 I already had PHP 5.3.27 installed (since before most ...
0
votes
1answer
486 views

error: Cannot find OpenSSL's <evp.h> centos 6.3 (install php) [closed]

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... ...
1
vote
1answer
46 views

PHP MAIL() dsn status

Is there a way to get the dsn status of an email set with postfix, with php mail function or any other library ? . I could parse the log for the id and dsn status, but that won't be quite good for the ...
-3
votes
4answers
73 views

How to configure Tomcat6 to run Php5 [closed]

I am using Tomcat6 as a server and i want to run php5 application on tomcat . Is there anyway to configure tomcat6 to run php on it .? I am using Ubntu 13.10 to run tomcat6
0
votes
2answers
67 views

how to install php5-memcached in linux?

I've installed memcached server using yum. My server os info - Linux version 3.8.4-x86_64-linode31 (maker@build) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Mon Mar 25 16:00:34 EDT 2013 But when ...
0
votes
0answers
46 views

nginx + “filename part could not be saved, because the source file could not be read” error?

I am delivering ~ 100-300mb files using the following php code from my nginx setup : header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, ...
0
votes
0answers
639 views

“Cannot allocate memory” Using composer to install composer using fork from laravel git

Whenever I try to install a new laravel project, I receive the following error: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' ...