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
vote
0answers
10 views

Can't seem to install pdo-mysql extension on RHEL6 server

I'll try to be clear, I don't have a lot of server experience, but I'll tell you what I know: I'm trying to install Magento on a site, but I kept getting an error, after looking at the error logs, ...
0
votes
0answers
13 views

Siremis login say: can't open cmp file to write

I am installing siremis-4.1.0 on CentOS 6.5. I can configure Siremis. But when I pressed Siremis Launch button. My browser said: "can't open cmp file to write". My SELinux: # sestatus SELinux ...
1
vote
1answer
30 views

nginx 404 instead of 403 for empty directory

I have the following config for my nginx server: server { listen 80 default_server; server_name example.com www.example.com; root /var/www/example.com/web; index index.php ...
0
votes
2answers
21 views

How to restrict access to root to daemon user?

I have Apache 2.4 with PHP 5.5.14 installed on latest Debian. According to Apache security tips&tricks I've set my httpd.conf to this: <Directory /> AllowOverride none Require all ...
0
votes
1answer
18 views

PHP in apache2 doesn't write to database

I decided to reword and improve previous question which I closed, because it got pretty bad score and got burried because of that. So, I installed few days ago an Ubuntu 14.04 on my VPS (had 12.04 ...
0
votes
1answer
47 views

Wordpress site has repeated PHP out of memory error despite increasing PHP memory limit and confirming no RLimitMEM

Nearly every 4 minutes, I'm seeing the following out of memory error in the php error log: 01-Jul-2014 21:50:03 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to ...
-1
votes
0answers
19 views

Cannot install php5-dev in Debian?

I have a problem when I want to install php5-dev sudo apt-get install php5-dev the result is like this php5-dev : Depends: autoconf (>= 2.63) but it is not installable Depends: ...
0
votes
0answers
20 views

install ImageMagic library to php

When i try to sudo pecl install imagick i get this message: Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed And sudo ...
0
votes
0answers
19 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
votes
1answer
126 views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
0
votes
0answers
18 views

Set up svn for an existing project

I have an existing project "abc" with the path /home/abc. I want to set up a subversion repository in Ubuntu for this project. I have already installed subversion with the help the article "Create ...
0
votes
0answers
6 views

how to deal with php5-fpm variable appended with REDIRECT_

we are using php5-fpm on a debian wheezy (php5.4), since we used fpm (with libmodfastcgi), all variable added to any .htaccess is prepended with REDIRECT_ . is there any tips to avoid that ? thanks ...
0
votes
1answer
56 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 ...
0
votes
2answers
66 views

Install php53 on CentOS 5.10 without httpd dependency

I would like to install php53 on CentOS 5.10 64-bit without the httpd dependency. The reason being the production server has a custom compiled binary of a newer version of httpd. Is installing php53 ...
1
vote
1answer
124 views

Downgrading PHP 5.4 to 5.3 on CentOS 6.5?

I am trying to downgrade PHP from 5.5.8 to 5.3.x. I have tried this but it dint work for me. yum downgrade php The error I have got is Loaded plugins: fastestmirror, refresh-packagekit, ...
1
vote
1answer
57 views

Apache missing php module

I installed httpd v2.2.15 and php v5.5.13 via yum. I first noticed the problem when I tried to access my site and it displayed the PHP code. Then I discovered that there is no php module in ...
0
votes
0answers
117 views

Either, nginx+php-fpm bad config or nginx+php-fpm cannot handle high query?

I have wordpress installed in my server configured(hopefully with nginx+php-fpm+mariaDB). I am trying to import using wordpress importer a 1.5MB xml file. Everytime I try to upload it using the ...
0
votes
1answer
36 views

installed libapache2-mod_fastcgi on debian 7 - no php5-fcgi file

So I install Apache2 worker with libapache2-mod-fastcgi (non-free) on my Debian server. I found this snippet from the web, however, I don't have anything in my /usr/lib/cgi-bin/ folder. So how is my ...
0
votes
1answer
123 views

Apache 2.4 with PHP 5.5, LDAP in PHP not working

I'm working with a server running Debian 7.4 and it's currently running PHP 5.5.12 and Apache 2.2.22. I'm attempting to upgrade to Apache 2.4.9 so that I can enable Perfect Forward Secrecy. I ...
0
votes
1answer
110 views

Error compiling PHP 5.5.9 on CentOS 6.5 during make command

Here is the error message: cc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See ...
0
votes
1answer
87 views

Failed upgrade of PHP on Ubunutu 12.04, error: Sub-process /usr/bin/dpkg returned an error code (1)

I just tried to upgrade my version of PHP on Ubuntu 12.04 and now I have messed it up. First I did this: sudo add-apt-repository ppa:ondrej/php5-oldstable Then I did this: sudo apt-get update ...
0
votes
0answers
32 views

SuexecUserGroup not working in Apache 2.4

I have upgraded my PHP from version 5.3 to 5.4 via yum which requires upgrading Apache from version 2.2 to 2.4. After doing configuration, it turns out that the userid and groupid is still using the ...
2
votes
1answer
170 views

PECL APC install — ERROR: 'make' failed

I get the following error when running sudo pecl install apc. /var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update': /var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared ...
-1
votes
1answer
37 views

Can't seem to install PHP-FPM5?

I am reading some advice on the internet for a solution to another issue I have. It requires me to change the listen to /var/run/php5-fpm/php5-fpm.sock. I however don't have that folder.. I have a ...
0
votes
2answers
81 views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ...
-2
votes
2answers
137 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
38 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
126 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
28 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
43 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
50 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
96 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
114 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
37 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
124 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 ...
1
vote
1answer
219 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
129 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
66 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 ...
2
votes
1answer
94 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
82 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
79 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
423 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
57 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
386 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
54 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
1answer
600 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
435 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
24 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
361 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
20 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 ...