2022 Developer Survey is open! Take survey.

Questions tagged [php7]

The tag has no usage guidance.

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

Converting XLSX (or ODS) to PDF with no admin rights

I am writing a code in PHP that open and edit an Excel File (template) using PHPExcel library. At the end convert to PDF. I tried use all writers to PDF that PHPExcel has: Dompdf, Mpdf and Tcpdf. None ...
user avatar
  • 101
0 votes
1 answer
38 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 ...
user avatar
1 vote
4 answers
102 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 ...
user avatar
  • 131
1 vote
1 answer
22 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 ...
user avatar
  • 331
0 votes
0 answers
138 views

How to activate a PHP extension (php-memcached from AWS)?

I want to install in Ubuntu 20.04 with PHP 7.4 the AWS ElastiCache Memcached Cluster Client to cache a WordPress website using the W3 Total Cache plugin. For this, I followed the AWS docs, but for ...
user avatar
  • 101
0 votes
1 answer
23 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 ...
user avatar
  • 111
0 votes
2 answers
407 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....
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
1 answer
144 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 ...
user avatar
  • 1
0 votes
1 answer
68 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" ...
user avatar
  • 101
0 votes
1 answer
85 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 ...
user avatar
0 votes
1 answer
146 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/...
user avatar
1 vote
1 answer
1k 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....
user avatar
1 vote
1 answer
63 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 ...
user avatar
  • 11
0 votes
1 answer
50 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 ...
user avatar
0 votes
1 answer
4k 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
  • 25.4k
0 votes
1 answer
191 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 ...
user avatar
  • 183
2 votes
1 answer
2k 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 ...
user avatar
  • 339
0 votes
1 answer
312 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, ...
user avatar
  • 394
0 votes
1 answer
109 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....
user avatar
  • 171
1 vote
1 answer
329 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 ...
user avatar
  • 24.7k
1 vote
0 answers
26 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 ...
user avatar
  • 113
0 votes
0 answers
466 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 ...
user avatar
0 votes
0 answers
172 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://...
user avatar
  • 61
0 votes
1 answer
915 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 ...
user avatar
0 votes
1 answer
762 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 ...
user avatar
  • 169
1 vote
1 answer
210 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 ...
user avatar
  • 155
0 votes
0 answers
120 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 ...
user avatar
0 votes
1 answer
1k 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 ...
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 ...
user avatar
  • 21
1 vote
2 answers
925 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 ...
user avatar
  • 7
0 votes
1 answer
160 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, ...
user avatar
  • 339
0 votes
1 answer
933 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 ...
user avatar
  • 303
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....
user avatar
  • 41
0 votes
1 answer
96 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. ( ...
user avatar
  • 1,288
3 votes
1 answer
7k 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 ...
user avatar
1 vote
1 answer
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 ...
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-...
user avatar
3 votes
0 answers
2k 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 ...
user avatar
  • 41
2 votes
3 answers
6k 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-...
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 ...
user avatar
1 vote
1 answer
4k 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'...
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 ...
user avatar
  • 101
2 votes
1 answer
7k 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 ...
user avatar
  • 121
1 vote
1 answer
192 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 ...
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 ...
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 ...
user avatar
  • 135
0 votes
1 answer
3k 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 ...
user avatar
  • 31
1 vote
2 answers
1k views

I receive error while installing php 7 on redhat 7

I'm trying to install php 7 with below script: yum -y install php php-mysql php-pecl-zip php-xml php-mbstring php-gd but I receive below error: Error: Package: php-7.0.26-1.el7.remi.x86_64 (remi-...
user avatar
  • 11