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

-2
votes
2answers
814 views

php 5.4 not working after upgrade from 5.3 to 5.4 on centos 6.5 [closed]

Before the update php 5.3.3 worked fine, now the apache offers to download php sites instead of processing them. What I did: I used the REMI repo to get php 5.4 for centos 6.5. I think that all steps ...
1
vote
0answers
99 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
0
votes
1answer
2k views

.php files not working with AddHandler - Apache 2.4

I am having an issue with Apache 2.4 configuration with PHP5. I have got this: <Directory / > Options +ExecCGI AddHandler cgi-script .cgi Action backButton /backButton.cgi AddHandler ...
0
votes
0answers
50 views

Debian 7, Apache2, PHP w/ FCID - what am I doing wrong?

A lot of the documentation and search results came from those who have multiple users/sites and not sure if my situation applies to theirs or if it will open it up more than needed. My situation: ...
0
votes
1answer
252 views

How to process phplist batchs to send emails simultaneously

Is it possible to configure phplist to send newsletters simultaneously in 3 or more batches through different smtp servers or how can i achieve this. Example lets say: I have total of 30,000 ...
0
votes
0answers
329 views

How to install gearman on Ubuntu12.04 and php54?

I am trying to install gearman on my Ubuntu12.04 machine. I have upgraded php to version 5.4 via the ppa php5-oldstable. I downloaded the source of gearmand-1.1.12 and compiled it and installed it ...
-1
votes
1answer
340 views

SSLv2_server_method apache php5 error

I tried to load the php module in my apache server and this error came up httpd: Syntax error on line 152 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: ...
0
votes
1answer
442 views

nginx - CPU usage goes to 100% and php5-fpm stops when processing concurrent requests

I am processing php file with nohup command so that it should run in background. But when I process more than 20 nohup commands then cpu usage goes to 100% and php5-fpm crashes results in connect() ...
0
votes
1answer
322 views

Installing php5-fpm but missing www.conf on ubuntu

I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory. In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d Command ...
0
votes
0answers
477 views

POST request body fails to get to PHP

I've seen the following issue on Apache 2.2/PHP 5.3 and on Apache 2.4/PHP 5.4 I have encountered an rare issue where POST requests (small, under 1k) to a web server seem to be getting truncated ...
2
votes
1answer
1k 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. ...
2
votes
1answer
1k 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
226 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
176 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
1k 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: ...
3
votes
0answers
385 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
2k 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
108 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 ...
1
vote
1answer
3k 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
1k 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
60 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
1k 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 ...
1
vote
1answer
44 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
130 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
2k 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 = ...
1
vote
1answer
777 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). ...
4
votes
2answers
11k 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
921 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
148 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
47 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
131 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
35 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
622 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
2k 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
2answers
504 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
158 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
3k 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
184 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
111 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
2k 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
89 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
2k 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
55 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
2answers
638 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
217 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
103 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 ...
5
votes
1answer
5k 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
98 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
250 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
225 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 ...