Answers for "how to install php 7"

PHP
2

install php7.4 in linux server

For install all important php 7.4 extensions
apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y
Posted by: Guest on July-10-2020
0

install php7.4 linux

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

// Last part is stolen from Lokesh003Coding's answer <3
// This snippet should work on the currently most recent Linux distro
Posted by: Guest on September-25-2021
9

install php windows 10

1. Download Thread safe 32/64 bit zip package PHP8 from 
   https://windows.php.net/download#php-8.0
2. Extract the zip package and paste the extracted folder onto your 
    desired drive( Drive C:\ for example)
3. Rename the folder to php8( or any name that you like)
4. One this folder and look for php.ini-development file
5. Make a copy of this file and rename copy version to php.ini
6. Open php.ini file with your preferred text editor and uncomment PHPIniDir “ext”
7. Save the file and close the editor.

## Set PHP 8 to System's Path
1. Open php8 folder and copy and folder path
2. Press Windows Key on your keyboard and type 'variable' and hit Enter
3. Click Environment Variables
4. Click Edit and Click NEW on the right
5. Paste the php8 folder path
6. Click OK, OK, OK

## Installing composer
Run the following commands
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

QUICK QUESTION: Have you heard of Windows SubSystem for Linux (wsl)? 
Check it out
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language