(Last Updated On: January 26, 2019)

To Install PHP 7.3 on Fedora 29 / Fedora 28, you need to add Remi repository to your system. PHP 7.3 has been released with plenty of new features, bug fixes, performance improvement, deprecations as well as new functionalities. You can read more on the PHP ChangeLog page.

For other operating systems, use below guides:

How to Install PHP 7.3 on Arch Linux and Manjaro

How to Install PHP 7.3 on Debian 9 / Debian 8

How to install PHP 7.3 on Ubuntu 18.04 / Ubuntu 16.04 / Debian

How to Install PHP 7.3 on CentOS 7 / Fedora

How to install PHP 7.3 / PHP 7.3-FPM on Linux Mint 19

Install PHP 7.3 on Fedora 29 / Fedora 28

Update your Fedora system.

sudo dnf -y update

Add Remi repository to Fedora 29:

sudo dnf install -y  http://rpms.remirepo.net/fedora/remi-release-29.rpm

Add Remi repository to Fedora 28:

sudo dnf -y install http://rpms.remirepo.net/fedora/remi-release-28.rpm

To install PHP 7.3 on Fedora 29 / Fedora 28, enable the repository and install PHP 7.3 packages.

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --set-enabled remi-php73
sudo dnf config-manager --set-enabled remi

You can use remi-7.3 stream to install PHP 7.3

sudo dnf module install php:remi-7.3

Install PHP extensions using the name format php-<extension>. Example:

sudo dnf -y install php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

You should now have PHP 7.3 installed on Fedora 29 / Fedora 28.

$ php -v
PHP 7.3.1 (cli) (built: Jan 8 2019 13:55:51) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies

The default PHP configuration file is etc/php.ini. For Nginx web server, use PHP-FPM (FastCGI Process Manager) configuration file to set CGI settings /etc/php-fpm.d/www.conf

When PHP settings are modified, you may need to restart your Web server.

sudo systemctl restart nginx
sudo systemctl restart httpd