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
0answers
112 views

PHP 5.5.9 with Apache 2.2 on Windows

Is it possible to run PHP 5.5.9 with Apache 2.2 on Windows? The PHP 5.5.9 package only comes with the php5apache2_4.dll module, which clearly doesn't work with Apache 2.2. I'm having trouble finding a ...
2
votes
0answers
100 views

Apache server returns 404 after timeout

Making multiple requests to the server causes a 404 error after about 40-60 seconds. I am using JavaScript to request: example.com/test/location. Apache has mod_rewrite enabled that maps this to the ...
2
votes
0answers
314 views

AWS amazon SES stopped working suddenly

I am not able to send the mail from aws.amazon SES since from Monday (30-10-2012) previously it is working fine suddenly it stopped working. I got following is the errors A PHP Error was encountered ...
2
votes
0answers
394 views

Strange Apache/PHP&Perl behavior—error (70007)

I’m dealing with a particular strange situation: I have two Linux machines, one with Scientific Linux (v4.8) and one with CentOS (v6.2). On the SL machine I have a XAMPP distribution with Apache ...
2
votes
0answers
571 views

Mod_pagespeed with Zend Framework gives 404

I am expiering some problems with the Google's Apache mod_pagespeed module to combine css, js, etc. During the last months I developed a new version of our software based on Zend Framework. I just ...
2
votes
0answers
390 views

PHP mkdir() and move_uploaded_file() Permission Denied with 777

I am writing a PHP script for a client which will be installed on a server which I do not have back-end access to. I only have access to a particular folder and database. My script will upload files ...
2
votes
0answers
317 views

PHP + ImageMagick Performance Issues

Good Day, I have two environments: OpenVZ VPS and Pentium 4 local dev machine. They have all packages installed the same way. ImageMagick is compiled from sources without OpenMP support. When I run ...
2
votes
0answers
1k views

Yum install on CentOS 6.2

I can't install any php extension Epel repository enabled Yum is updated yum repolist shows repo id repo name ...
2
votes
0answers
480 views

Installation of Image Magick on Wamp

I did the following yet the image Magick extension doesn't get loaded I downloaded and installed the binary ImageMagick-6.7.5-3-Q16-windows-dll.exe at c:/imagemagick added to the httpd.conf file ...
2
votes
0answers
174 views

Setting PHP remote write permissions in IIS7

I have two windows server 2008 servers. One is a web server one is a file server. A php script runs on the web server and is supposed to write to the other server. I am getting a permissions error. I ...
2
votes
0answers
506 views

Long Polling Options: Nginx, PHP, Node.js

Also posted here: http://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js I'm designing a long-polling app to broadcast small changes very rapidly to, possibly, a large ...
2
votes
0answers
1k views

php-cgi.exe and/or php5.dll crashing - PHP 5.2.17, Win2k8 & IIS7

A specific part of my PHP script crashes randomly and I'm not sure why. The only difference on this page and the rest of the pages, is that I'm doing a PDO SQLSRV call. But 80% of the time there are ...
2
votes
0answers
535 views

Content Encoding Error on new IIS 7 server with PHP

I recently moved a PHP (Cake framework) development site from an IIS 6 (x86) server to an IIS 7 server (x64). The content is all the same and the URL rewriting works, but on the attempt to display the ...
2
votes
0answers
221 views

MagickWand PHP Module DDL for Windows

I'm struggling with enabling MagickWand as a PHP extension which is ran on Windows (Apache). I am running PHP 5.3.x. (I need namespaces). I have been able to install MagickWand on PHP 5.2.4 but not ...
2
votes
0answers
737 views

PHP: Call to undefined function mb_strlen() - on custom compiled PHP with mbstring enabled

I have this custom compiled PHP (v5.3.3) with the following extensions enabled (via configure): ./configure --prefix=/usr/local/php5.3.3 --with-config-file-path=/usr/local/apache2/conf ...
2
votes
0answers
323 views

Getting regular PHP updates in Ubuntu Lucid

So we have a few servers that are running Lucid and will be running apache/php. We would like to be able to run PHP scripts as different systems users as well as have customized php.ini files for ...
1
vote
0answers
20 views

command line alias inside php exec

Is there any possibility to define shell alias for commands executed via php system, exec etc functions? I'm running multiple versions of PHP using fastcgi and I need to run the right version of PHP ...
1
vote
0answers
77 views

Apache SSL redirect loop

We are trying to redirect our site from http to https only. Everything we have tried in .htaccess has resulted in a redirect loop. If we manually type the "https://" in front of the url, our page ...
1
vote
0answers
116 views

After compiling PHP, I get mod_fcgid: error reading data from FastCGI server

I'm trying to add multiple PHP version in Plesk 12. Switching my domain to the new version PHP 5.4.29 result in this error: (104)Connection reset by peer: mod_fcgid: error reading data from ...
1
vote
0answers
32 views

APC has no system cache entries

I have 2 web servers to provide PHP websites. One server is : Apache + PHP-FPM + APC The other : Apache with MPM-itk + APC. For both of these servers, APC has no cache system entries but only users ...
1
vote
0answers
65 views

PhpMyAdmin Hangs On MySQL Error

I'm currently running PhpMyAdmin 4.0.10 (the latest version supporting PHP 4.2.X) on my Amazon EC2 connecting to a MySQL database on RDS. Everything works perfectly fine except actions that return a ...
1
vote
0answers
18 views

PHP APC cannot increase cache above 32m

apc.shm_size I set it to 128M I have also try 128 (without M) But It always 32M :( /proc/sys/kernal/shmmax is set to 134217728
1
vote
0answers
45 views

Rackspace Cloud Server / DB - getaddrinfo failed

I recently migrated my MySQL instance from my debian server to a cloud database server at rackspace. A couple times of day since then, I notice in the log files that we have the following error: PHP ...
1
vote
0answers
112 views

PHP Files being downloaded instead of displayed in browser

I created a VPS using Nginx and I tried to display the php info with: <?php phpinfo(); ?>. Instead, the browser asks me to download the php file, and it's not parsed either. This happens only ...
1
vote
0answers
36 views

PHP define in config file does not update with new value

I have just installed a new system and set up the configuration file (DB settings). the conf' file has the following definitions: define('DB_USER', 'user'); define('DB_PASS', 'pass!'); It all works ...
1
vote
0answers
115 views

Can't load Mongo extension in php.ini

I'm having some issues while try to load mongo.so extension at php.ini. Below is what I tried: Compile the mongo extension by following the documentation at php.net for MongoDB site. This resumed ...
1
vote
0answers
41 views

IIS rewrite rules for subdomain and nonexistent files

Setup: I know how to use a rewrite rule to route urls to a routing script such as router.php. I know how to use a rewrite rule to route urls containing a subdomain to subfolders in the document ...
1
vote
0answers
18 views

Nginx-watch script - issue with inotifywait not seeing changes

I'm using Nick's excellent nginx-watch script to monitor an nginx.conf file in www root so that it reloads a couple of wordpress plugin nginx configurations automatically as soon as they change (BWPS ...
1
vote
0answers
75 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
0answers
35 views

include_path not working in httpd.conf

I have a virtual host set in httpd.conf. The virtual host resolves properly, but it is ignoring my php_include path directive: php_value include_path .:/var/www/xxx/library/ The path works, I ...
1
vote
0answers
90 views

Elastic Beanstalk w/ RDS and PHPmyAdmin

I'm trying to configure a Drupal CMS on my new Amazon EC2 server with Elastic Beanstalk PHP. I also have MySQL configured for my RDS database. I want to get PHPmyAdmin running for use with Drupal. I ...
1
vote
0answers
54 views

Web App login redirecting to homepage on AWS Elastic Beanstalk

I've hosted my application on AWS Elastic Beanstalk. The application behaves itself in a local environment and shared hosting environment, but when on AWS it refuses to login. Instead it redirects ...
1
vote
0answers
155 views

Wordpress SFTP auto update issues

I have run into an issue with WordPress and ssh. Essentially,I am trying to enable auto updating with Wordpress over SFTP. I have followed the directions on This thead on DigitalOcean.com up I have ...
1
vote
0answers
50 views

PHP file load time, perhaps related to NFS?

The Problem I'm attempting to diagnose a performance issue on a Drupal website I'm developing. In the morning, when the site has seen no traffic (not even a cron run) for over 8 hours, the homepage ...
1
vote
0answers
38 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
1
vote
0answers
129 views

Apache with 503 Error and laggs

I've noticed that sometimes a page from a customer totally laggy at all or nothing builds (Error 503 appears), WHILE other side continue to run the admin interface also is still online. My provider ...
1
vote
0answers
67 views

Request exceeded the limit of 100 internal redirects due to probable configuration error

This error only seems to happen to a few pages. Others will load just fine, some slower, but others will error out: # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ...
1
vote
0answers
331 views

PHP-SOAP extension is not loaded

I am trying to install Opencats.For that it is required to enable soap.I have enabled Soap. soap Soap Client => enabled Soap Server => enabled soap.wsdl_cache => 1 => 1 ...
1
vote
0answers
52 views

intermittent AWS Linux AMI server error “File does not exist: /var/www/html/var”

Intermittent error "File does not exist: /var/www/html/var" from all areas of a Zend MVC app resulting in pages occasionally failing to load - when normally they load perfectly. Our Set-up MVC app on ...
1
vote
0answers
37 views

Settings for php to solve empty session?

I have my php running on Centos 6.5 (Final). I have problem where one of my potential customer who is sitting remotely having upon login and redirect the sessions gets empty.He even tried on other ...
1
vote
0answers
851 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' ...
1
vote
0answers
170 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
1
vote
0answers
151 views

Why mongo pecl module looses its connection after Primary stepDown?

I run an Apache 2.2.22-13 with pecl module "mongo 1.4.4". It connects to a MongoDB 2.4.6 sharded cluster. When a stepDown occurs, the mongo module seems to stay on the mongod node which was the ...
1
vote
0answers
36 views

Apache, php, maven and me—pemissions…

I have setup a local Apache2, with PHP and mysql. I wrote a maven build script to deploy my page on that local server. All that is working fine except for one thing: When I instruct maven to clean up ...
1
vote
0answers
55 views

Using SSMTP with PHPMailer

I'm not sure if this need to be posted here or on StackOverflow because I'm not sure if the problem is with PHPMailer or SSMTP. I'm having some trouble sending emails using PHPMailer and SSMTP. I ...
1
vote
0answers
97 views

How to properly downgrade PHP 5.5 to 5.3 on Centos 6.4

I installed Centos_6.4 and have about 2 weeks work into setting up my environment and servers on it. So I get to my Kayako support suite and it wont install and they say I have to use PHP 5.3 I have ...
1
vote
0answers
130 views

cURL not loading on Ubuntu 12.04

I have come across a very weird problem. My cURL PHP extension doesn't seem to be running. I have installed cURL using this command: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl And ...
1
vote
0answers
49 views

Long running Apache processes after Php execution completed

Apache/2.2.3 PHP 5.2.5 CentOS 5 Trace Trace details image start php run script run kill (registered Php shutdown function) apache still runs for long time, unknown why This does NOT happen ...
1
vote
0answers
541 views

Apache 2.4 not closing connections

I have an Apache 2.4 webserver that runs on a micro instance of AWS with CentOS. The apache is running PHP with a prefork MPM module. The server is accessed via an Amazon load balancer which has a ...
1
vote
0answers
69 views

Handling multiple server blocks in nginx configuration

I am working on setting up a proxy server for my application.The use case is I want a specific set of requests to be redirect to say abc.com and rest of the request to be redirected to xyz.com. Eg:If ...