<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>how to Install php 7.4 on debian 10 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-php-7-4-on-debian-10/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 26 Dec 2019 23:27:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install php 7.4 on Debian 10 / 9 with Nginx Server</title>
		<link>https://www.osradar.com/how-to-install-php-7-4-on-debian-10-9-with-nginx-server/</link>
					<comments>https://www.osradar.com/how-to-install-php-7-4-on-debian-10-9-with-nginx-server/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 29 Dec 2019 06:21:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to Install php 7.4 on debian 10]]></category>
		<category><![CDATA[install php on debian]]></category>
		<category><![CDATA[php 7.4]]></category>
		<category><![CDATA[php installation on linux]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17057</guid>

					<description><![CDATA[<p>Introduction: Today, we are going to cover the Installation of PHP 7.4 on Debian 10 / 9 with Nginx Server Installation. PHP 7.4 comes with the more advanced features and improvements in order to help the Developers provide convenient way for developing web sites and writing different scripts. So, let&#8217;s start our Installation. Installing PHP [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-php-7-4-on-debian-10-9-with-nginx-server/">How To Install php 7.4 on Debian 10 / 9 with Nginx Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2><strong>Introduction:</strong></h2>



<p>Today, we are going to cover the Installation of PHP 7.4 on Debian 10 / 9 with Nginx Server Installation. PHP 7.4 comes with the more advanced features and improvements in order to help the Developers provide convenient way for developing web sites and writing different scripts. So, let&#8217;s start our Installation.</p>



<h3><strong>Installing PHP 7.4 on Debian 10 / 9</strong></h3>



<p>To Install PHP 7.4 on Debian you will be required to add a repository. The latest builds of PHP for Debian are available on SURY PHP PPA repository. Firstly we will add the repo and then move towards the Installation of PHP and Nginx.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>Simply run the below command to update &amp; upgrade your system. After updating reboot your system.</p>



<pre class="wp-block-verse">sudo apt upgrade<br>sudo apt upgrade -y &amp;&amp; sudo reboot</pre>



<h3><strong>Step 2: Adding SURY PHP PPA Repository</strong></h3>



<p>Download the GPG key by running</p>



<pre class="wp-block-verse">sudo apt -y install lsb-release apt-transport-https ca-certificates <br>sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg</pre>



<p>Now, add a repository by typing</p>



<pre class="wp-block-verse">echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list</pre>



<h3><strong>Step 3: Install PHP 7.4 on Debian 10 / 9</strong></h3>



<p>It&#8217;s time to install php 7.4 on your system. Don&#8217;t forget to update your packages before Installing php.</p>



<pre class="wp-block-verse">sudo apt update</pre>



<p>Now, run the given command to Install php 7.4 on Debian</p>



<pre class="wp-block-verse">sudo apt -y install php7.4</pre>



<p>Press <strong>Y</strong> when prompt to continue the process of Installing PHP 7.4 on Debian 10 / 9</p>



<pre class="wp-block-verse">Reading package lists… Done<br> Building dependency tree       <br> Reading state information… Done<br> The following additional packages will be installed:<br>   apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1<br>   libcurl4 libgdbm-compat4 libgdbm6 libjansson4 libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libpcre2-8-0 libperl5.28 librtmp1<br>   libsasl2-2 libsasl2-modules libsasl2-modules-db libsodium23 libssh2-1 perl perl-modules-5.28 php-common php7.4-cli php7.4-common php7.4-json<br>   php7.4-opcache php7.4-readline psmisc ssl-cert<br> Suggested packages:<br>   apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser php-pear libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal<br>   libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make<br>   libb-debug-perl liblocale-codes-perl openssl-blacklist<br> The following NEW packages will be installed:<br>   apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1<br>   libcurl4 libgdbm-compat4 libgdbm6 libjansson4 libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libperl5.28 librtmp1 libsasl2-2<br>   libsasl2-modules libsasl2-modules-db libsodium23 libssh2-1 perl perl-modules-5.28 php-common php7.4 php7.4-cli php7.4-common php7.4-json<br>   php7.4-opcache php7.4-readline psmisc ssl-cert<br> The following packages will be upgraded:<br>   libpcre2-8-0<br> 1 upgraded, 36 newly installed, 0 to remove and 7 not upgraded.<br> Need to get 15.0 MB of archives.<br> After this operation, 76.9 MB of additional disk space will be used.<br> Do you want to continue? [Y/n] y</pre>



<p>Run the following command to Install additional packages with PHP 7.4 on Debian 10 / 9</p>



<pre class="wp-block-verse">sudo apt-get install php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip}</pre>



<p>Similarly you can follow the same syntax to install your other packages with php 7.4</p>



<pre class="wp-block-verse">sudo apt-get install php7.4-xxx</pre>



<h3><strong>Step 4: Installing Nginx on Debian 10 / 9</strong></h3>



<p>As you know that you will be required to Install a web server in order to gain access for using and testing php on your system. By default web server is Apache but Nginx provide more convenience so I will recommend to use Nginx on your Debian system. Firstly, disable the Apache server by running</p>



<pre class="wp-block-verse">sudo systemctl disable --now apache2</pre>



<p>Now, Install the fpm extensions and nginx packages.</p>



<pre class="wp-block-verse">sudo apt-get install nginx php7.4-fpm</pre>



<p>PHP fpm Configuration files are located in the directory <strong>/etc/php/7.4/fpm/</strong></p>



<p>Make sure that the services are running properly.</p>



<pre class="wp-block-verse">$ systemctl status php7.4-fpm nginx<br> ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager<br>    Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)<br>    Active: active (running) since Tue 2019-12-24 17:32:26 UTC; 14s ago<br>      Docs: man:php-fpm7.4(8)<br>  Main PID: 12151 (php-fpm7.4)<br>    Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"<br>     Tasks: 3 (limit: 2377)<br>    Memory: 14.7M<br>    CGroup: /system.slice/php7.4-fpm.service<br>            ├─12151 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)<br>            ├─12152 php-fpm: pool www<br>            └─12153 php-fpm: pool www<br> Dec 24 17:32:26 deb10 systemd[1]: Starting The PHP 7.4 FastCGI Process Manager…<br> Dec 24 17:32:26 deb10 systemd[1]: Started The PHP 7.4 FastCGI Process Manager.<br> ● nginx.service - A high performance web server and a reverse proxy server<br>    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)<br>    Active: active (running) since Tue 2019-12-24 17:32:27 UTC; 12s ago<br>      Docs: man:nginx(8)<br>  Main PID: 12362 (nginx)<br>     Tasks: 2 (limit: 2377)<br>    Memory: 3.2M<br>    CGroup: /system.slice/nginx.service<br>            ├─12362 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;<br>            └─12363 nginx: worker process<br> Dec 24 17:32:27 deb10 systemd[1]: Starting A high performance web server and a reverse proxy server…<br> Dec 24 17:32:27 deb10 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument<br> Dec 24 17:32:27 deb10 systemd[1]: Started A high performance web server and a reverse proxy server.</pre>



<p>You&#8217;ve all done. Enjoy developing your web applications and other projects with PHP 7.4 with greater and advanced functionalities on Debian system.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-php-7-4-on-debian-10-9-with-nginx-server/">How To Install php 7.4 on Debian 10 / 9 with Nginx Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-php-7-4-on-debian-10-9-with-nginx-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
