As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 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 ...
Lassanter's user avatar
0 votes
0 answers
11 views

PHP session store in cephfs

We need to support a lot of php version from 5.3 to 8.1 in K8s. Every version served by two or more pods. The sessions are stored localy in the pod's volumes, due to this solution we are using sticky ...
Daniel's user avatar
  • 11
0 votes
1 answer
790 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 ...
Tarion's user avatar
  • 103
0 votes
0 answers
235 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 ...
arvind's user avatar
  • 1
0 votes
2 answers
50 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 $...
Ben's user avatar
  • 23
1 vote
1 answer
2k 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 ...
justadev's user avatar
  • 353
0 votes
1 answer
854 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 ...
punch jvc's user avatar
0 votes
0 answers
288 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 ...
anaigini's user avatar
1 vote
1 answer
5k 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 ...
CodeNinja's user avatar
  • 295
0 votes
1 answer
144 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 ...
John Moore's user avatar
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 ...
pradeep chandra's user avatar
1 vote
0 answers
35 views

install php5 but keep php7

I have upgraded, built a new one, my server (Ubuntu 18.04.6) which is running PHP Version 7.2. I would like to install PHP5 and keep PHP7 and have the option to switch back and forth. Have a site that ...
tpage's user avatar
  • 11
-1 votes
2 answers
1k 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 = '...
Andrei Constantin's user avatar
2 votes
1 answer
285 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++...
Tần Quảng's user avatar
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 ...
AngularDev's user avatar
0 votes
1 answer
456 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 ...
Suffren's user avatar
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 ...
user3162662's user avatar
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 ...
Adi Prasetyo's user avatar
-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.
Kostya R's user avatar
1 vote
0 answers
478 views

php-fpm using more memory than mod_php

I recently moved a PHP5 application from Apache 2.4 + mod_php to Apache 2.4 + php-fpm. Apache is configured to proxy all *.php requests to php-fpm over Unix Domain Sockets. The application required ...
Iyad K's user avatar
  • 111
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 ...
Morten Twellmann's user avatar
0 votes
3 answers
2k 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, ...
Gabriel I.'s user avatar
1 vote
0 answers
448 views

Error "undefined symbol: mysqlnd_connect"

I am building a VM to develop an existing PHP 5.6 application using Vagrant 2.1.2. My VM operating system is Ubuntu/Bionic64. This app requires the mysqli extension with mysqlnd, among other packages ...
Tanoro's user avatar
  • 111
0 votes
1 answer
559 views

PHP 5.6 with Debian 9 -> mysql connection

I created an debian 9 machine with ISPConfig - standard stuff (after this tut: https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1/ ). Comes with PHP ...
Spacey's user avatar
  • 3
0 votes
1 answer
3k 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 ...
user avatar
-1 votes
2 answers
2k 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: ...
burtzerk's user avatar
0 votes
1 answer
902 views

Laravel Forge: Unable to create AWS EC2 instance in London Region

When I try to create a server on Laravel Forge for AWS in the London region I get the following error message: Whoops! There were some problems with your input. The server provider was unable ...
Zander Rootman's user avatar
0 votes
1 answer
2k views

Ubuntu 16.04 - Purge php completely but still shows PHP 5.4.15 (cli)

I want to purge PHP completely from my Ubuntu 16.04. I have did all the stuff to remove PHP which as below, sudo apt-get purge "php*" sudo apt-get purge "^php.*" sudo apt-get purge "^php*" sudo apt-...
Emipro Technologies Pvt. Ltd.'s user avatar
-1 votes
1 answer
2k 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 ...
Praveen's user avatar
  • 21
0 votes
1 answer
634 views

WAMP Stack/Silverstripe, High TTFB but fast PHP execution? Where can I look for answers?

My production server is Windows Server 2012 R2, Apache 2.4, PHP 5.6, and MariaDB (unsure of version, probably irrelevant). I have a customized site running on Silverstripe 3.5. Lately, I'm getting ...
p0lar_bear's user avatar
-1 votes
1 answer
322 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....
Harish Chennamsetty's user avatar
0 votes
1 answer
2k views

Difference between php5_module vs mod_php5

I am using remi's php repositories to use php5.6 in parallel with php 7, and so my apache config file /etc/httpd/conf.modules.d/10-php56-php.conf is like so: <IfModule prefork.c> LoadModule ...
arielnmz's user avatar
  • 433
0 votes
2 answers
887 views

Why is Phplist responding with 500 Internal Server Error?

I just did a fresh install of phplist, but when I attempt to access it in my browser, I get an empty page with status code: "500 Internal Server Error" I'm running CentOS 7 and Phplist is being ...
Michael Altfield's user avatar
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 ...
James Shields's user avatar
0 votes
0 answers
96 views

Wordpress and PHP Version Upgrade issue

I am running PHP Version 5.6 on my Ubuntu 14.04 Server. /home/ubuntu# php -v PHP 5.6.36-1+ubuntu14.04.1+deb.sury.org+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) ...
error2007s's user avatar
0 votes
0 answers
988 views

Can't handle PHP sessions in more than 1 apache virtual host

I have 2 cloned instances in AWS with Ubuntu 16, Apache 2.4 and PHP 5.6. I configured each with 2 virtual hosts (plus the default) with the same configuration (different names obviously): Define ...
Xilver266's user avatar
1 vote
1 answer
1k views

core_output_filter: flushing because of FLUSH bucket - why am I seeing this in Apache error log?

Does anyone know why do I keep seeing core_output_filter: flushing because of FLUSH bucket in my Apache 2.4.7 (Ubuntu) error log and what does it mean? I haven't noticed any problems so far, but it ...
vooxo's user avatar
  • 21
0 votes
3 answers
825 views

unable to execute php files in google cloud service

Here is my site link and when i try to login then in network the response i get is the whole login.php code instead of the response after executing the php file. My app.yaml file is correct i have ...
Syed Ali Raza's user avatar
-1 votes
1 answer
4k views

Apache Timeout directive correct but requests never timeout (not working)

I am having trouble getting Timeout directive to work, I have reproduced the issue in the below instructions and official Docker container. The server is using the standard MPM prefork model with ...
Elijah Lynn's user avatar
0 votes
1 answer
2k views

sendmail stripping From: address for apache www-data@localhost sent PHP mail()

I am setting up a Science Fair in a Box server that uses apache2, PHP5, and sendmail (although we've uninstalled sendmail and installed postfix with no change in problem ) to send participants their ...
daemondave's user avatar
2 votes
1 answer
736 views

Am I missing a step in imagick php installation on Docker?

I have the following in a Dockerfile for a container running PHP5.x: RUN apt-get install -y php5-imagick libmagickwand-dev libmagickcore-dev RUN pecl install imagick RUN echo "extension=`php -i | ...
Mayor of the Plattenbaus's user avatar
1 vote
1 answer
256 views

Bad response when try install opcache

I have problem for install zendopcache I try 1 time and other and always have the same result i don´t know what it´s bad because this can install with php 5.6 , thanks and also i delete and clean yum ...
Jos's user avatar
  • 31
0 votes
1 answer
1k views

SSL Version and Open SSL version are different in ubuntu 14.04 with php version 5.6 [closed]

I see the different versions on running this terminal echo '<?php phpinfo(); ?>' | php 2>&1 |grep -i ssl Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv2, tls, ...
venu Bondugula's user avatar
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 <...
Rinav's user avatar
  • 131
0 votes
3 answers
886 views

RHEL 7.4 PHP Multi-versions

I have an RHEL 7.4 Server that currently hosting few web apps, one of these apps requires PHP Version <= v5.6 I'm going to add a new app that requires PHP version>=v7 Can I combine both these ...
megz's user avatar
  • 13
0 votes
0 answers
300 views

PHP.ini override isues on CentOS 7 / PHP 5.6

I wanted to increase my servers upload_max_filesize, so I downloaded the PHP.ini file from /etc/ made the change locally and then uploaded the file via FTP. During the upload the FileZilla mentioned ...
Dan382's user avatar
  • 211
1 vote
1 answer
143 views

PHP 5.6 on Ubuntu 16.04 keeping official PHP 7.x

I added the Ondrej repository ( http://ppa.launchpad.net/ondrej/php/ubuntu/ ) on a Ubuntu Xenial virtual machine, to add PHP 5.6. It works flawlessy. I noticed that this repository includes updates ...
flip79's user avatar
  • 143
0 votes
1 answer
626 views

How to configure nginx to serve one site from two different document root and using different php depending on URL

I'm trying to configure nginx to use two different document root depending on url, so if some one connects to www.example.com will get site from /portal/public_html but if client connect to www....
B14D3's user avatar
  • 5,148
0 votes
1 answer
1k views

Apache X-Forward-For on https

I have a load balancing IP in front of 2 apache servers On the backend servers I'm using Apache 2.4 with mod_remoteip enabled to retrieve the real client IP which is working so long as the request is ...
asdasdasdasd's user avatar
4 votes
0 answers
3k views

Hostname provided via SNI and HTTP are different (AH02031 and AH02032 ) Error

I am using Apache 2.2 webserver on ubuntu Aws instance. My website goes down with below errors on error log, [ssl:error] [pid 46283] AH02032: Hostname provided via SNI and hostname provided via ...
adminz's user avatar
  • 397

1
2 3 4 5
18