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
3answers
6k views

too many 408 error codes in access log

Apache access log is showing too many 408 error codes,nearly 400 per day. x-x-x-x - - [25/Apr/2012:22:43:06 -0600] "-" 408 0 "-" "-" there are around 400 of these kind of request from different ip ...
0
votes
1answer
1k 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 = ...
-3
votes
0answers
23 views

PHP zend_Operator.h compile error

I am trying to configure and compile PHP-5.5.19 and I keep getting compile errors to get a web server running on my Oracle M4000 running Solaris 10. I have apache2 running as well as MySQL. The ...
1
vote
1answer
21 views

Postfixadmin does not work after update “Cannot redeclare hex2bin”

I had recently updated my Debian wheezy (7.7) and forgot to check all systems after that. So, I can't really say what the versions were before I upgraded or at which point it broke. When I tried to ...
-2
votes
2answers
48 views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: ...
1
vote
1answer
192 views

Error after installing mysqlnd_ms

I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd. Then I do a sudo pecl install myslqnd_ms. This installs fine. I add the ...
4
votes
2answers
1k views

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

Mcrypt PHP extension fail on PHP 5.5 Amazon Linux

I'm installing laravel framework on my Amazon Linux Server, But once i compose and Laravel finish installing, laravel ask for Mcrypt PHP extension. then when i try to use command line to install ...
0
votes
1answer
64 views

how to create multiple sub domain in local host? [closed]

Using nginx and php I need to create multiple sub domain in local host. How i can make it happen? I am using ubuntu 12.04 andphp5 withnginx as webserver. i Have tried *.servername.com in my ...
0
votes
1answer
1k views

Can't connect to remote mssql server

I'm trying to connect to my remote mssql server for my GunZ private server, but for some reason i get the following error Cannot connect to 94.xx.xx.xx. ADDITIONAL INFORMATION: A connection was ...
1
vote
3answers
5k views

Update from PHP 5.3 to 5.4 on CentOS 6.3 while keeping Plesk

I need to update the servers PHP version, but when I try to remove the old php to install the new PHP 5.4 via yum it wants to remove the whole plesk suite which I want to keep. I followed this guide ...
3
votes
1answer
2k views

“Unable to initialize module” fileinfo php-pecl-Fileinfo.x86_64

I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum ...
2
votes
1answer
6k 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 ...
35
votes
7answers
67k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
1
vote
1answer
2k 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 ...
0
votes
1answer
870 views

Using Ubuntu 12.04 + Apache 2.4 + Php 5.5 : WebDav Possible

I had ubuntu 12.04 LTS + Apache 2.4 + PHP 5.4 installed via ondrej packages. I upgraded to PHP 5.5, and it seems now impossible to launch webdav extension for apache. The apache mod webdav can't be ...
1
vote
1answer
3k views

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to ...
1
vote
2answers
1k views

500 internal server error php long running process

I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings. PHP Config: ...
0
votes
1answer
85 views

Why am I getting 405 errors after swappinng domain names?

I had oldsubdomain.xxx.com. Everything was working fine. Windows 2008 R2 IIS 7.5 running php sites. Also had SSL running and used for all sites. So I needed to change to newsubdomain.xxx.com. ...
0
votes
1answer
51 views

Pass PHP5-FPM errors back to error page script? [closed]

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
0
votes
1answer
1k 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
1answer
883 views

How to fix Apache from crashing with PHP+Curl on an SSH request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
2answers
45 views

upgrading php 5.3.6 to 5.5 in ubuntu 12.04 LTS requires removing mysql?

I'm trying to upgrade php to latest version (5.5) my current php version is 5.3.6 bundled with ubuntu 12.04 LTS. The problem is I do not want to upgrade anything else just php but although I ...
0
votes
1answer
50 views

Can I compile PHP 5.2.17 on CentOS 6.5, then copy it to a similar server?

I have two CentOS 6.5 VMs/servers with Plesk 12 installed on both. On on of these servers, lets call it server 1, I have compiled PHP 5.2.17 - yes I know this is old etc. however two sites I host ...
1
vote
0answers
25 views

How to build PHP 5.5 with FastCGI?

I need to build my own PHP binary under Unix (because I need some SGBD option, that's an other problem). Currently my Apache server is linked to PHP throught CGI, but I read that it's not the ...
-5
votes
1answer
213 views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel [closed]

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
1
vote
1answer
53 views

Why was an older version of Nginx installed?

I installed Nginx and PHP5-FPM and have it all working, but I noticed that I have Nginx 1.2.1 installed and not the most recent stable version (1.6.x). I also noticed that PHP-FPM had PHP 5.4 and not ...
0
votes
1answer
85 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
1
vote
2answers
911 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) ...
1
vote
1answer
185 views

Batch MySql script stopped with error “(104)Connection reset by peer”

On my site I start a script that executes a batch process that imports into the Mysql database a lot of products (texts and images). I'm monitoring the query process from Phpmyadmin>Status and I ...
1
vote
2answers
111 views

Nginx server block not working

Disclaimer: Just to clarify, I'm completely new to Linux, but I've configured everything via google searches and personal research. I've got a Debian Wheezy server with LEMP stack that I intend to ...
0
votes
0answers
88 views

Creating /ping and /status pages on servers running PHP fastcgi (Not PHP FPM)

I have created /ping pages in the past for use with EC2 and ELB health checks with PHP FPM but not with Fastcgi. I have an autoscale setup which uses a semi pre-built Turnkey Linux PHP fcgi and nginx ...
1
vote
0answers
163 views

LAMP using ODBC to DB2

I have connected an openSUSE LAMP and an Ubuntu LAMP server to DB2 using ODBC. The openSUSE system we're using for a development environment, and the final deployment is to be on the Ubuntu system. ...
0
votes
0answers
40 views

file_get_contents extremely slow when executing on IIS 7

I just installed IIS with PHP on my Windows Server 2008 R2, and I've noticed when using PHP's file_get_contents() function, it loads extremely slow (7+ seconds). echo ...
0
votes
0answers
101 views

OpenSUSE/apache2/ispconfig3: phpMyAdmin is downloading php files instead of executing

I am currently running OpenSUSE v12.2 x84_64 with Apache2 and ISPConfig3. I am also running php5. when trying to visit: http://localhost/phpMyAdmin My web-browser is downloading the *.php files ...
1
vote
1answer
534 views

Upgrading to PHP 5.6 using Yum (REMI repo)

I would like to ask how to upgrade to PHP 5.6 on my CentOS machine using Yum + REMI repo. For example, I already use the REMI repo for everything. Now, after I change this line in ...
0
votes
1answer
309 views

APCu - NO HIT and / or MISS. What am I missing?

I just installed php-pecl-apcu: # yum info php-pecl-apcu Loaded plugins: amazon-id, priorities, rhui-lb 4 packages excluded due to repository priority protections Installed Packages Name : ...
1
vote
0answers
25 views

Does OPcache work when PHP is running in CGI mode?

Does PHP 5.5s OPcache work with PHP running in CGI mode? Or does that even make sense, since it forks and kills PHP for each request?
0
votes
1answer
1k 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 ...
1
vote
1answer
4k views

How do I get the latest FastCGI and PHP versions to peacefully coexist on IIS 6?

I have been going round and round trying to get any sort of PHP running on IIS 6. I somehow managed to successfully get version 5.1.4 running using the php5isapi.dll file. However, I want to upgrade ...
0
votes
0answers
73 views

php-mysqli extension fails as compilation

When I am trying to build the latest php5-mysqli port I get the following errors back: cd /usr/ports/databases/php5-mysqli && make MAKE_JOBS_UNSAFE=yes install clean ...
0
votes
1answer
81 views

Trying to install php5-fpm on Ubuntu 14.04, getting error

I am trying to install php5-fpm on Ubuntu 14.04 but I get an error I've never gotten before. E: Package 'php5-fpm' has no installation candidate
1
vote
0answers
55 views

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

Apache “No such file or directory” doesn't give me a file name

I'm using an Apache / Ubuntu config. After installing php-gd library, I am getting error messages in my /chroot/httpd/var/log/apache2/error.log file (/chroot/httpd/ being the "jail" in my chrooted ...
1
vote
2answers
22 views

fractions Display Error

I migrated my website to new server. However, i got the error with fractions Display. Here is the error: On the old server: I installed the same extensions for php. What am I missing? Thanks. ...
1
vote
2answers
936 views

How to downgrade php 5.5 to 5.4 on Ubuntu 13?

I'm using kubuntu 13.04 I've used a downgrade script to downgrade php 5.4 to 5.3 earlier, and now I deleted the repo and that script, removed php 5.3 and now when installing again, it's installing php ...
0
votes
1answer
358 views

How to install Apache and PHP by using only packages on FreeBSD?

Is there a way to install without compiling them through the ports? I installed Apache from packages and it works, but pkg_add -r php53 doesn't install mod_php5.so/libphp5.so. I experiment on FreeBSD ...
0
votes
1answer
100 views

atomic deployments with Nginx and PHP FPM

I'm trying to get atomic deployments, I don't want to lose/drop any requests. I deploy the code using Capistrano, classic situation were you have a 'current' dir that is a symlink to the latest ...
1
vote
1answer
119 views

PHP 5.5 on Ubuntu with php-mcrypt: Unmet dependencies

I have an ubuntu server running with PHP 5.5 $ php -v PHP 5.5.3-1ubuntu2 (cli) (built: Oct 9 2013 14:49:12) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend ...
0
votes
1answer
27 views

How to test if a particular version of php executable is available on a server?

An automatic upgrade Bash script requires PHP executable 5.3+, how do I ensure that is the case in the upgrade script? I'd like the script to quit and generate some message into the log when php 5.3+ ...