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

3
votes
0answers
215 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 ...
2
votes
0answers
237 views

nginx/php + zurmo, rewrite or internal redirection cycle

I am trying to get Zurmo CRM running on my Debian Jessie system on localhost. I couldn't find an example nginx config and the application needs to rewrite URLS, which I have done wrong. I also use ...
2
votes
0answers
321 views

PHP 5.2, Apache 2.2, Windows 8, PHP not parsing

I have an apache httpd 2.2 installation on windows 8 (using the installer, installed to C:/Program Files (x86)/Apache Software Foundation/Apache2.2) and a php 5.2 installation (using the .zip, ...
2
votes
0answers
349 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
225 views

php5-geoip performance issue

I installed the php5-geoip module on Ubuntu 10.04 via apt-get install php5-geoip. I've updated the geocities.dat library The production server performance decreased and load average is soaring. ...
1
vote
0answers
26 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 ...
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?
1
vote
0answers
58 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 ...
1
vote
0answers
439 views

Strange requests with wrong server_name and port 25 in apache / php

If I try to telnet [myserver.mydomain.com] 25 I get Trying [ip number]... telnet: Unable to connect to remote host: Connection refused but still I get strange requests such as the following ...
1
vote
0answers
200 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, ...
1
vote
0answers
173 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 ...
1
vote
0answers
74 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 ...
1
vote
0answers
132 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
1
vote
0answers
106 views

PHP scripts on live Apache servers consume more memory?

Lately, I've been spending time trying to optimise PHP code. I develop on localhost inside a VM and have been putting the memory_get_usage() at the end of scripts to help do this. The localhost uses ...
1
vote
0answers
134 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
0answers
1k 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
45 views

Installation of nagios failed due to ucf and file acls

While installing Nagios give me this error and hence the packages left unconfigured on my server. I looked for some help but they don’t tell me the exact solution. Does any one have a fix. cp: ...
1
vote
0answers
191 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
518 views

IIS server restart required to convert web pages to PDF using COM

Have an annoying issue with our production web servers. Windows 2008 R2 x64, fully patched, using php 5. Also installed is ABC PDF, php will call the COM object to convert a web page to PDF and ...
1
vote
0answers
180 views

pecl_http : Apache is unable to load http.so

I'm using MAMP 2.1.3 with Mac OS 10.8.3. I've just installed the pecl_http extension with Mac Ports + PECL. The http.so exists and is in (correctly set in php.ini) : ...
1
vote
0answers
2k views

PHP 5.4.13 “procedure entry point could not be located in the dll php5ts.dll”

I did a manual install of PHP 5.4.13 on Windows Server 2008 R2 on D drive. Today I tried to run a script directly using php.exe through the command line but got two error pop up windows: The ...
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. ...
1
vote
0answers
513 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
0answers
502 views

Soap client in Centos6, zval_property_ctor in Unknown on line 0

We're having such a big problem in our Centos server in order to have working the SOAP client of PHP 5.3.3. One of our customers reported us that they were having problems to consume some webservices ...
1
vote
0answers
146 views

New Windows Server 2008 R2 WIMP running slower than Windows Server 2003

We recently upgraded a WIMP server from Windows Server 2003 (32 bit) to Windows Server 2008 R2 (64 bit). The new server has significantly better hardware than the old server, yet many processes take ...
1
vote
0answers
72 views

PHP5-CGI taking up too much load, second is MYSQL, third is APACHE

I recently moved to a new server and I am experiencing very high PHP5-CPI. I am running a forum that holds up to 450 people every 20 minutes. My forum ran very well a month a go for the longest time ...
1
vote
0answers
191 views

How to optimise apache2 with php5-cgi

I have a debian squeeze running with apache2 and php5-cgi. Please see the following stats from my munin: http://imageshack.us/photo/my-images/545/multipscharts.png/ I am running these per-process ...
1
vote
0answers
22 views

Strange behaviour of PHP's virtual() when Apache's mod_negotiation comes into play

First: if acting separately, PHP's virtual() as well as Apache's mod_negotiation work fine. But I've got trouble when virtual() refers to a file which needs negotiation (e.g. Multi-Lang). Easiest ...
1
vote
0answers
55 views

nginx+mysql5 loadtesting configuration strangeness

i am trying to setup a new server running on debian6 and trying to make it work smooth under load. i ve used a wordpress site as a test object, and tried the configurations on http://blitz.io. when i ...
1
vote
0answers
401 views

Parsing files as PHP with AddHandler in different environments

I'm now so confused with how files should be parsed as PHP with AddHandler in different environments. local server: Windows 7 / Apache2.2 / PHP 5.2 (thread safe) AddHandler x-httpd-php .php ...
1
vote
0answers
349 views

IIS + PHP + Page with lots of images = Intermittent 403 errors

I am using an up-to-date Server 2008 R2 Datacenter, running IIS 7.5 and PHP 5.3.6/FastCGI On PHP pages with lots of images (60+), some of the images fail to load It is not always the same images-- ...
1
vote
0answers
449 views

PHP5 OCI8 FreeBSD

I'm running a FreeBSD server with Apache and PHP 5.3. I'm trying to get the Oracle DB extension (OCI8) running with PHP but I can't find a port or anything for it. Half of the Internet says it's no ...
1
vote
0answers
115 views

Request server url without explicit file name doesn't parse index.* files

I've set up a new vServer with apache2, php5 and mysql. When I enter my server url (e.g. example.org) in the browser it starts downloading the index.php instead of parsing it. But when I request a ...
1
vote
0answers
286 views

Web Platform Installer PHP Updates

I have installed a version of PHP with the Microsoft Web Platform Installer v3.0. In this case it was version 5.3.10 and since then version 5.4.0 has come out. How do I use the Microsoft Web ...
1
vote
0answers
678 views

After a PHP crash IIS 7.5 stops responding requests until the whole service is restarted

I have a standard PHP5.3 install under w2k8r2/IIS7.5 (with and without WinCache as I've tried both options). The events happens as follows: 1) I get an error on the Application event log that says: ...
1
vote
0answers
972 views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
0answers
161 views

How can I make sure PHP is using TBinaryProtocolAccelerated

How can I make sure PHP is using TBinaryProtocolAccelerated and not TBinaryProtocol as the protocol? I am using PHP5 in Ubuntu Server.
1
vote
0answers
593 views

How to configure PHPStorm to debug on IIS

I installed PHP 5 on IIS on a Windows 7 64 bit machine using the Web Platform Installer. I am using PHPStorm as my PHP IDE but cant find any documentation on how to get debugging to work. PHPStorm ...
0
votes
0answers
46 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
0answers
92 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 ...
0
votes
0answers
42 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
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
0answers
102 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 ...
0
votes
0answers
149 views

process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(53573) exit(lifetime expired), get unexpected signal 6

after a plesk update i see the following errors in my logfiles and cant find out what the issue is.. can someone help me? i use OS: CentOS 6.5 (Final) and Plesk version: 12.0.18 Update #14 , [Wed ...
0
votes
0answers
119 views

Memcached problems since upgrade from Ubuntu 12.04 to 14.04

I recently migrated to Ubuntu 14.04 with a Webprojekt (nginx,PHP5,MariaDB,memcached). All configs are exactly the same. But the cached sites sometimes don't load properly. I enabled the verbose mode ...
0
votes
0answers
281 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 ...
0
votes
0answers
70 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
23 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
16 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
0answers
480 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 ...