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.
Questions tagged [php5]
865 questions
2
votes
1 answer
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.
Unfortunatelly, I'm not able to install it in any way.…

martin
- 355
- 1
- 7
- 15
2
votes
1 answer
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…

Sophie Mackeral
- 121
- 1
- 1
- 2
2
votes
2 answers
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) clients connected and the long poll is set to 30…

stil
- 129
- 1
- 4
2
votes
1 answer
Apache2 + mod_fcgid + php stopped working after upgrade from Debian squeeze to wheezy
I've updated my server from Debian squeeze to Debian wheezy. On this server are several apache2 vhost which running php via mod_fcgid (I'm also using mod_suexec but this shouldn't be the problem). After the update all my php-sites are not working…

morten.c
- 161
- 1
- 1
- 8
2
votes
1 answer
"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' in…

samayres1992
- 127
- 1
- 7
2
votes
1 answer
dll in php "the specified module could not be found"
I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got:
PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - The specified…

zuboje
- 123
- 1
- 6
2
votes
1 answer
Apache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settings
I have an Apache2 with php fastcgi setup; I want to do config changes without a client noticing it (so no dropped/failing requests), so I put haproxy in front of it; so I have 2 Apache2 servers running on different IPs on the same server and Haproxy…

CharlesS
- 229
- 1
- 7
2
votes
1 answer
php-fpm unable to restart because of another FPM instance
/etc/init.d/php-fpm restart
Stopping php-fpm: [FAILED]
Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/gosianozka.sock
[10-Oct-2013…

Spacedust
- 568
- 5
- 13
- 28
2
votes
2 answers
How to downgrade php 5.5 to 5.4 on Ubuntu 13?
I'm using kubuntu 13.04
I've used a downgrade script to downgrade php 5.4 to 5.3 earlier, and now I deleted the repo and that script, removed php 5.3 and now when installing again, it's installing php 5.5 not 5.4.
How do I install php 5.4 not 5.5 ?

Shehabix
- 29
- 1
- 3
2
votes
2 answers
Apache restart needed after php code change
When I change php code of an application I need to restart apache to make the new code effective.
$ sudo apachectl -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
itk.c
http_core.c
mod_so.c
It is a pretty stock Ubuntu…

Martijn de Munnik
- 123
- 1
- 1
- 4
2
votes
1 answer
How do you completely purge Apache, MySQL, PHP, and phpMyAdmin on Ubuntu?
I really need to completely purge my web server on Ubuntu 12.04. I have tried sudo apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin (which hopefully removes all of them). How do I completely…

tjhorner
- 127
- 1
- 1
- 6
2
votes
0 answers
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 rewrite on drupal, and I thought it's nginx…

John Tate
- 179
- 4
- 19
2
votes
2 answers
libapache2-mod-php5 uninstalled after update impossible to put back
I use Webmin to administrate my Ubuntu 12.04 x86_64 machine. Yesterday, as often, I got notified of updates and installed them. During the installation process, libapache2-mod-php5 has been uninstalled, and since then I can't restart Apache.
When I…

Nabab
- 189
- 1
- 3
- 12
2
votes
1 answer
Can't configure PHP error log
I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there:
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
That produces error and access logs in…

linski
- 121
- 1
- 4
2
votes
2 answers
How downgrade PHP 5.5 to 5.4 or 5.3 on centos6
I have server running centos 6, i recently upgraded the php on the server to version 5.5 and noticed that some of the scripts in laravel framework i use are breaking.
i get this error
Parse error: syntax error, unexpected 'yield' (T_YIELD),…

MrFoh
- 145
- 2
- 2
- 10