# Linux

# SSL Linux

# Configure local https on ubuntu

<div data-processed="true" data-subtree="aimfl,mfl" id="bkmrk-tset-up-a-local-http" jscontroller="v48bt" jsuid="jQOmsf_9" style="display: contents;">T0 set up a local HTTPS server on Ubuntu, use a tool like</div>`mkcert` for simplicity or `openssl` for more control, and then configure your web server (e.g., Apache) to use the generated certificates. The recommended method is to install and use `mkcert`, which generates a trusted, local Certificate Authority (CA) to create self-signed certificates for `localhost` or custom hostnames without browser warnings. Alternatively, you can generate a self-signed certificate using `openssl`, which requires more manual steps to create the key, certificate, and to trust it in your browser.<span class="uJ19be notranslate" data-processed="true" data-wiz-uids="jQOmsf_f,jQOmsf_g,jQOmsf_h"><span class="vKEkVd" data-animation-atomic="" data-processed="true"> </span></span>

<div class="Y3BBE" data-hveid="CAEQAA" data-processed="true" data-sfc-cp="" id="bkmrk-" jsaction="rcuQ6b:&jQOmsf_8|npT2md" jscontroller="zcfIf" jsuid="jQOmsf_8">  
</div><div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--1" jsaction="rcuQ6b:&jQOmsf_m|npT2md" jscontroller="KHhJQ" jsuid="jQOmsf_m">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-method-1%3A-using-mkce" jscontroller="a7qCn" jsuid="jQOmsf_n" role="heading">**Method 1: Using `mkcert` (Recommended)**</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk--2" jscontroller="a7qCn" jsuid="jQOmsf_n" role="heading">  
</div><div class="Y3BBE" data-hveid="CAMQAA" data-processed="true" data-sfc-cp="" id="bkmrk-this-video-demonstra" jsaction="rcuQ6b:&jQOmsf_s|npT2md" jscontroller="zcfIf" jsuid="jQOmsf_s">This video demonstrates how to set up HTTPS with mkcert and enable HTTPS for localhost: <div data-processed="true" data-wiz-uids="jQOmsf_u,jQOmsf_v" jscontroller="uDeH3" jsuid="jQOmsf_t"><div data-processed="true"><div data-processed="true" data-ved="2ahUKEwjciuuK3_qQAxXnn2MGHQvCCysQ-bUQegQIAxAB"><div class="Q2WBBe" data-processed="true" jsuid="jQOmsf_v"><div aria-label="" class="r0hyfc" data-animation-nesting="" data-processed="true" jsuid="jQOmsf_u" tabindex="-1"><div class="RtAO3b" data-processed="true" data-sfc-cp="" data-wiz-uids="jQOmsf_x" jsaction="rcuQ6b:&jQOmsf_w|npT2md" jscallback="gfNXHe:&jQOmsf_t:U8wGUb" jscontroller="wMmv4c" jsuid="jQOmsf_w">  
</div></div></div></div></div></div></div><div class="Y3BBE" data-hveid="CAMQAA" data-processed="true" data-sfc-cp="" id="bkmrk-unconventional-codin" jsaction="rcuQ6b:&jQOmsf_s|npT2md" jscontroller="zcfIf" jsuid="jQOmsf_s"><div data-processed="true" data-wiz-uids="jQOmsf_u,jQOmsf_v" jscontroller="uDeH3" jsuid="jQOmsf_t"><div data-processed="true"><div data-processed="true" data-ved="2ahUKEwjciuuK3_qQAxXnn2MGHQvCCysQ-bUQegQIAxAB"><div class="Q2WBBe" data-processed="true" jsuid="jQOmsf_v"><div aria-label="" class="r0hyfc" data-animation-nesting="" data-processed="true" jsuid="jQOmsf_u" tabindex="-1"><div class="RtAO3b" data-processed="true" data-sfc-cp="" data-wiz-uids="jQOmsf_x" jsaction="rcuQ6b:&jQOmsf_w|npT2md" jscallback="gfNXHe:&jQOmsf_t:U8wGUb" jscontroller="wMmv4c" jsuid="jQOmsf_w"><div class="nrdPJf" data-processed="true" data-ved="2ahUKEwjciuuK3_qQAxXnn2MGHQvCCysQtbEQegQIAxAC" jsaction="click:&jQOmsf_w|T2P31d" jsuid="jQOmsf_x" role="button" tabindex="0"><div class="dumoDb YkW4Kb" data-processed="true">  
</div></div></div></div><div data-processed="true">[<div class="RhEuY" data-processed="true"><div class="SWvopd" data-processed="true" jscontroller="aNJZAb" jsuid="jQOmsf_10"><div class="Lki2rc" data-processed="true">  
</div><div class="JccCTc xG6cCf" data-processed="true">  
</div></div><div data-processed="true"><div class="SrjfCd" data-processed="true">Unconventional Coding</div><div class="Pcl3Vd" data-processed="true">YouTube • 31 Dec 2022</div></div></div>](https://www.youtube.com/watch?v=sDAX1uQzM8Y&t=98)</div></div></div></div></div></div>1. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Install `mkcert`**: Install the tool to manage local certificate authorities and certificates.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cp="">`sudo apt install mkcert`</span>
2. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Install the local CA**: Run `mkcert` to install a local CA that your system will trust.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cp="">`mkcert -install`</span>
3. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Create a certificate**<span data-processed="true" id="bkmrk-%3A-generate-a-certifi">: Generate a certificate and key for your local site (e.g., </span><span data-processed="true" id="bkmrk-localhost">`localhost`</span><span data-processed="true" id="bkmrk-%29">) or domain</span><span data-processed="true" id="bkmrk-.">. Point to note here in case of domain, ip address should be mapped to it before this command.</span></span>
    - <span class="T286Pc" data-sfc-cp="">`mkcert localhost 127.0.0.1`</span>
    - <span class="T286Pc" data-sfc-cp="">`sudo mkcert drupalwithdata.offline.com`</span>
    
    <span data-processed="true" id="bkmrk--3"></span>

<span data-processed="true" id="bkmrk-configure-your-serve-1"><span class="T286Pc" data-sfc-cp="">**Configure your server**: Configure your specific application or web server to use the generated `localhost.pem` (certificate) and `localhost-key.pem` (key) files.</span><span class="uJ19be notranslate" data-wiz-uids="jQOmsf_1x,jQOmsf_1y,jQOmsf_1z"><span class="vKEkVd" data-animation-atomic=""> </span></span></span><span data-processed="true" id="bkmrk--4"></span><span data-processed="true" id="bkmrk--5"></span><span data-processed="true" id="bkmrk--6"></span>

<div id="bkmrk--7"><div class="Fsg96" data-processed="true" data-sfc-cp="" jsaction="rcuQ6b:&jQOmsf_23|npT2md" jscontroller="KHhJQ" jsuid="jQOmsf_23">  
</div></div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-method-2%3A-using-open" jscontroller="a7qCn" jsuid="jQOmsf_24" role="heading">**Method 2: Using** [**openssl**](https://www.google.com/search?q=openssl&client=ubuntu-sn&hs=Apb&sca_esv=fdcf620e6fdd6b42&channel=fs&sxsrf=AE3TifMs3NUy9xJXuC_WremxvKGCiYWu5w%3A1763436008369&ei=6OUbaeOZFpmK4-EPgKT-0Aw&ved=2ahUKEwjciuuK3_qQAxXnn2MGHQvCCysQgK4QegQIBRAA&uact=5&oq=how+to+make+https+working+local+machine+server+in+ubuntu&gs_lp=Egxnd3Mtd2l6LXNlcnAiOGhvdyB0byBtYWtlIGh0dHBzIHdvcmtpbmcgbG9jYWwgbWFjaGluZSBzZXJ2ZXIgaW4gdWJ1bnR1MgUQIRigATIFECEYoAEyBRAhGJ8FMgUQIRifBUiDFVCQBVipEnAAeAKQAQCYAb0DoAH6EKoBCTAuMy4zLjAuMrgBA8gBAPgBAZgCCaACzxLCAgQQABhHmAMAiAYBkAYIkgcJMS4wLjUuMS4yoAeFPbIHBzItNS4xLjK4B7ISwgcFMy02LjPIB4kB&sclient=gws-wiz-serp&mstk=AUtExfAKClluadKAjH33L9mMJ_sw0VdX8Y5e8Ru52psIXP50rdxYT2BlcgevvZLj8elFGkTECLTUx3Un7qBFeVoef6Z_SOmPlYwzvICaEKZ_Uam86pUZ7l3RKBeiuSFJqHVm0dXOzK110UNDjaPY3uOWp0IF4vMdgjs0cjXVAMhGrrjP-DOSY5R8Gb2rv38XH-i7cvKci-tenMPUjjaASBmE5vGRQz6LIeCwbcNLaxqCOj1FI7Y3U84XRHJpXW1KrPrG33pgNCd9vFY0FnoH3AW_Y4TO&csui=3)</div><span data-processed="true" id="bkmrk--9"></span>

<div id="bkmrk--10"><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" jscontroller="a7qCn" jsuid="jQOmsf_24" role="heading">  
</div></div>1. <span class="T286Pc" data-sfc-cp="">**Install `openssl`**: Ensure `openssl` is installed. It is usually pre-installed on Ubuntu.</span>
2. <span class="T286Pc" data-sfc-cp="">**Generate a private key and a certificate signing request (CSR)**:</span>
    - <span class="T286Pc" data-sfc-cp="">`openssl req -new -newkey rsa:2048 -nodes -keyout localhost.key -out localhost.csr`</span>
3. <span class="T286Pc" data-sfc-cp="">**Generate the self-signed certificate**: Use the CSR and private key to create the certificate.</span>
    - <span class="T286Pc" data-sfc-cp="">`openssl x509 -req -days 365 -in localhost.csr -signkey localhost.key -out localhost.crt`</span>
4. <span class="T286Pc" data-sfc-cp="">**Configure your web server**:</span>
    - <span class="T286Pc" data-sfc-cp="">**For Apache**:</span>
        - <span class="T286Pc" data-sfc-cp="">Enable the SSL module: `sudo a2enmod ssl`.</span>
        - <span class="T286Pc" data-sfc-cp="">Configure your site's virtual host to point to your certificate (`localhost.crt`) and private key (`localhost.key`) files.</span>
        - <span class="T286Pc" data-sfc-cp="">Restart Apache: `sudo systemctl restart apache2`.</span>
    - <span class="T286Pc" data-sfc-cp="">**For other servers**: Configure your server's settings to use the `.crt` and `.key` files.</span>
5. <span class="T286Pc" data-sfc-cp="">**Trust the certificate**:</span>
    - <span class="T286Pc" data-sfc-cp="">This is an optional but recommended step to avoid browser warnings.</span>
    - <span class="T286Pc" data-sfc-cp="">Install certificate utilities: `sudo apt-get install libnss3-tools`.</span>
    - <span class="T286Pc" data-sfc-cp="">Import and trust the certificate into the browser's database (using `pk12util` for Firefox or `certutil` for other applications).</span><span class="uJ19be notranslate" data-wiz-uids="jQOmsf_3t,jQOmsf_3u,jQOmsf_3v"><span class="vKEkVd" data-animation-atomic=""> </span></span>

<span data-processed="true" id="bkmrk--12"></span><span data-processed="true" id="bkmrk--13"></span><span data-processed="true" id="bkmrk--14"></span><span data-processed="true" id="bkmrk--15"></span><span data-processed="true" id="bkmrk--16"></span><span data-processed="true" id="bkmrk--17"></span>

<div id="bkmrk--18"><div class="Fsg96" data-processed="true" data-sfc-cp="" jsaction="rcuQ6b:&jQOmsf_40|npT2md" jscontroller="KHhJQ" jsuid="jQOmsf_40">  
</div></div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-final-steps-for-both" jscontroller="a7qCn" jsuid="jQOmsf_41" role="heading">Final steps for both methods</div><span data-processed="true" id="bkmrk--20"></span>

<div id="bkmrk--21"><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" jscontroller="a7qCn" jsuid="jQOmsf_41" role="heading">  
</div></div>- <span class="T286Pc" data-sfc-cp="">After generating the certificates and configuring your server, you may still see a browser warning because the certificate is "self-signed" and not issued by a public Certificate Authority.</span>
- <span class="T286Pc" data-sfc-cp="">You will need to accept the security risk to proceed to your local serve</span>

# install OpenSSL locally on Ubuntu

<div data-processed="true" data-subtree="aimfl,mfl" id="bkmrk-to-install-openssl-l" jscontroller="v48bt" jsuid="GsELQe_9" style="display: contents;">To install OpenSSL locally on Ubuntu, you can</div><mark class="HxTRcb" data-processed="true">compile and install it from source by first installing build tools, then downloading and extracting the OpenSSL source code, and finally running the [config](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=config&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAC), [make](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=make&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAD), and [make install](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=make+install&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAE) commands with the appropriate prefix and flags</mark>. For the simplest local installation, download the source, change to the directory, and use [./config --prefix=<s class="iVKwMc" data-processed="true">/openssl --openssldir=</s>/openssl](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=.%2Fconfig+--prefix%3D%2Fopenssl+--openssldir%3D%2Fopenssl&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAF), followed by [make](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=make&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAG) and [make install](https://www.google.com/search?client=ubuntu-sn&channel=fs&q=make+install&mstk=AUtExfAjQ3yPV6W7WUvN1VS1YZ9pBgUtBJ4QdQKDpIZ5juCvIk2wvERVtHMHcsG7sW_Hs6PlHQDur1gJCpdmD0A6d7-mxwgga1BBPLCiJCP_WY_V_2NMrAWg5BIFnW-7NDB5DfAUaNZQqAXv71YbpKEid0pdVdtxjQBOMlH7pyEwey68lTqabptCWIixVMfn8xDXDJqUSsxDnktUl0HxFZ2CK_8HoFWfqJkY50_E-cv3b0sOZuIoeTHVfpoYXU5cz9ESn4GbuQ-lLKsaZoru0jJ2skEe&csui=3&ved=2ahUKEwiwqZzJ3_qQAxXZSmwGHUH1NmMQgK4QegQIARAH), then update your `~/.bash_profile` with the correct `PATH` and `LD_LIBRARY_PATH`.<span class="uJ19be notranslate" data-processed="true" data-wiz-uids="GsELQe_l,GsELQe_m,GsELQe_n"><span class="vKEkVd" data-animation-atomic="" data-processed="true"> </span></span>

<div class="Y3BBE" data-hveid="CAEQAA" data-processed="true" data-sfc-cp="" id="bkmrk-" jsaction="rcuQ6b:&GsELQe_8|npT2md" jscontroller="zcfIf" jsuid="GsELQe_8">  
</div><div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--1" jsaction="rcuQ6b:&GsELQe_r|npT2md" jscontroller="KHhJQ" jsuid="GsELQe_r">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-method-1%3A-install-fr" jscontroller="a7qCn" jsuid="GsELQe_s" role="heading">Method 1: Install from source to a local directory</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk--2" jscontroller="a7qCn" jsuid="GsELQe_s" role="heading">  
</div><div class="Y3BBE" data-hveid="CAMQAA" data-processed="true" data-sfc-cp="" id="bkmrk-this-method-installs" jsaction="rcuQ6b:&GsELQe_w|npT2md" jscontroller="zcfIf" jsuid="GsELQe_w">This method installs a specific version of OpenSSL to a custom directory, like `~/openssl`, so it doesn't interfere with the system-installed version.</div><div class="Y3BBE" data-hveid="CAMQAA" data-processed="true" data-sfc-cp="" id="bkmrk--3" jsaction="rcuQ6b:&GsELQe_w|npT2md" jscontroller="zcfIf" jsuid="GsELQe_w">  
</div><div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--4" jsaction="rcuQ6b:&GsELQe_11|npT2md" jscontroller="KHhJQ" jsuid="GsELQe_11">  
</div><div class="r1PmQe" data-hveid="CAQQAA" data-processed="true" data-wiz-uids="GsELQe_13,GsELQe_14,GsELQe_15" id="bkmrk-bash" jscontroller="HP6Sjf" jsuid="GsELQe_12"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash</div></div></div></div>```
# Install build tools
sudo apt update
sudo apt install build-essential zlib1g-dev

# Create a working directory and download OpenSSL source
cd /usr/local/src/
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -xf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k

# Configure and build (using --prefix to specify local install)
./config --prefix=~/openssl --openssldir=~/openssl
make

# Install to the local directory
make install

```

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--5" jsaction="rcuQ6b:&GsELQe_18|npT2md" jscontroller="KHhJQ" jsuid="GsELQe_18">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-method-2%3A-update-you" jscontroller="a7qCn" jsuid="GsELQe_19" role="heading">Method 2: Update your environment variables</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk--6" jscontroller="a7qCn" jsuid="GsELQe_19" role="heading">  
</div><div class="Y3BBE" data-hveid="CAYQAA" data-processed="true" data-sfc-cp="" id="bkmrk-after-installing-fro" jsaction="rcuQ6b:&GsELQe_1d|npT2md" jscontroller="zcfIf" jsuid="GsELQe_1d">After installing from source, you must tell your shell where to find the new binaries and libraries.</div><div class="Y3BBE" data-hveid="CAYQAA" data-processed="true" data-sfc-cp="" id="bkmrk--7" jsaction="rcuQ6b:&GsELQe_1d|npT2md" jscontroller="zcfIf" jsuid="GsELQe_1d">  
</div>1. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Edit the bash profile**:</span><div class="r1PmQe" data-hveid="CAcQAQ" data-processed="true" data-wiz-uids="GsELQe_1m,GsELQe_1n,GsELQe_1o" jscontroller="HP6Sjf" jsuid="GsELQe_1l"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash</div></div></div></div>
2. ```
    nano ~/.bash_profile
    
    ```
3. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Add the following lines at the end of the file** (adjusting `username` if necessary):</span><div class="r1PmQe" data-hveid="CAcQBA" data-processed="true" data-wiz-uids="GsELQe_1w,GsELQe_1x,GsELQe_1y" jscontroller="HP6Sjf" jsuid="GsELQe_1v"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash</div></div></div></div>
4. ```
    export PATH=$HOME/openssl/bin:$PATH
    export LD_LIBRARY_PATH=$HOME/openssl/lib:$LD_LIBRARY_PATH
    export LDFLAGS="-L $HOME/openssl/lib -Wl,-rpath,$HOME/openssl/lib"
    
    ```
5. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Save and close** the file, then reload your profile:</span><div class="r1PmQe" data-hveid="CAcQBw" data-processed="true" data-wiz-uids="GsELQe_25,GsELQe_26,GsELQe_27" jscontroller="HP6Sjf" jsuid="GsELQe_24"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash</div></div></div></div>

```
source ~/.bash_profile

```

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--8" jsaction="rcuQ6b:&GsELQe_2d|npT2md" jscontroller="KHhJQ" jsuid="GsELQe_2d">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-method-3%3A-verify-the" jscontroller="a7qCn" jsuid="GsELQe_2e" role="heading">Method 3: Verify the installation</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk--9" jscontroller="a7qCn" jsuid="GsELQe_2e" role="heading">  
</div>1. <span class="T286Pc" data-processed="true" data-sfc-cp="">**Check the version** to ensure you are using the new installation:</span><div class="r1PmQe" data-hveid="CAsQAQ" data-processed="true" data-wiz-uids="GsELQe_44,GsELQe_45,GsELQe_46" jscontroller="HP6Sjf" jsuid="GsELQe_43"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash</div></div></div></div>
2. ```
    openssl version
    
    ```
    
    <span class="T286Pc" data-processed="true" data-sfc-cp="">This should output the version you installed (e.g., `OpenSSL 1.1.1k 25 Mar 2025`).</span>

<span data-processed="true" id="bkmrk-verify-the-path-to-c-1"><span class="T286Pc" data-sfc-cp="">**Verify the path** to confirm it's the local one:</span>bash</span>

```
which openssl

```

<span data-processed="true" id="bkmrk-this-should-point-to-1"><span class="T286Pc" data-sfc-cp="">This should point to `~/openssl/bin/openssl`</span></span>

# MULTIVERSIONS ON UBUNTU BOX

<span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo apt install apache2 libapache2-mod-fastcgi</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo apt-get install mysql-server</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo mysql\_secure\_installation</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo apt install software-properties-common</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo add-apt-repository ppa:ondrej/php</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo apt update</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Use this command to install different versions of php just changing the string 7.1 to the required version</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo apt install php7.1 php7.1-fpm libapache2-mod-php7.1</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">NOW ALL SET LAMP is installed and working</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Now while u will require to change the php version</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">This command will change the php version on system</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo update-alternatives --config php</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Disable all version apached modules of php installed, just replace the 7.4 in below command</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo a2dismod php7.4</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Enable the version u need to use with apache, just replace the 8.0 in below command</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo a2enmod php8.0</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Restart the apache</span><span class="white-space-pre" style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; white-space: pre !important; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);"> </span><span style="box-sizing: inherit; margin: 0px; padding: 0px; border-image: none 100% / 1 / 0 stretch; font-size: 14px; vertical-align: baseline; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255); outline: rgba(0, 0, 0, 0.9) none 0px; font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; line-height: inherit !important; color: rgba(0, 0, 0, 0.9); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; border: 0px none rgba(0, 0, 0, 0.9);">  
</span><span style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sudo service apache2 restart</span>

# kernel tuning/troubleshooting

<div class="Y3BBE" data-hveid="CAEQAA" data-processed="true" data-sfc-cp="" id="bkmrk-kernel-tuning%2Ftroubl" jsaction="rcuQ6b:&UI9Vqe_7|npT2md" jscontroller="zcfIf" jsuid="UI9Vqe_7" style="font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; line-height: 24px; overflow-wrap: break-word; margin: 0px 0px 20px; color: rgb(10, 10, 10); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Kernel tuning/troubleshooting involves <mark class="HxTRcb" data-processed="true" style="color: rgb(0, 29, 53); border-radius: 4px; background: linear-gradient(90deg, rgb(211, 227, 253) 50%, rgba(0, 0, 0, 0) 50%) 75% 0px / 200% 100% no-repeat scroll padding-box border-box rgba(0, 0, 0, 0); padding: 0px 2px; font-weight: 500; animation: 0.75s cubic-bezier(0.05, 0.7, 0.1, 1) 0.25s 1 normal forwards running highlight-animation;">adjusting operating system (OS) parameters for performance/stability (tuning) or fixing crashes/issues (troubleshooting)</mark>, often using tools like `sysctl`, `ulimit`, `make menuconfig` (Linux), or boot options/diagnostics (Mac/Linux), focusing on memory, filesystems, I/O, and software conflicts to match workloads, requiring careful baselining and testing to avoid instability.<span class="uJ19be notranslate" data-processed="true" data-wiz-uids="UI9Vqe_d,UI9Vqe_e,UI9Vqe_f"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="f24f8a81-7bc6-4873-bfac-221fbd9a5ccc" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIARAC" data-wiz-attrbind="disabled=UI9Vqe_d/C5gNJc;class=UI9Vqe_d/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div><div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk-" jsaction="rcuQ6b:&UI9Vqe_l|npT2md" jscontroller="KHhJQ" jsuid="UI9Vqe_l" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-kernel-tuning-%28linux" jscontroller="a7qCn" jsuid="UI9Vqe_m" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Kernel Tuning (Linux Focus)<span class="txxDge notranslate" data-processed="true" data-wiz-uids="UI9Vqe_n,UI9Vqe_o,UI9Vqe_p" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="f56856da-fa3d-4ade-bd0f-349c1d21a2ee" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIAhAA" data-wiz-attrbind="disabled=UI9Vqe_n/C5gNJc;class=UI9Vqe_n/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Goal:** Optimize performance (speed, resource use) for specific workloads (e.g., databases, web servers).</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Key Areas:**</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**[fs (Filesystem)](https://www.google.com/search?q=fs+%28Filesystem%29&oq=kernel+tuning%2Ftroubleshooting&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRigATIHCAMQIRigATIHCAQQIRigATIHCAUQIRiPAtIBBzcwN2owajeoAgCwAgA&sourceid=chrome&ie=UTF-8&mstk=AUtExfDkCAWWifP2YSKeN9WF7oTwE4I3r6YUnc79ZZayD4Dp2Q1_DtVkgaJF1RuSKZ6mmZmmoTHG92ujhHwuv8BnFtoJX8EKLwalGtQgwIeGrOpXY93X5HSl3sUk-8pzgV_J4aanf9ZF7801b2CmL-9N7bz-wEs3iCvqSOwMDFSxyOgS9e8kvJdpP3Z7e5_ciIlsr9MCGUiQdpimObmqcPfu9KSvQMUFdFePcoSZOXR3i1D425Ks1LEyk54VVPHn-rmAMVO1t1WxlT1xxMeDRpzZeCAB&csui=3&ved=2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQgK4QegQIAxAD):** Too many open files (`ulimit -n`), I/O schedulers.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**[vm (Virtual Memory)](https://www.google.com/search?q=vm+%28Virtual+Memory%29&oq=kernel+tuning%2Ftroubleshooting&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRigATIHCAMQIRigATIHCAQQIRigATIHCAUQIRiPAtIBBzcwN2owajeoAgCwAgA&sourceid=chrome&ie=UTF-8&mstk=AUtExfDkCAWWifP2YSKeN9WF7oTwE4I3r6YUnc79ZZayD4Dp2Q1_DtVkgaJF1RuSKZ6mmZmmoTHG92ujhHwuv8BnFtoJX8EKLwalGtQgwIeGrOpXY93X5HSl3sUk-8pzgV_J4aanf9ZF7801b2CmL-9N7bz-wEs3iCvqSOwMDFSxyOgS9e8kvJdpP3Z7e5_ciIlsr9MCGUiQdpimObmqcPfu9KSvQMUFdFePcoSZOXR3i1D425Ks1LEyk54VVPHn-rmAMVO1t1WxlT1xxMeDRpzZeCAB&csui=3&ved=2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQgK4QegQIAxAF):** Swappiness (`vm.swappiness`), dirty ratios, memory management.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Networking:** TCP/IP settings, buffer sizes.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Tools:** `sysctl`, `/etc/sysctl.conf`, `make menuconfig` (for compiling custom kernels), `tuned` (profiles).</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="UI9Vqe_1i,UI9Vqe_1j,UI9Vqe_1k"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="70ec32fd-370d-4d01-a45e-2ba3c726c4b3" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIAxAI" data-wiz-attrbind="disabled=UI9Vqe_1i/C5gNJc;class=UI9Vqe_1i/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span>

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--1" jsaction="rcuQ6b:&UI9Vqe_1q|npT2md" jscontroller="KHhJQ" jsuid="UI9Vqe_1q" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-kernel-troubleshooti" jscontroller="a7qCn" jsuid="UI9Vqe_1r" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Kernel Troubleshooting<span class="txxDge notranslate" data-processed="true" data-wiz-uids="UI9Vqe_1s,UI9Vqe_1t,UI9Vqe_1u" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="1e7c0551-f334-44c8-9bcd-327e000144bc" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIBBAA" data-wiz-attrbind="disabled=UI9Vqe_1s/C5gNJc;class=UI9Vqe_1s/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Common Issues:** [Kernel Panic](https://www.google.com/search?q=Kernel+Panic&oq=kernel+tuning%2Ftroubleshooting&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRigATIHCAMQIRigATIHCAQQIRigATIHCAUQIRiPAtIBBzcwN2owajeoAgCwAgA&sourceid=chrome&ie=UTF-8&mstk=AUtExfDkCAWWifP2YSKeN9WF7oTwE4I3r6YUnc79ZZayD4Dp2Q1_DtVkgaJF1RuSKZ6mmZmmoTHG92ujhHwuv8BnFtoJX8EKLwalGtQgwIeGrOpXY93X5HSl3sUk-8pzgV_J4aanf9ZF7801b2CmL-9N7bz-wEs3iCvqSOwMDFSxyOgS9e8kvJdpP3Z7e5_ciIlsr9MCGUiQdpimObmqcPfu9KSvQMUFdFePcoSZOXR3i1D425Ks1LEyk54VVPHn-rmAMVO1t1WxlT1xxMeDRpzZeCAB&csui=3&ved=2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQgK4QegQIBRAB) (system crash), slow performance, device failures.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Steps:**</span>
    1. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Identify Cause:** Check logs (`dmesg`, `/var/log/`), review crash reports (Mac), use `journalctl` (Linux).</span>
    2. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Isolate:** Boot in Safe Mode (Mac), use a known good/rescue kernel (Linux), disconnect hardware, remove recent software/drivers.</span>
    3. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Check Hardware:** Run diagnostics (Apple Diagnostics), check RAM.</span>
    4. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Software Conflicts:** Look for recently installed or updated apps/drivers causing issues.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="UI9Vqe_2j,UI9Vqe_2k,UI9Vqe_2l"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="0014a007-24ed-477c-b47c-a2115c97ec0a" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIBRAH" data-wiz-attrbind="disabled=UI9Vqe_2j/C5gNJc;class=UI9Vqe_2j/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span>

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--2" jsaction="rcuQ6b:&UI9Vqe_2q|npT2md" jscontroller="KHhJQ" jsuid="UI9Vqe_2q" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-best-practices" jscontroller="a7qCn" jsuid="UI9Vqe_2r" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Best Practices<span class="txxDge notranslate" data-processed="true" data-wiz-uids="UI9Vqe_2s,UI9Vqe_2t,UI9Vqe_2u" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="1f764fa7-a9f5-4f3b-953f-7d6283c96537" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQIBhAA" data-wiz-attrbind="disabled=UI9Vqe_2s/C5gNJc;class=UI9Vqe_2s/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Baseline:** Measure performance *before* changes.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Change Incrementally:** Adjust one or a few parameters at a time.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Document:** Keep records of all changes and their effects.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Test Thoroughly:** Verify stability and performance after each change.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="UI9Vqe_3w,UI9Vqe_3x,UI9Vqe_3y"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="2ab4285f-3409-4085-9e78-ed6ebe057c81" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQICBAE" data-wiz-attrbind="disabled=UI9Vqe_3w/C5gNJc;class=UI9Vqe_3w/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span>

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--3" jsaction="rcuQ6b:&UI9Vqe_41|npT2md" jscontroller="KHhJQ" jsuid="UI9Vqe_41" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-jupyter-notebook-ker" jscontroller="a7qCn" jsuid="UI9Vqe_42" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Jupyter Notebook Kernel Issues (Related but Different)<span class="txxDge notranslate" data-processed="true" data-wiz-uids="UI9Vqe_43,UI9Vqe_44,UI9Vqe_45" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="847cdd33-4614-499b-84b9-2f1e1179635a" data-processed="true" data-ved="2ahUKEwjgv-Ps-7WRAxWAe2wGHVIgIgcQye0OegQICRAA" data-wiz-attrbind="disabled=UI9Vqe_43/C5gNJc;class=UI9Vqe_43/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">If "kernel" means the Jupyter backend: Restart, update packages (Jupyter, Anaconda), check code for errors, monitor memory.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="UI9Vqe_49,UI9Vqe_4a,UI9Vqe_4b"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> </span></span>

# filesystems tuning

<div class="Y3BBE" data-hveid="CAEQAA" data-processed="true" data-sfc-cp="" id="bkmrk-file-system-tuning%C2%A0o" jsaction="rcuQ6b:&GdetSc_7|npT2md" jscontroller="zcfIf" jsuid="GdetSc_7" style="font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; line-height: 24px; overflow-wrap: break-word; margin: 0px 0px 20px; color: rgb(10, 10, 10); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">File system tuning <mark class="HxTRcb" data-processed="true" style="color: rgb(0, 29, 53); border-radius: 4px; background: linear-gradient(90deg, rgb(211, 227, 253) 50%, rgba(0, 0, 0, 0) 50%) 75% 0px / 200% 100% no-repeat scroll padding-box border-box rgba(0, 0, 0, 0); padding: 0px 2px; font-weight: 500; animation: 0.75s cubic-bezier(0.05, 0.7, 0.1, 1) 0.25s 1 normal forwards running highlight-animation;">optimizes storage performance by adjusting settings like block size, caching, journaling, and I/O methods (sync/async) to match workloads, improving speed, throughput, and resource use for specific tasks, crucial for servers running databases or virtual machines</mark>. Key techniques involve optimizing disk hardware, tuning buffer sizes (like `numfsbufs`), leveraging read-ahead/write-behind, using Direct I/O, and applying system profiles via tools like `tuned-adm` for Linux, all aiming to reduce bottlenecks and enhance efficiency.<span class="uJ19be notranslate" data-processed="true" data-wiz-uids="GdetSc_c,GdetSc_d,GdetSc_e"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="3c57de76-4ddd-454f-a108-c0c8715d51a4" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIARAC" data-wiz-attrbind="disabled=GdetSc_c/C5gNJc;class=GdetSc_c/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div><div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk-" jsaction="rcuQ6b:&GdetSc_k|npT2md" jscontroller="KHhJQ" jsuid="GdetSc_k" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-core-concepts-%26-para" jscontroller="a7qCn" jsuid="GdetSc_l" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Core Concepts &amp; Parameters<span class="txxDge notranslate" data-processed="true" data-wiz-uids="GdetSc_m,GdetSc_n,GdetSc_o" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="b361b896-277d-4a54-988a-3bfc5544d4d3" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIAhAA" data-wiz-attrbind="disabled=GdetSc_m/C5gNJc;class=GdetSc_m/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**I/O Operations:** Tuning reads/writes, utilizing asynchronous I/O (AIO) to prevent application blocking, and optimizing read-ahead for sequential access.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Block Size:** Affects data efficiency; larger blocks can speed up large file transfers, while smaller ones suit many small files.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Caching &amp; Buffers:** Increasing file system buffers (`numfsbufs`) can help with heavy I/O; faster RAM disks for `/tmp` also boost performance.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Journaling:** Balancing the performance impact of logging changes for data integrity (e.g., using `commit` options).</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**File System Type:** Different file systems (Ext4, XFS, NTFS) have unique strengths; tuning depends on the chosen one.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="GdetSc_18,GdetSc_19,GdetSc_1a"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="7957a547-f995-492f-9bdc-ba0dcda5f557" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIAxAF" data-wiz-attrbind="disabled=GdetSc_18/C5gNJc;class=GdetSc_18/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span>

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--1" jsaction="rcuQ6b:&GdetSc_1h|npT2md" jscontroller="KHhJQ" jsuid="GdetSc_1h" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-key-tuning-technique" jscontroller="a7qCn" jsuid="GdetSc_1i" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Key Tuning Techniques<span class="txxDge notranslate" data-processed="true" data-wiz-uids="GdetSc_1j,GdetSc_1k,GdetSc_1l" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="926aeb9a-3608-4889-a76e-dadf7952e566" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIBBAA" data-wiz-attrbind="disabled=GdetSc_1j/C5gNJc;class=GdetSc_1j/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Hardware Optimization:** Ensure disk controllers use fast DMA modes.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Read-Ahead/Write-Behind:** Boost sequential read/write performance by pre-fetching/delaying writes.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Direct I/O (DIO):** Bypasses the kernel's file cache to reduce CPU load and data copies for specific applications.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**[Tuning Profiles](https://www.google.com/search?q=Tuning+Profiles&oq=filesystems+tuning&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIJCAEQIRgKGKABMgkIAhAhGAoYoAEyCQgDECEYChigAdIBCDEwMDZqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8&mstk=AUtExfB3O1nSYHBoMsTk8NWWWKzadhQpv7QRxBXCZynmQjNfzvsBQ9SFkAAMUBfnq3xs4bOf9oBjdlOnH7-HONvsuCcaeoeC8XNTn17-h0YXE_iuT8csuUw0nHg_yr8K7dxFdiOhbHzwL68Oukh-VmEp98IlCaB0Dh-OGmFy-_Ydf2I7hHUquQDADEhcX9bm6jTGwsGsIl_lJa3JH2UjjNlW6vlfhG8l_XCl4w54ecK9Z5Zbl86AQ1WvoSMPPRpTObQz5sk_zQSmksVlj4wb_2_0PAOU&csui=3&ved=2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQgK4QegQIBRAE) (Linux):** Use `tuned-adm` to apply profiles (e.g., `throughput-performance`, `virtual-guest`) for workload-specific settings.</span>
- <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Application-Level:** Design apps to gather large data chunks and write them sequentially.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="GdetSc_26,GdetSc_27,GdetSc_28"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> <button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="71649c08-8050-4008-9f9f-c62b03ff6851" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIBRAG" data-wiz-attrbind="disabled=GdetSc_26/C5gNJc;class=GdetSc_26/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span>

<div class="Fsg96" data-processed="true" data-sfc-cp="" id="bkmrk--2" jsaction="rcuQ6b:&GdetSc_2d|npT2md" jscontroller="KHhJQ" jsuid="GdetSc_2d" style="color: rgb(10, 10, 10); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cp="" id="bkmrk-how-to-approach-tuni" jscontroller="a7qCn" jsuid="GdetSc_2e" role="heading" style="color: rgb(0, 29, 53); font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 20px 0px 10px; font-weight: 600; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">How to Approach Tuning<span class="txxDge notranslate" data-processed="true" data-wiz-uids="GdetSc_2f,GdetSc_2g,GdetSc_2h" style="visibility: hidden;"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"><button aria-label="View related links" class="rBl3me" data-amic="true" data-icl-uuid="762be351-70f9-44d8-b1c4-712adc76c471" data-processed="true" data-ved="2ahUKEwiJh7fD_LWRAxV0UGwGHT4HCRsQye0OegQIBhAA" data-wiz-attrbind="disabled=GdetSc_2f/C5gNJc;class=GdetSc_2f/UpSNec;" style="margin: 0px 6px 0px 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(229, 237, 255); border: none; border-radius: 10px; height: 20px; padding: 0px; width: 28px; position: relative; outline: 0px; cursor: pointer;" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true" style="color: rgb(0, 29, 53); display: inline-block; transform: rotate(135deg);"><svg fill="currentColor" focusable="false" height="12px" style="margin-top: 3px;" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>1. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Monitor:** Identify bottlenecks using tools like `vmstat -v` or `iostat`.</span>
2. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Select:** Choose parameters relevant to your workload (e.g., database needs high I/O, web server needs low latency).</span>
3. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Apply:** Use commands like `mkfs` (for creation), mount options, or `tuned-adm` to change settings.</span>
4. <span class="T286Pc" data-processed="true" data-sfc-cp="" style="overflow-wrap: break-word;">**Test:** Verify improvements with performance benchmarks.</span><span class="uJ19be notranslate" data-processed="true" data-wiz-uids="GdetSc_3t,GdetSc_3u,GdetSc_3v"><span class="vKEkVd" data-animation-atomic="" data-processed="true" style="white-space: nowrap; position: relative;"> </span></span>