Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
13 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 ...
0
votes
1answer
50 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 ...
0
votes
1answer
38 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 ...
-1
votes
2answers
59 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: ...
0
votes
1answer
74 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 ...
0
votes
1answer
123 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-...
-2
votes
1answer
113 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
1answer
69 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 ...
-1
votes
1answer
33 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....
0
votes
1answer
91 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 ...
0
votes
1answer
86 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 ...
0
votes
2answers
305 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
0answers
33 views

URL Parameters do not appear in PHP info under Query_String

There is an issue on my server at the moment where I input: http://example.com/phpinfo.php?test=1 On the PHP Variables, it should appear with "test=1" beside "_SERVER["QUERY_STRING"]". The server ...
0
votes
0answers
36 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) ...
0
votes
0answers
175 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 ...
0
votes
0answers
177 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 ...
0
votes
0answers
126 views

PHP5.4 with an openssl greater than 0.9.8y?

I have an associate who has the following server configuration: Microsoft Windows Server 2008 R2 Standard – Version 6.1.7601 Service Pack 1 Build 7601 Internet Information Services (Version ...
0
votes
3answers
234 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 ...
-1
votes
1answer
758 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 ...
0
votes
1answer
436 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 ...
2
votes
1answer
312 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 | ...
0
votes
1answer
108 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 ...
0
votes
1answer
413 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, ...
3
votes
1answer
1k 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 <...
0
votes
3answers
392 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 ...
0
votes
0answers
111 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 ...
1
vote
1answer
114 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 ...
0
votes
1answer
177 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....
0
votes
1answer
576 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 ...
3
votes
0answers
1k 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 ...
5
votes
3answers
8k 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 ......
0
votes
2answers
76 views

How many users can my server take? [duplicate]

I was told to switch to nginx or at least to mpm_worker. But really, how can I estimate if my server is not really overloaded even with mpm_prefork? My system is: GCP 1 CPU + 3,75GB Debian 8 Apache ...
0
votes
2answers
2k 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
0answers
122 views

Why my apache server keep on stopping?

My apache server keep on stopping. If i restart it will work for 5-6 hours again it goes to down. These are system and apache configuration details. Apache : 2.4 version PHP : 5.6.30 System ...
0
votes
1answer
396 views

Suppressing PHP errors with Nginx and php-fpm

Try as I may, I can't suppress error messages from PHP (using php-fpm) being displayed. Relevant files; /etc/php5/fpm/php.ini:display_errors = Off /etc/php5/fpm/pool.d/www.conf:php_flag[...
1
vote
1answer
639 views

Install PHP-Mysql without mariadb-libs

I'm trying to install PHP on my server, running Centos 7.3; I've installed php 5.4, and have MySQL Server 5.6.28 running there too. When I'm trying to install php-mysql, it's trying to install ...
0
votes
1answer
636 views

nginx - cURL retrieves PHP files but accessing via web browser gives source code

I'm having some trouble with nginx. I setup nginx on a Raspberry Pi B+ (Raspbian Jessie) and PHP with FastCGI. When I try using cURL to retrieve pages, it returns the PHP-generated HTML. nginx server ...
0
votes
1answer
379 views

How to setup common php session across multiple servers using redis

We have one main domain and 4 sub domains running different instances and using same remote mysql database server. Some domains using PHP 5.6 and some using 5.5. we want to have our domains sharing ...
0
votes
1answer
280 views

HTTP Post randomly cut (begins with PhpMyAdmin mysterious error)

This is the strangest error I have ever seen. I have a problem with PhpMyAdmin. When I tried to export the database, I got an HTML file with an error message instead an SQL file. The message is: SET ...
0
votes
1answer
65 views

RHSCL - php55-tidy extension not available via RHSCL

Alright, so my high level question essentially is that the php55 tidy extension is not available via RHSCL? I've already setup a new instance of httpd24 & php55 everything on this server is ...
0
votes
0answers
667 views

looking to upgrade php 5.4 to php 5.5 or greater on centos7

New to this, so please bear with me. Reviewed the php stats of the server, with yum list installed : php.x86_64 5.4.16-42.el7 @base php-cli.x86_64 ...
1
vote
0answers
66 views

What are my options for running an older version of php5 on a Debian Jesse development machine?

I've got a production server running older websites running on a Debian Jesse machine with PHP package 5.3.3-7+squeeze26. I have a development machine set up with a newer PHP package (5.6.29-0+db8ul) ...
0
votes
4answers
264 views

Sending email is slow to some domains

My system sends email from php using sendmail. I realize that there are dozens of questions on stack exchange about delays sending email from sendmail/php. I have read them all but I still can't ...
-4
votes
1answer
127 views

Prevent php script from overriding php.ini [duplicate]

How can I prevent php scripts from overriding max_execution_time value ? Someone found a way to inject malicious code on a server through wordpress... We are in the process of patching the ...
1
vote
1answer
6k 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
vote
2answers
728 views

php5.6-fpm curl stops working (Couldn't resolve host)

All of a sudden our Ubuntu php5.6-fpm server has stopped working with curl requests. Here is what i have found: Works when ran from the console php test.php. Works via wet from console wget -qO- ...
0
votes
0answers
567 views

Apache/PHP unable to resolve hostname

This morning for the second day in a row, PHP on my server was unable to resolve the hostname to a IP via file_get_contents('http://newswebsite.com/feed.rss'), and service restart apache2 resolved the ...
0
votes
1answer
343 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 ...
-2
votes
1answer
26 views

Why PHP is not installing in my Ubuntu server and how can I install it now?

Everytime when I try to install php using this command, it shows me "E: Package 'php5-mcrypt' has no installation candidate". Here is the command below what I used for installing php- sudo apt-get ...
0
votes
0answers
19 views

Ways to use PHP 5 and 7 parallel on same LAMP Installation [duplicate]

Dear all I am currently having a LAMP installation with PHP v5 on an Ubuntu 16.x machine. I like now to update it with PHP v7 but I like to have both configurations available so I can easily migrate ...