Questions tagged [php7]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
117 views

php_value settings in .htaccess

I am in the process of migrating an Apache WordPress site from CentOS7 to AlmaLinux9. I installed standard LAMP stuff on the AlamLinux9 system, and restored the MySQL and copied over the html ...
TexasTim's user avatar
0 votes
0 answers
31 views

Specific email sender address for website vhosts

I have Ubuntu 20.04 LTS server, with Apache2 (mpm_event), PHP 7.4 FPM, postfix (as a relay) installed. This server hosts several sites (WordPress). The problem is that the sites are sending by default ...
NukDokPlex's user avatar
0 votes
1 answer
416 views

Alpine Linux PHP7 to PHP8 upgrade

I run a web server on Alpine Linux. Previously I used PHP7, and I wanted to upgrade to PHP8. What is the proper way to do this? I tried with apk del php7 and then apk add php8, but it looks like this ...
T. Pluess's user avatar
  • 490
0 votes
1 answer
285 views

How to use Available Package instead of Installed Package when Yum spits out a required error

First and foremost, I blindly followed a tutorial to upgrade from PHP 7.3 to PHP 7.4, which called for yum remove "php*" -y Of course this just screwed up everything. It removed two very ...
Matthew Koster's user avatar
1 vote
4 answers
916 views

Parallel execution of remote commands

The setup: I have a PHP script (currently written for PHP5.5, but the server it runs from has 7.4) that processes files that contain lists of linux servers, then runs a bash or perl script via ssh on ...
solenoid's user avatar
  • 131
1 vote
1 answer
165 views

Apache virtualhost configuration issue

I'm developing a symfony application and in trying to remove index.php from the url, I used the following virtualhost configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost ...
sisko's user avatar
  • 341
0 votes
1 answer
78 views

Constant concurrent connections drain my server storage

I apologize in advance if this question is in a wrong forum, this is my first question here! My client has hosting with Aliyun Cloud (Alibaba Cloud in China). I've deployed a microsite to their ...
Siniša's user avatar
  • 111
0 votes
2 answers
1k views

How to install PHP on CentOS has preinstalled Apache HTTPD?

I'm using CentOS 7. I wanted to install PHP 7 so I used remi-php (latest PHP version of yum is 5.4). Since the HTTPD version of yum is too old, I compiled the latest HTTPD version from the source code....
Tần Quảng's user avatar
0 votes
0 answers
61 views

Need help about PHP modules on RHEL 7.2- Apache shows code instead of executing it

On my rhel 7.2 system, I finished installing Apache 2.4.46 and PHP 7.4.19. However, when I start apache and access to my own php file, it shows source code instead of executing it. I find some ...
TRONG NGUYEN's user avatar
0 votes
1 answer
640 views

{OSTICKET} Normal users cannot login in Chrome or Edge, but agents can!

I am trying a ticketing system called osTicket, to see if we can implement it if we like it. The problem is, user login only works in Firefox. Normal users cannot login in Chrome or Edge, but agents ...
1511's user avatar
  • 1
0 votes
1 answer
781 views

Setting PHP extension_dir path in php.ini not working as i expected

When i set the extension_dir in php.ini and use the full path like this, it works extension_dir = "/home/appie/Bureaublad/astroapp/phpdesktop-linux-72.1/ext" extension = "sweph.so" ...
Arjan's user avatar
  • 101
0 votes
1 answer
165 views

RHEL PHP 7.3.5 with mysqlnd and apache

I'll start by stating I'm not a server admin by trade, so I've been struggling with this task. PHP 7.3.5 was already installed on RHEL7 running Apache. I have installed MySQL successfully and now I am ...
Dan's user avatar
  • 173
1 vote
1 answer
414 views

Ondrej repo on Ubuntu 18.04

I'm following a guide for loading PHP 7.4 on Ubuntu 18.04 from the Ondrej Surý repo and noticed the CAVEAT about apache2 and nginx from the 1. If you are using php-gearman, you need to add ppa:ondrej/...
Server Fault's user avatar
1 vote
1 answer
3k views

connect mssql database on Centos 8 using php 7.4

I cannot figure out the way to connect MSSQL 2014 database on centos 8 using PhP 7.4. I found GitHub link and downloaded CentOS8-7.4.tar and extracted the php_sqlsrv_72_ts.so and php_pdo_sqlsrv_72_ts....
Ratan Thapa's user avatar
1 vote
1 answer
106 views

Older php versions are getting auto installed

I use Sury for Debian 10. Somehow I noticed, it's trying to install older versions and new versions. Is their any way, I can do something so that, apt-get update or apt-get dist-upgrade, doesn't ...
Alex's user avatar
  • 11
0 votes
1 answer
73 views

Google Chrome scrolling suddenly stopped on my website

I have a website that was working OK until this weekend. Today I noticed that a number of browsers lost the ability to scroll the content vertically. The only modifications done to the server or the ...
christerk's user avatar
0 votes
1 answer
5k views

Problem with installing PHP 7.4 on Ubuntu 14.04 LTS

I'm on Ubuntu 14.04 and PHP 7.0. I need to update PHP to PHP 7.4. I added ppa:ondrej/php repository. Still, it says Unable to locate package php7.4 when trying to update PHP. $ sudo add-apt-repository ...
Pradeep Sanjeewa's user avatar
0 votes
0 answers
61 views

How to have .html files pass through the PHP preprocessor?

I would like to configure an Apache webserver 2.4.37 to hide the fact that it is serving PHP files. For this, I renamed all .php files to .html and inserted the following directive: AddType ...
dr_'s user avatar
  • 29.2k
0 votes
1 answer
246 views

Try to install php 73 but it installs php 74

I had php 7.4.10 in my centos 7 server but I want to downgrade to php 7.3 I uninstalled the php 7.4 and tried this code. wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ...
DavSev's user avatar
  • 203
2 votes
1 answer
3k views

How to make Apache use PHP 7.3 on server upgraded to Debian 10?

I am upgrading a server from Debian 9 (stretch) to Debian 10 (buster), and am aware (and intend) that this results in PHP being upgraded from PHP 7.0 to PHP 7.3. php -v does indeed show that PHP 7.3 ...
dave559's user avatar
  • 359
0 votes
1 answer
1k views

Why a PHP module is not loaded into PHP?

Showing my case how to debug the problem, that a PHP module is not loaded into PHP. I use OpenSUSE v42.2 Linux OS, with Apache webserver, PHP v7.1, Mysql. Because it does not provide PHP v7.1 I need, ...
klor's user avatar
  • 404
0 votes
1 answer
283 views

What is the cause of the bad performance of NGINX / PHP which host only 1 Wordpress website

I spawned a LXC container on our (Proxmox) hypervisor (we run multiple containers on it without any performance issue). I installed NGINX and PHP7.4 on it and host (currently) only 1 Wordpress website....
CodeNinja's user avatar
  • 201
1 vote
1 answer
604 views

fastcgi php nginx errorlog messed up

I have a strange problem, the errorlog of my nginx server is somehow messed up: PHP errors seem to be all written in one line and repeating itself recursively. This way the llog grows a few GB within ...
rubo77's user avatar
  • 28.3k
1 vote
0 answers
39 views

Install PHP in Linux Mint 19.1

I am new in Linux Mint. I installed Linux Mint 19.1. Now I would like to install PHP7.2 in Linux Mint. I found a way in this tutorial and another way in this tutorial. I got another way in this ...
Foysal's user avatar
  • 113
0 votes
0 answers
574 views

Http requests hanging on new CentOS 7 + apache install. TTFB of 30 secs

we've just migrated from CentOS 6.5 with PHP 5.3 to CentOS 7.7 with PHP 7.0 and are getting strange behaviors with some http requests Most of the time, pages & resources load super fast, and some ...
mboisvert-bravad's user avatar
0 votes
0 answers
247 views

Debian Stretch + Apache 2.4 + PHP 5.6 + PHP 7.0 and virtual hosts

I have a little Debian 9 server with Apache 2.4 installed. I need it to serve my home with a Nextcloud service, which requires PHP7.0. Then I also need to get it to serve a rather old service (http://...
MiniTux's user avatar
  • 71
0 votes
1 answer
1k views

Package Dependency when Upgrading to PHP7

Not sure if this is a correct place to post. I have recently upgraded to PHP 7 on one of our webservers, however, when I do the same for another webserver, I get the below dependency error. The ...
Avinesh Kumar's user avatar
0 votes
1 answer
1k views

RHEL 8 AppStream does not contain PHP 7.1?

I have a fresh RHEL 8 system. I thought I could install PHP 7.1 via the Software Collections. But this package is not available. Repository list: $ sudo dnf repolist Updating Subscription ...
robsch's user avatar
  • 169
1 vote
1 answer
285 views

Install php 7.X (for new wiki) alongside php 5.3 (for old wiki) on CentOS 6

I would like to replace the ancient Mediawiki (version 1.21.2,l PHP version 5.3.3, MySQL 5.1.73) used by my company with a brand new Mediawiki site running the latest version (requires php 7.0.13 or ...
Olumide's user avatar
  • 177
0 votes
0 answers
170 views

Nginx php-fpm optimization in centos 7

My server setup uses cloud azure VMSS. I have an issue when testing 200 users' requests that produce error 502 and non-HTTP response message connection timed out connect. Already followed some ...
Steven Audy's user avatar
0 votes
1 answer
2k views

Showing "Cannot create SSL client. SSL is not enabled in this build" when connecting to Cosmos DB (MongoDB API)

I am facing the error "Cannot create SSL client. SSL is not enabled in this build" when connecting to CosmosDB using the MongoDB API. My PHP configuration suggests SSL support is included in my ...
Steven Audy's user avatar
-2 votes
1 answer
6k views

Unable to install php 7 in ubuntu 14.04

Commands I have tried : sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 Getting error as Reading package lists... Done Building dependency tree ...
sowmya's user avatar
  • 21
1 vote
2 answers
1k views

php curl not getting installed on Debian 8 [duplicate]

I am using linux debian 8. I have webmin/virtualmin installed and 1 domain is running over the server. Php version is 7.1. But, i can not run curl on my server. i tried to install curl but it throws ...
Amit's user avatar
  • 7
0 votes
1 answer
183 views

Running Drupal's drush cron jobs with a newer PHP version from Software Collections

How do you run Drupal's drush cron jobs when your server has a newer PHP version installed from Software Collections? The server is running Scientific Linux 7, which comes with PHP 5.4, but we need, ...
dave559's user avatar
  • 359
0 votes
1 answer
1k views

Init script not picking up environment variable set in /etc/environment?

What is the right way to set a global environment variable, such that it is picked up all processes, including those started via init.d (service <service> start), on Ubuntu? Details: I first ...
Andre M's user avatar
  • 433
3 votes
3 answers
7k views

Installation conflicts with httpd on Amazon Linux AMI

When installing 'yum install -y php70 mysql56-server php70-mysqlnd' on an Amazon Linux AMI server, I'm receiving these conflicts: Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1....
Paul's user avatar
  • 41
0 votes
1 answer
240 views

How to connect PHP 5.6 to SQL db after compilation

I installed PHP 5.6 from source on Debian server 9 server. The OpenSSL version in Debian 9 is too new for PHP 5.6, so I had to compile an older version in /opt/openssl to use it with PHP 5.6. ( ...
dubis's user avatar
  • 1,450
4 votes
1 answer
8k views

PHP Not Loaded on CentOS 7/Apache

I've installed PHP 7.2.11 on my CentOS 7 VPS along with Apache; however, I can't seem to load the PHP module into Apache so that my server can serve PHP content. Right now, if I go to a URL that ...
Can Sürmeli's user avatar
1 vote
2 answers
5k views

Can't find php-zip extension for php 7.1 on CentOS 7

I am attempting to install Magento 2.2.5 on a new CentOS 7 server with PHP 7.1. I can't seem to find how to install and/or enable the php-zip extension. The issue I'm trying to resolve is this (via ...
jamil's user avatar
  • 141
1 vote
1 answer
1k views

Does Apache2 auto install when installing PHP 7.2?

Anyone else experiencing this issue? When I installed PHP 7.2, it somehow auto installed Apache2 with it. This is a fresh Ubuntu 16.04 with only nginx installed on it to serve static files. add-apt-...
Raymond Rosenberg's user avatar
3 votes
0 answers
3k views

Apache mod-security gives "Loaded PCRE do not match with compiled!"

I've got a webserver installed with Apache and PHP with mod-security. The problem is that mod-security seems to be incompatible with the PHP installation. I get the following result in the apache ...
Ugluk's user avatar
  • 41
5 votes
3 answers
9k views

Installing php7 on alpine: missing libcrypto and libssl

I tried to setup a LEMP stack over Alpine GNU/Linux Distribution running on a VM WITHOUT docker. Then I tried to install the php7-mysqli over via community repositories with: sudo apk add php7-...
Dimitrios Desyllas's user avatar
1 vote
2 answers
3k views

Debian 9.4: cannot install php7.2-curl

Trying to install php7.2-curl library from a well-known repository deb.sury.org on Debian 9.4. But it gives the error: The following packages have unmet dependencies: php7.2-curl : Depends: libcurl4 ...
ademchenko's user avatar
1 vote
1 answer
6k views

How to run script as php user

I have a script which is called from php using the shell_exec command on a server running Ubuntu. The script runs properly when called from the command line via ssh, but not when called from php. I'...
Bar Smith's user avatar
  • 113
0 votes
0 answers
1k views

Unable to install PHPMyAdmin with PHP 7.1

I previously installed php56 in aws but i had to update to 7.1. When I do, I couldn't install phpmyadmin anymore. I tried to search on the net but all are said to remove php5.6 then to install 7.1. It ...
Nerdar's user avatar
  • 101
2 votes
1 answer
10k views

How to make my system centos 7 use primarily ipv4 if it's available

I have CentOS 7 running on an AWS machine. I recently enabled IPv6, and everything was working fine – except for the fact that PHP connection requests (also curl from command line) always prefer to ...
Grego's user avatar
  • 121
1 vote
1 answer
203 views

lag starting php 7.1.13 on CentOS 7.4.1708. how to fix?

PHP 7.1.13 on CentOS 7.4.1708 Inexplicable lag (2 to 10 seconds) just invoking php, even with empty script or just to get version info. I have never seen this before on any system and I'm not sure ...
fbas's user avatar
  • 151
1 vote
3 answers
2k views

Yum install php v5.4 packages while I have installed php 7

I have installed PHP version 7 on my centOs. Now I got an error says: undefined function mb_internal_encoding() So I decided to install php-mbstring (using yum install php-mbstring) but I face the ...
Leo's user avatar
  • 111
2 votes
1 answer
7k views

Services timed out at boot but could start manually what could be the problem?

I've installed apche2 and php7.1-fpm recently and added them to boot with systemctl enable apache2 systemctl enable php7.1-fpm After rebooting the system systemctl status shows the following: sudo ...
Josh's user avatar
  • 135
0 votes
1 answer
4k views

how to install php7.0-mbstring in debian 9.3

I can't install php7.0-mbstring: The following packages have unmet dependencies: php7.0-mbstring : Depends: php7.0-common (= 7.0.19-1) but 7.0.20-1~dotdeb+8.2 is to be installed E: Unable to ...
Shade's user avatar
  • 31