Questions tagged [php5]
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.
865 questions
182 votes
18 answers
1.3m views
How do you restart php-fpm?
I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0 votes
0 answers
423 views
ServerAlias url goes to wrong file path
I have an old Apache PHP web site that I am in the process of upgrading. In the interim, I need to continue to access this site via a URL "legacy.example.com" I have added a ServerAlias ...
0 votes
1 answer
2k views
Nginx rewrite rule to make php see https scheme
I want my pho application to only see the https scheme even if the secure connection is already terminated. I have the following setup: Browser --https--> nginx --http--> nginx --> php-fpm ...
39 votes
6 answers
117k views
PHP exit status 255: what does it mean?
I recently compiled a PHP 5.2.9 binary, and I tried to execute some PHP scripts with it. I can execute some scripts without problems, but one of them halts its execution midway, exiting with no errors ...
2 votes
3 answers
3k views
PHP is stopping a web-based script after 60 seconds
I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
3 votes
3 answers
59k views
enabling mysqli extension on centos server
I want to enable mysqli extension on Centos server where PHP 5 is installed. After searching online, I saw many people talking about uncommenting mysqli related line in the php.ini and I couldn't ...
19 votes
4 answers
163k views
nginx / php-fpm error logging
I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
10 votes
5 answers
62k views
Nginx editing php.ini changes no reflecting
phpinfo says the file location is /etc/php5/fpm/php.ini. Additional .ini files parsed /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/mcrypt.ini, /etc/...
19 votes
4 answers
81k views
Exclude a specific repo from YUM Update
I am doing a system wide yum update on RHEL 5.5 and the IUS EPEL repository is throwing a missing dependency error: php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems --> ...
1 vote
1 answer
3k views
Windows server how to install newest apache with php 5.6 [closed]
I was requested by a client to setup a Windows server 2016 for using a 3rd party app. The app requires to run on php 5.6. The security department of the company requires that the apache will be at ...
6 votes
4 answers
13k views
nginx 404 instead of 403 for empty directory
I have the following config for my nginx server: server { listen 80 default_server; server_name example.com www.example.com; root /var/www/example.com/web; index index.php index.html;...
2 votes
2 answers
6k views
Reducing Apache Memory usage and Average Process Size Value
I know that question is little long but i choosed to describe each and every aspect which i observed from my end. I am using a Linux server, OS used is Ubuntu 14.04, all rest configurations are ...
0 votes
0 answers
442 views
Apache2.4 AddType for PHP 5.6 Fails/Ignored
Thank you for your time reading this post. Server config given to configure (I can't change) snap shot Please note I can't use add-apt-repository ppa:ondrej/php, I tried but installing php5.6 packages ...
0 votes
1 answer
5k views
Unable to enable mpm-event in httpd | centos 7
I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check ...
25 votes
4 answers
71k views
nginx + PHP-FPM = "permission denied" error 13 in nginx log; configuration mistake?
I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble ...
12 votes
7 answers
121k views
Connection refused HTTPS on Apache
I'm currently trying out HTTPS on one of my sites, and I got a trial certificate from a trusted CA. I've gone through the following checklist: Copied all the cert files according to the CA's ...
1 vote
1 answer
7k views
Why returns apache a http 500 but does not log any errors?
On a 12 year old (web) server is still 1 old (custom) PHP application hosted. We want to shutdown this server and remove it from the rack. Unfortunately we still need the application, is not actively ...
4 votes
1 answer
17k views
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message
One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
0 votes
1 answer
1k views
Apache 2.2.15 possible security risk?
I have an old server that is running a webshop in production. It is running CentOS / Apache 2.2.15 and PHP 5.3 (Build 22 Mar 2017). Are there any security risks associated with this setup? I have ...
-2 votes
1 answer
12k views
How to install php 5 on Debian 10? [closed]
I need advice how to install php5 on this os. There is only php7 package available, but for my system php5 is required.
6 votes
2 answers
37k views
Why is there no php.ini file when I install PHP in a docker container?
I'm using docker-compose to setup a minimal nginx + php-fpm application but for some reason there is no php.ini file on the docker container (I know because phpinfo() says Loaded Configuration File: (...
-1 votes
2 answers
2k views
crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash function [closed]
I'm getting the following password error. I have PHP 7.2 variant(to php version 5.5 does not appear to me this problem ), the following code : function make_key($length) { $valid_chars = '...
0 votes
0 answers
2k views
PHP Warning: PHP Startup: imagick: Unable to initialize module
I am getting following error when installed with lib imagick, but able to see the imagick module. Could you please check and help to resolve the issue without uninstalling the imagick module. Thank ...
0 votes
2 answers
3k views
Apache segmentation fault: how to get more information with gdb?
I'm seeing the following error in apache's error_log. It's completely random but when it happens, it prints 10-20 lines in error_log. Apache: [core:notice] [pid ***] AH00052: child pid *** exit ...
5 votes
1 answer
19k views
PHP 5.6 undefined function xml_parser_create
I have a new php 5.6 installation and get the following error from my application: Fatal error: Call to undefined function xml_parser_create() But libxml seems to be OK? phpinfo about libxml is: ...
0 votes
2 answers
111 views
mysql not inserting through php cli
I have a simple php script which is ran from cli. I have tried many different variations of mysql code, but regardless, the line isnt inserted in the database even though php says it is.... <?php $...
7 votes
2 answers
73k views
Apache consuming too much CPU and memory
I'm having some troubles with CPU and memory usage with an Apache Web Server. We're running an Ubuntu Server 12.04 LTS on a Virtual Machine. Our server has following specs: 8GB RAM; 4 vCPUs (12ghz); ...
1 vote
2 answers
4k views
Temporarily website outages, fastcgi PHP communication aborted
I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0 votes
0 answers
1k views
PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)
PHP is running very slow like loads forever. Below is the www.conf file values ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes ...
7 votes
3 answers
37k views
Confirm that mysqli extension is not installed
Recently I discovered that mysqli extension is not installed in my server Centos version 2.6. I confirm it because I change the driver of db connection from mysqli to mysql and now works fine. So, is ...
7 votes
3 answers
12k views
Reconfiguring PHP 5.6 to run on MacOS 10.13 High Sierra
I need to get PHP 5.6 running on a Mac that had to be updated to 10.13. So I reinstalled 5.6, verified its location, and added it to httpd.conf: LoadModule php5_module libexec/apache2/libphp5.so ......
2 votes
1 answer
4k views
Why is Nginx not parsing .php5 files the same as .php files?
I have installed nginx with ISPconfig. Everything works fine except some websites I have ported from apache server unfortunately have .php5 extension and I don't know how to make nginx to parse them. ...
0 votes
1 answer
1k views
Windows Server 2008 R2 + Apache 2.4 - Constant crashing with Faulting module name: ntdll.dll
Windows Server 2008 R2 Datacenter Edition 64 bit Using AWS EC2 m1.xlarge instance 15GB RAM , 4 vCPUs Intel Xeon Problem: crashing every 10 secs / every minute / sometimes 1 hour / randomly WINNT ...
0 votes
2 answers
2k views
web server keep yelling pdftk not found
The original error message is sh: 1: pdftk: not found That obviously leads to this. This is not the first time i encounter this issue, and I am sure that it's not the pdftk or php-pdftk. Here is ...
9 votes
1 answer
20k views
php-fpm: unrecognized service
I can't seem to restart my php fpm on my Ubuntu server I did ps aux | grep php-fpm I got root 1543 0.0 0.7 444672 7552 ? Ss Nov10 2:14 php-fpm: master process (/etc/php/5.6/...
0 votes
0 answers
379 views
Checking php configuration
One of our ticketing systems uses php as the application and it is being hosted with httpd. Recently, it has been reported that the httpd service has been intermittently going up and down. From ...
0 votes
0 answers
3k views
SQLSRV PDO driver on PHP 5.6 with Docker
I am trying to move a legacy application (CakePHP 2.5.5) running on PHP 5.6 to a Docker container but I can't get the PDO driver for Microsoft SQL Server to work. I have been searching around for ...
2 votes
1 answer
364 views
How to compile PHP 5.3 and PHP 5.4 release x64 with Visual Studio 2008 SP1? [closed]
I have successfully compiled Apache x64 then I use PHP 5.3.29 and 5.4.45 release x86 on it and get error that DLL files are not a valid Win32 application. I installed Visual Studio 2008 SP1, Visual C++...
1 vote
2 answers
13k views
Apache with PHP-FPM not working
I am following this and this article to setup apache2 and php5-fpm under Ubuntu 14.04, but it always return a HTTP 403 when I run phpinfo(), how do I fix it? I didn't edit the virtual host ...
6 votes
3 answers
76k views
How do I enable the IMAP functions in PHP?
I have a LAMP box running Ubuntu, Apache 2 and PHP5 with Slicehost. I'm a bit new to all this sysadmin stuff (I'm primarily a web developer). I need to use the IMAP functions in PHP, but they don't ...
4 votes
2 answers
11k views
server reached pm.max_children setting (280), consider raising it
PHP-FPM process getting crashed in every few days due to reached pm.max_children, I have to manually start it to make the site up. Server Configuration: Total Memory: 7986M CPU: 2 Core 1 PHP ...
0 votes
1 answer
655 views
Issue with configuring php-fpm mod proxy on centos 6
I'm configuring PHP_FPM on a Centos 6 distribution. I'm using php 5.4.45 and apache 2.2.15 and the "mod_proxy.so" to call the socket. But with the following Vhost and php-fpm configuration I still get ...
0 votes
2 answers
1k views
The behavior of SetEnvIf on PHP routes
We are using the mod_auth_openid plugin to provide OpenID support for part of our site. It works pretty well, but we're running into one of those "Do this, except when" conditions, and I'm not sure ...
3 votes
1 answer
3k views
Getting HTTP/2 Working on Apache 2.4.29 on Debian 8
I am trying to update my apache2 (Apache/2.4.29 (Debian 8)) server to support http2 but after enabling http2 with following code, it does not work because of mpm_prefork does not support http2 <...
-1 votes
2 answers
3k views
PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xsl.so'
I'm getting an error whenever PHP (5.6) is starting from the command line (and crons) : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xsl.so' - libexslt.so.0: ...
-1 votes
1 answer
3k views
Using htaccess change the website default index file from root folder to sub folder, site other pages should still work from root folder
Using htaccess how to change the PHP website default home page ie index.php file from root folder ie "html" to sub folder(say it 'subfolder') but site should still work as before ie the home page will ...
0 votes
2 answers
3k views
Apache 2.4 with PHP-FPM 5.6 on Centos 6
I'm trying to get PHP working over FPM on Centos. On the FPM side, /etc/php-fpm.d/www.conf is pretty much the default values. I'm left it using a TCP port as follows (I may want to change to a file ...
0 votes
1 answer
199 views
nginx + php 5.6 serving empty pages, can't find error log
I have accidentally hosed a VPS which was hosting a website using nginx and PHP 5.6, and I'm attempting to recreate things on a new server running Ubuntu 18.04 (previous one was 12.04 - upgrade failed ...
3 votes
2 answers
44k views
Getting "The page you are looking for is temporarily unavailable. Please try again later"
I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
6 votes
1 answer
90k views
How to install php-xml and php-mbstring on PHP 5.4.9-4?
I have added the PHP5 to UBUNTU 12.04 sudo add-apt-repository ppa:ondrej/php5 -y and installed the PHP5 php5 php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc ...