Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

PHP / x64 Windows Core Error 16 / E_CORE_ERROR

Using Xdebug on Windows x64 with both versions 7.2.6 and 7.3.10 of PHP on my local development machine I'm receiving a vague E_CORE_ERROR in certain situations. The error_get_last() function returns ...
John's user avatar
  • 134
1 vote
1 answer
129 views

How is server root defined in this context?

I asked a question over at Information Security and received an interesting response which in part included the following: move them off the server root So in the context of moving uploaded files "...
John's user avatar
  • 134
0 votes
0 answers
2k views

How to install PHP 7 on Oracle Linux?

I have Oracle Linux 7.7 instance on Oracle cloud. I want to install PHP 7.2 on it. Previously I have installed PHP 7 on different Linux flavors but I could not find proper documentation, tutorial or ...
Silkograph's user avatar
0 votes
1 answer
216 views

Ubuntu 14.04 php7.1 sqlite driver could not find to install

My Laravel application has test environment to run on sqlite database but it's says the driver is missing and I could not find any solution to install the driver. Would someone help? I have the ...
Tajuddin Khandaker's user avatar
0 votes
1 answer
175 views

Messages going to Spam

My emails are going to spam no matter what I do. Centos 7 Exim PHP 7.2 Apache 2.4 Hostname and IP are not blacklisted. Exim config primary_hostname = mail.example.com domainlist local_domains = ...
Brian Curless's user avatar
0 votes
1 answer
486 views

Setting up Shopware 6 fails with PHP XML error

Currently setting up Shopware 6 Community Edition ( https://www.shopware.com/de/download/ ) on my Ubuntu machine. I followed these steps: https://docs.shopware.com/de/shopware-6-de/erste-schritte/...
Marvin Klar's user avatar
0 votes
1 answer
460 views

Ubuntu 14.04 upgrade php or mysql from ppa:ondrej fails after April 2019

I have a project in a VM with OS Ubuntu 14 LTS, php5.5 and mysql-server-5.5. At the end of March I have cloned the Virtual Machine and successfully upgraded both of them from (ppa:ondrej/mysql-5.7) ...
Dimitrios's user avatar
  • 119
0 votes
1 answer
2k views

Apache on Centos doesn't recognize gmp extension

I have this error in running a webapp on a Centos 7, PHP 7.2 server: PHP Fatal error: Call to undefined function gmp_init() in ... a.php on line 2 If I call it from cmd line it works: b:3 Code: &...
Sunchaser's user avatar
  • 113
0 votes
1 answer
644 views

Apache 2.4 / PHP 7 with SSL : posting a larger file (+75MB) results upload_err_partial

I've set up an AWS EC2 server with the AWS linux AMI so that it runs Apache 2.4, PHP 7.2. When I upload files larger than +- 75mb (or about 30 seconds uploading time) PHP gives me an error 3 in $...
Stef Digicombo's user avatar
-1 votes
1 answer
226 views

Why html output aborts before the php code execution?

I have a file named x.php in /var/www/html that looks like <html> <head> <title>-_-</title> </head> <body> <h1>Table</h1> <?php mysqli_report(...
John Goofy's user avatar
-1 votes
1 answer
1k views

"curl: command not found" on Debian 10 with PHP 7.3 installed successfully?

I have a Debian 10 VPS where I'm configuring for use for an internal app. At the moment I'm installing a monitoring package for the server which requires me to use curl. Running the command returns ...
mickburkejnr's user avatar
0 votes
1 answer
1k views

How to enable php7.0 for apache2 on virtualhosts under ubuntu 16.04?

First of all, my example of a virtualhost is working without embedding <? php echo 'Hello World'; ?> in index.html. Apache is on the same machine I am using. PHPis two times availble on this ...
John Goofy's user avatar
0 votes
1 answer
216 views

Issues with Apache and Centos. Crashes at startup but cannot find startup script. apigility

I inherited a Centos 7 server which has apigility installed. When I rebooted the server, the web service crashes. In the log files all I see is [core:notice] [pid 3864] AH00094: Command line: '/usr/...
user186057's user avatar
4 votes
1 answer
2k views

PHP7.3-FPM with Apache: Unknown script request execution timed out

I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows: Timeout 90 <Proxy "unix:/run/php/php7.3-fpm.sock|fcgi://php-fpm"> ProxySet disablereuse=on timeout=...
Alexey Ozerov's user avatar
2 votes
0 answers
192 views

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in php.ini. opcache.enable=1 opcache.enable_cli=1 opcache....
Seomari's user avatar
  • 21
0 votes
0 answers
34 views

Do I need to do some "cleanup" if an installation is terminated due to disconnection?

I was trying to install php7.3 to my ubuntu 16.04 machine. The SSH connection got dropped while the installation was running. I've been trying to search whether I need to do a "cleanup" before I go ...
newjie's user avatar
  • 1
0 votes
2 answers
805 views

How to set dynamic environment variables in a Laravel App on AppEngine

I’m trying to deploy a Laravel application on GAE. As mentioned in the docs, the environment variables are supposed to be added on app.yaml file. But as the source code is in GitHub and few people are ...
Tareq's user avatar
  • 103
0 votes
0 answers
40 views

Apache2 rendering PHP only partially

I set up a lamp server on Ubuntu 16.04 and now I'm having this strange issue where PHP renders only partially. I also checked and the page works normally if use nginx or lighttpd. Also, I created a ...
Ezequiel Barbosa's user avatar
0 votes
2 answers
170 views

Apache / MariaDB Questions

this is my first post here, and I have searched for a good answer to this question with no luck so far. I am in the process of upgrading our web server (LAMP stack on CentOS 6) to new hardware and ...
TheMalman's user avatar
0 votes
1 answer
2k views

What's the differences between PHP versions from pkgs.org and remi

I need to install PHP 7.3 on my CentOS 7.5 which already has PHP 5.4 and 7.0.27 versions but I saw difference in installing commands and since I'm not a professional I need to ask before begin ...
Hady Shaltout's user avatar
2 votes
1 answer
3k views

PHP move_uploaded_file fail

This is a common question but I double checked suggested solutions without success. These are the errors from PHP: Warning: move_uploaded_file(images/img01.jpg): failed to open stream: Permission ...
Leonardo's user avatar
0 votes
2 answers
1k views

PHP7 can't find executable even though PHP is working

I installed php7.1 using the iuscommunity repo. It works fine and I can run php files via apache normally e.g. http://example.com/test.php, however I cannot find the executable, if I run: php -v -...
user69904's user avatar
  • 231
1 vote
1 answer
2k views

Roundcube 1.3.8 + Memcached + PHP 7.3

I'm testing out moving my Roundcube 1.3.8 install over to php 7.3. It's load balanced and I have been using memcache for session storage with php 5 without any issues: $config['session_storage'] = '...
Aaron A's user avatar
  • 249
0 votes
0 answers
648 views

Segmentation fault detected in apache error log

I have this problem on my Ubuntu Server: Problem Some time my sites are not reachable from the browser and I can see a "Time Out Error", however the server replies to PING requests. I checked the ...
Nick's user avatar
  • 1
1 vote
1 answer
2k views

How to make httpd24 (scl) use php >= 7.2 (RHEL 6.10)?

I am fairly new to working with RHEL and I was wondering if it was possible to have an httpd24 instanced installed as a software collection httpd24.x86_64 1.1-18.el6 @rhel-x86_64-server-6-rhscl-...
DamianJ's user avatar
  • 11
0 votes
0 answers
905 views

php 7 on Fedora 27: Uncaught Error: Call to undefined function sqlsrv_connect()

I have installed sqlsrv & pdo_sqlsrv per https://github.com/Microsoft/msphpsql/tree/PHP-7.0-Linux I created a test program that works perfectly from the command line but not when viewed in a web ...
faultintolerant's user avatar
1 vote
1 answer
548 views

How to installing PHP71 on RHEL 7 that requires HTTPD24 with HTTPD

We have a RHEL 7 server that is offline and only connected to RedHat repo via a satelite. When i try to manual install the PHP71 from the rpm files, it hits an error that say Requires HTTPD24_HTTPD ...
ipohfly's user avatar
  • 115
1 vote
1 answer
39 views

Malicious Code detected generated error page

We started getting an error page when we post iframes or scripts on our sites. Whether it's from the admin or a test script on a "test.php" page. The problem is we don't know what is generating this ...
Melonheadjr44's user avatar
0 votes
2 answers
2k views

php -v command not found but getting phpinfo();

I have installed php and in cmd on doing sudo /usr/local/php7/bin/php -v it shows the php version but on doing php -v its not showing getting us command not my phpinfo() also workd how can ...
fernandus's user avatar
  • 143
0 votes
1 answer
805 views

Upgrading simply from php 5.6.x to 7.x on CentOS 7 with Nginx and php-fpm

I am trying to upgrade the PHP version on a Digital Ocean server from 5.6.19 to the latest PHP 7.2. A lot of instructions found online point to "php72", which makes me wonder if 5.6.19 will be ...
Khom Nazid's user avatar
1 vote
2 answers
5k views

Installation of pecl_http on PHP 7.3 / Debian 9 Stretch fails

I am trying to install pecl_http in PHP 7.3, however, there is an error: root@dev:/etc/php/7.3/mods-available# pecl install pecl_http downloading pecl_http-3.2.0.tgz ... Starting to download ...
Pinke Helga's user avatar
0 votes
1 answer
554 views

Combine 2 spf records into 1

I have 2 spf records for my email example.com The first one is from my hosting provider. I DO send and receive email through my hosting provider. Emails from here do not go to spam. "v=spf1 ?include:...
Mike Meidl's user avatar
1 vote
0 answers
272 views

MBString Segfault with apache2 ubuntu 18.04 Laravel 5.7

I am working on a script API with Laravel 5.7. When I try and run a command on the API, I get the following segfault segfault at 7ffc466e9ee8 ip 00007f2adb4144ed sp 00007ffc466e9ef0 error 6 in ...
ArcticMediaRyan's user avatar
0 votes
2 answers
560 views

PHP Upload_max_filesize for different domains?

I have various domains hosted on one server - however they all seem to load from the same PHP.ini. I want the different domains to be able to upload different filesizes, for instance, our public ...
Chud37's user avatar
  • 123
1 vote
0 answers
469 views

PHP 7.2 - Apache 2.4 memory limit issue

We are running Ubuntu 16.04 LTS with Apache 2.4 and PHP 7.2. 9 times out of 10, the web app works well, but at a random interval, we come across this error message. "Allowed memory of 134217728 bytes ...
Sunil Shenoy's user avatar
0 votes
1 answer
302 views

Error: Package: libmemcached-opt-libs Requires: libevent2

When I try to run yum update it says libmemcached-opt-libs requires libevent2 but I couldn't find how to install libevent2. When I try yum install libevent2 I get No package libevent2 available ...
freedom_mine's user avatar
0 votes
1 answer
1k views

httpd24 by scl doesn't render php

I have installed httpd24 with php72 by scl in a CentOS 6.10 x86-64 environment. But Apache doesn't render php files and display them as text. Installed php using, yum install php72-php php72-php-...
Damith's user avatar
  • 109
0 votes
0 answers
288 views

php-fpm status shows listen queue 0 when it is delaying requests

I have a php-fpm server running on a high-traffic website (behind nginx). It is frequently reaching a point where the active processes are equal to the maximum number of processes, which is the most ...
user29745's user avatar
  • 159
0 votes
0 answers
140 views

Change source file still leads to crash even with cache

Setup: Wordpress with WordFence on Nginx with FastCGI enabled + PHP7.0 with opcache enabled (validate timestamps is false) Story: With the above setup and confirmed that both FastCGI has HTML cached ...
Kalman's user avatar
  • 71
0 votes
1 answer
41 views

How big of an impact requests per second and memory consumption can have on costs [duplicate]

Gentlemen, We are in a bit of a debate here. An old one, php framework or no framework. We ran some tests and core php clearly takes the lead in handing requests per second and better memory ...
Shahzaib's user avatar
2 votes
1 answer
9k views

What is PHP7 error "not found or unable to stat"?

I am receiving the following error log on my apache2 server: [Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to ...
dmuensterer's user avatar
1 vote
2 answers
5k views

Unable to install PHP 7.3 on Centos 7

I have a server currently running CentOS 7.6 and PHP 7.1.25. I want to update my PHP version to 7.3 (released on 6 Dec) but I'm having some troubles. I followed this guide but when I run yum update, ...
Bird87 ZA's user avatar
  • 113
2 votes
2 answers
3k views

What is causing Google App Engine 504 Gateway Timeout Every 10 minutes or so?

I just migrated our production website over to Google App Engine last night, and now the app starts giving a 504 Gateway Timeout after about 10-15 minutes of inactivity. But I've been running a test ...
Kenny Wyland's user avatar
0 votes
0 answers
63 views

Increase in memory utilization after upgrading to httpd 2.4.34 from 2.4.23 for 7.2

We upgraded from httpd 2.4.23 to 2.4.32 . After upgrade, we noticed mpm module got changed from preforx to event in 2.4.23 $ /apps/httpd.2.4.23/bin/httpd -M | grep mpm mpm_prefork_module (...
Zama Ques's user avatar
  • 523
4 votes
1 answer
11k views

PHP 7.2 yum installation on Centos 7 misses libargon2.so

Command: yum install php php-cli php-gd php-curl php-mysql php-zip php-fileinfo php-mbstring Gives following error: Error: Package: php-cli-7.2.12-1.el7.remi.x86_64 (remi-php72) Requires:...
Rauli Rajande's user avatar
1 vote
0 answers
32 views

Nginx serving PHP file as download [duplicate]

I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file ...
Rhys Perry's user avatar
1 vote
0 answers
403 views

Trying to update PHP servers to PHP7-cgi (7.2)

I'm Trying to update PHP servers to php7-cgi (7.2) in my .htaccess file. Just not sure how exactly to edit the code, haven't been able to get it to work. Here is the code in the .htaccess file: ...
jessica's user avatar
  • 11
0 votes
0 answers
471 views

Increase amount of PHP processes executed by Apache from the same client

We have an apache server setup with PHP 7.1 on it. It's sole job is to receive and process requests from another server that is sending XML files for processing. This server can send upwards of 20 ...
Mark Cameron's user avatar
0 votes
1 answer
3k views

Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5

Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the ...
tip2tail's user avatar
  • 103
17 votes
2 answers
69k views

understand correctly pm.max_children tuning

I have done some investigations and I have found this to calculate and adjust pm.max_children value https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ but for example : ...
TooNetCreation's user avatar

1 2
3
4 5
7