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

0
votes
0answers
56 views

How Should I Properly Handle Multiple Nginx Location Blocks?

I think I am getting close, but I am missing something important in nginx configuration. I would like all files ending in .php to be handled by fastcgi, so I have the following block: location ~ ...
0
votes
0answers
140 views

PHP-FPM pool stops responding and fails to restart

I am running PHP as PHP-FPM behind Nginx. Occasionally one of the pools stops responding to requests. It seems that nginx is accepting the connection, passing it to PHP-FPM but then PHP-FPM is not ...
0
votes
0answers
27 views

compress html pages on Nginx with mod_strip

I have installed Nginx 1.4.7 on my VPS and compiled mod_strip from this site https://github.com/evanmiller/mod_strip and tried to run it on my vhost block as it says in the manual like the code below: ...
0
votes
0answers
19 views

Security concerns regarding php://stdin

I'm using xinet.d and php://stdin to host a raw tcp-connnection, (following the excellent guide at http://gonzalo123.com/2010/05/23/building-network-services-with-php-and-xinetd/) I'm concerned with ...
0
votes
0answers
23 views

amazon beanstalk php suEXEC mechanism enabled

I'm not able to get my PHP Beanstalk setup working. After deploying, when I try to access my load balancer, I get a blank page. I saw in the error logs things start failing after the newrelic ...
0
votes
0answers
23 views

Apache Consuming Resources

Our web server suddenly has been giving us load issues. After I restart Apache the load stays low for a few hours up to a day or so then its back up to around 3.0 until I restart Apache again. Any ...
0
votes
0answers
25 views

Amazon EC2 + SSL Godaddy are not routing properly in HTTPS

I have an Amazon EC2 + SSL just installed on GoDaddy. I have successfully managed to install it and get the green https on the main domain https://www.example.com however it doesn't any ...
0
votes
0answers
96 views

Apache segmentation fault when running PHP script

I have Apache 2.4.6 on CentOs with mod_php (PHP 5.4.23) Symfony 2.3.4 is used with APC for caching the code. The PHP code also uses Postgre and Couchbase modules. There is a web request that I run ...
0
votes
0answers
34 views

Getting PAM/user info into php - something like Net_Finger instead of a db?

I've got a very small user group who just need to login, upload, check and then move specific files to a different area when ready. Right now, I use the nginx PAM auth module to log them in against ...
0
votes
0answers
29 views

Which modules can be disabled in apache2.4 on windows

I have an Apache 2.4 webserver running on Windows. I am looking into system hardening and the config file httpd.conf. There are numerous load modules and I am wondering which modules I can safely ...
0
votes
0answers
64 views

Configuring email in PHP for Elgg using postfix

I am trying to setup PHP for running Elgg. I have PHP 5.5 installed in a Ubuntu 14.04 VirtualBox VM. I need to complete the following requirement (elgg requirements page) : Proper configuration and ...
0
votes
0answers
97 views

mysqlnd doesn't seem to be with php 5.4

i went to update my website the other day on hostmonster but despite it working perfectly on development it had the error. Fatal error: Call to undefined method mysqli_stmt::get_result() ...
0
votes
0answers
42 views

Some PHP application errors logged in Apache ssl_engine.log and not in error_log

We have a Linux server running Apache and some PHP application errors are logged as errors in /var/log/apache2/ssl_engine.log, but they don't appear in /var/log/apache2/error_log. They are not SSL ...
0
votes
0answers
40 views

Sanity check: wordpress permission/ownership for multihosting

So I have a small server setup (2 webs, 1 nfs / mysql) that's hosting a couple of different wordpress sites. It's currently configured like this: I have a user called wwwuser (uid 500) and ...
0
votes
0answers
74 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 ...
0
votes
0answers
206 views

include(SoapClient.php): failed to open stream: No such file or directory

I have problems with yum, 1st one is when i run yum "commmand" 2nd time, example, yum search php or sudo yum install php-gd i get the error msg, rpmdb: Thread/process ...
0
votes
0answers
30 views

New Relic PHP agent - ignoring deprecated messages

I'm running the New Relic agent on Linux with PHP 5.3.3. I'd like to stop PHP deprecated warnings from being shown in the New Relic monitor - they clutter up the graphs. I already have deprecated ...
0
votes
0answers
63 views

Passing authorization header to PHP - Flesk's fcgid seems to be in the way

I'm trying to configure a PHP application that requires passing through the Authorization header. The server in question is a production server, so there's little room for experiment - any changes ...
0
votes
0answers
157 views

Issue Running Imagick module (PHP 5.4.13, WAMP server)

I have been trying to solve the issue with my production server for the past few hours now. The issue I am encountering relates to the PHP module Imagick (Image Magick). I am running a WAMP server on ...
0
votes
0answers
22 views

Php, IIS8, and MS Sqlserver2008 driver installation

I am new to iis setup, so this is quickly turning into a nightmare. I have installed php using wpi (IIS8)(server 2012) everything is working fine. Now i would like to connect to the ms sql server (v ...
0
votes
0answers
110 views

Using phpfarm to install multiple versions of php on Ubuntu behind a proxy

I'm attempting to use multiple PHP versions on the same Ubuntu 12.04 server. I've installed phpfarm (as suggested by this question). I've created a configuration file for my custom install, but the ...
0
votes
0answers
119 views

Virtualmin/Webmin - How to install PHP 5.2 as secondary PHP version?

I know how to install additional PHP to exiting one in Virtualmin (actually I have 5.4 and 5.5 together) but how I can add PHP 5.2.17 to 5.4? The way which I have used is not working in this case I ...
0
votes
0answers
93 views

PHP: Session-related error, that occurs only in Internet Explorer?

I have PHP 5.4.7 with Yii framework and I'm experiencing problem described here. When I login to my Yii-powered website, I'm getting session_regenerate_id(): Session object destruction failed error. I ...
0
votes
0answers
259 views

Apache 2.2.27 Crashes with CPU at 100%

We have a processor intensive web portal that can easily reach high CPU usage, when this happens the Apache (2.2.27) server crashes, before when using Apache 2.2.25 (with OpenSSL 0.9.8y) the server ...
0
votes
0answers
26 views

Prevent email spam from vhosts

We have a server with several vhosts (with php) running. Recently one vhost was overtaken from a "hacker" which manipulated the php scripts to send email spam. Because the other email servers blocked ...
0
votes
0answers
15 views

Change tomcat security-roles by editing web.xml from PHP

When a user buys a product, I set up a new domain on the fly (by calling some API from PHP), and then I come to a point where I need to specify certain security roles in TomCat, preferably still from ...
0
votes
0answers
88 views

Can't write files with PHP on IIS

I have an IIS 7.5 web server running on Windows 2008r2. When I try to write to a file I get a Permission Denied error, but I can't figure out how to fix the permissions. I have PHP configured via ...
0
votes
0answers
51 views

best logic to Load balancing YiiFramework web app

I'm going to launch a Yii framework app next days, and i'm currently searching the best way to deploy it in order to scale and support high traffic. I use Amazon RDS to host the DB, and 2 Memcached ...
0
votes
0answers
230 views

How to install a newer version of php on AWS Opsworks?

Our code base is using PHP 5.5 and we are wanting to deploy on AWS Opsworks however when selecting the PHP App Server layer we are told it has PHP 5.3. What I was hoping is that I could just use the ...
0
votes
0answers
48 views

Installing xattr PECL extension in Ubuntu 12.10

I am trying to install extension xattr in my Ubuntu 12.10 . sudo pecl install xattr But I am getting the error as : checking for xattr files in default path... not found configure: error: Please ...
0
votes
0answers
89 views

PHP application response time increases when application requests decrease

I've got a very powerful dedicated server, running a PHP 5.5.3, MySQL (Percona 5.6) SMF forum. It's running Ubuntu 13.10, it's a Xeon E3-1270 V2, 1TB disk space (0.7% full), 16GB DDR3 (15% used). I'm ...
0
votes
0answers
580 views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
0answers
50 views

Dokuwiki: Moving Just the data directory on other server

I have installed dokuwiki on IIS7. As per my teams requirement we have to move just the Data directory to other server location. e.g IIS7 installed Dokuwiki location: ...
0
votes
0answers
109 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
0answers
27 views

Does Zend Optimizer share its memory across sites?

I have a virtualmin setup on Ubuntu 12.04. I recently installed PHP 5.5.3 with phpbrew and switched three of my wordpress sites in virtualmin over to PHP 5.5.3. Each of these sites has it's own ...
0
votes
0answers
53 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
0
votes
0answers
29 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 ...
0
votes
0answers
19 views

does “Filesmatch” provide the same protection as “open_basedir”

Does using Filematch in my apache virtual host config provide the same benefits as open_basedir (php)? I was originally trying to use open_basedir for something along the lines of ...
0
votes
0answers
188 views

Unable to install Phpmyadmin on Centos 5, missing dependency php-common

I keep getting this error when trying to install Phpmyadmin: Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package phpMyAdmin.noarch 0:2.11.11.3-2.el5 set ...
0
votes
0answers
60 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 ...
0
votes
0answers
27 views

Issue during long server requests, Apache, PHP, Cpanel

I have a cloud server hosted at Rackspace with cPanel installed on it. I have only one PHP app hosted on this machine. I've noticed that when I'm uploading a large file or executing a request that ...
0
votes
0answers
82 views

Using memcached in php.ini is ignoring gc_maxlifetime?

Using php-fastcgi with session.save_handler = memcached and session.gc_maxlifetime = 1440, my sessions are never expiring. Memcached Cache is running full and then starting to evict old items after a ...
0
votes
0answers
154 views

nginx wont cache images when they are read through php files

i have .php file wich is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
0
votes
0answers
78 views

Email not getting sent through the script on vps parallels

We have a web site hosted on the vps parallels server and we are trying to send mail to the email id which is hosted on godaddys email plan xyz@ourdomain.com , but we are unable to send mail through ...
0
votes
0answers
50 views

Webroot directory separation for Apache: suPHP or suEXEC ?

I've been reading a lot about directory permission setup under apache 2.4. Basically I am running a small number of clients with PHP apps on my dedicated Ubuntu (php 5.5.3 + apache 2.4). I know that ...
0
votes
0answers
18 views

Huge Response Time On Uploads

After i updated my Apache from 2.2 to 2.4 i started to have a huge response time only on HTTP Posts with uploads on HTTP GET or HTTP normal POST all great i don't no what happen the only thing i'm ...
0
votes
0answers
103 views

php exec failing cpanel

I'm using unoconv to convert documents to PDF via a php script. When I call the script from the browser, the script outputs the following (and fails): array(11) { [0]=> string(48) "Office base ...
0
votes
0answers
39 views

rApache module in Apache error

I'm using ubuntu 13.10 with Apache2 , PHP5 and MySQL I'm trying to add rApache module in Apache to work as a server R. I configured my rapache exactly how this turorial shows . ...
0
votes
0answers
109 views

IIS7.5 Not connecting to MS SQL Server 2008 with PHP5.2.9 via php_mssql driver

Ok this is going to be somewhat involved. I have three servers: First I have a box running Linux with Apache and PHP 5.2.17. We shall call this "LB" for Linux Box. Second I have a Server Running ...
0
votes
0answers
117 views

Webserver high cpu usage and slow responses

I would like to find bottleneck for web server (running on 32GB RAM/24 cores HT enabled, apache/mod_php). Here are my observations, memory does not seem to be a problem (only 10MB of swap) very ...