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
44 views

Configuring openldap/PHP LDAP against “signed” LDAP connections with Active Directory

This may sound like a stupid question, and maybe it's already been answered, but I can't find a definitive answer anywhere, so I thought I'd ask. When someone enables "Domain controller: LDAP server ...
1
vote
0answers
83 views

suPHP won't allow access to PHP sources

I am running suPHP with Apache2 and PHP5.4 on a Debian Wheezy. I found out that .phps files won't be showed and access will result in a 403 page. The same file with equal chmod/chown/chgrp will be ...
1
vote
0answers
139 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
1
vote
0answers
95 views

can't find mediawiki after changing apache listening port on ubuntu server

I had mediawiki installed and apache listening on port 9997 accessed via example.com:9997/mediawiki Mediawiki is under /var/www/html/mediawiki. So I wanted to change it to port 80. I changed ...
1
vote
0answers
80 views

Unable to load dynamic library pdo_mysql.so

I installed php55-* because I needed to upgrade an SDK in my app (which ended up needing PHP 5.4 or later). It seems that pdo_mysql.so cannot be loaded: PHP Warning: PHP Startup: Unable to load ...
1
vote
0answers
188 views

HHVM RepoAuthoritative Unable to stat file

My magento installation is hosted on a VPS running CentOS, Nginx, MariaDB and HHVM, which works without any problem. However, I am now trying to pre-build the RepoAuthoritative file for my ...
1
vote
0answers
183 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
1
vote
0answers
128 views

CentOS - Files to Copy to get Consistent MIME-type detection in PHP

I have the same website (written in PHP) running on two servers. I've tried uploading the same exact file to both servers through the website. On one of the servers, the file's mimetype is detected as ...
1
vote
0answers
135 views

Understanding & Resolving Web Server Exploits

We recently had someone contact our company pointing out that we had numerous security threats that could be used to exploit our systems. They were nice enough to provide a list of these to which we ...
1
vote
0answers
187 views

Simple php page gives 404 error in Magento

For testing purpose, I created a folder and created a test.php file in my magento site. It contains: <? echo "Hello"; ?> It works on one machine but not another machine. I chmod 777 to the ...
1
vote
0answers
158 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
300 views

User Uploaded Images– Blank Post – Connection reset by peer / FastCGI: incomplete headers

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as ...
1
vote
0answers
579 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
86 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
60 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
66 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
29 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
47 views

Cannot enter “Umlaute” on php console

I do have a problem with german "umlaute" on the console. Whereas I have no problem entering them on the bash console, it is a problem on the php console PHP is all set to UTF-8 ...
1
vote
0answers
242 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
148 views

squirrelmail postfixadmin plugin - failed login to xmlrpc instance

I have installed postfixadmin 2.3.6 and im using squirrelmail vacation plugin. Postfixadmin is working good i can add/edit/delete email accounts and vacation or forwards / aliases. I have problems ...
1
vote
0answers
79 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
446 views

setup nginx to serve django and wordpress blog as subdirectory

upstream django { server unix:///home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/mysite.sock; # for a file socket } server { listen 80; server_name mysite.com www.mysite.com; ...
1
vote
0answers
120 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
56 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
251 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
891 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
106 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
2k 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
274 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
446 views

Installing PHP4 on a Debian (lenny) 7 32bit box

I am trying to install PHP4 on a Debian 7 32bit box but I ran into the following root@php4:~# apt-get update Get:1 http://snapshot.debian.org lenny Release.gpg [189 B] Hit ...
1
vote
0answers
43 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
107 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
113 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
321 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
103 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
103 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 ...
1
vote
0answers
56 views

maintaining session in elastic Bean

As the number of instances changes from time to time in EBS amazon. If an application is built in PHP how the session will be mantained among several instances? How can we make sure not to delete the ...
1
vote
0answers
226 views

Issue with RackTables Browser Install

I am currently working on a project of installing a RackTables application. I started off by building a LAMP Server on Linux Ubuntu 12.04 LTS. I followed the instructions from the RackTables Wiki. ...
1
vote
0answers
566 views

Nginx not reponding

I have setup WNMP on Windows Server 2012 despite the fact that it's not that great of a setup it's required, here are my settings: worker_processes 1; error_log logs/error.log; #pid ...
1
vote
0answers
238 views

Trying to compile phpredis on a mac using phpize54

I installed php 5.4 using mac port. I then git cloned the phpredis repository ( https://github.com/nicolasff/phpredis ). Then, I execute these commands: phpize54 ./configure make && make ...
1
vote
0answers
34 views

Server dropping all clients at intervals

I administrate large-scale servers for Minecraft: Pocket Edition. For the past couple of months, I have had the issue where at intervals the server will close all active connections to it (VNC and ...
1
vote
0answers
921 views

How to solve Apache2 error “(32)Broken pipe: core_output_filter: writing data to the network”

The index.php file of our companies Wordpress(3.5.1, a handfull visitors per day) blog reacts very lame to each request. It appears after a minute. This behaviour comes out of the blue, no changes ...
1
vote
0answers
247 views

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: <!--#include virtual="/some_file.php" ...
1
vote
0answers
171 views

How can I serve up HTML and JSON with nginx during “maintenance mode”?

I've got an nginx config for a PHP web app and I would like to make it serve an additional purpose, and I can't seem to find a way to accomplish it. My current nginx config does the following: ...
1
vote
0answers
91 views

Conflict with 3 different RewriteRules in .htaccess?

I'm using the below in my .htaccess file. There 3 types of redirects: redirect to directory /admin/index.php redirect to specific .php files e.g. /about redirect to user profile page from /John ...
1
vote
0answers
81 views

ps x shows weird command: -f html/index.php

Just went to check one of my websites and was greeted by the message: "CGIWrap Error: Real UID could not be changed!". Went in via SSH and tried "ps x" which showed me tons of processes that that ...
1
vote
0answers
222 views

Performance issues with small dedicated plesk centos5 server

I am getting some fairly sever performance issues with my plesk 11 dedicated box, it has 8 gigs of ram, static pages load very fast, a firstbyte time of less then 0.5 seconds, however dynamic php ...
1
vote
0answers
311 views

Executing a python script from PHP to open a socket

I have a python script chatserver.py that includes:- #!/usr/bin/python from twisted.internet.protocol import Protocol, Factory from twisted.internet import reactor <SNIP> ...
1
vote
0answers
164 views

IIS and PHP with FastCGI/WinCache not seeing updated files

We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones. We're seeing many cases on IIS where the ...
1
vote
0answers
325 views

What is the correct way to log PHP script's execution time and memory usage?

I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...