Difference between revisions of "Php"
From Wasya Wiki
Line 1: | Line 1: | ||
− | + | = Install = | |
Line 22: | Line 22: | ||
brew unlink php | brew unlink php | ||
brew link php@7.4 | brew link php@7.4 | ||
+ | |||
+ | == install php 8 on ubuntu == | ||
+ | |||
+ | sudo apt install software-properties-common | ||
+ | sudo add-apt-repository ppa:ondrej/php | ||
+ | sudo apt update | ||
+ | sudo apt install php8.0 libapache2-mod-php8.0 | ||
+ | |||
+ | == Composer == | ||
+ | |||
+ | sudo apt install composer | ||
+ | composer install |
Revision as of 22:38, 1 April 2022
Install
sudo apt-get install php -y sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mysql,zip} && sudo apt-get install libapache2-mod-php -y
install 7.4 on mac
From: https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions
From: https://gist.github.com/dtomasi/ab76d14338db82ec24a1fc137caff75b
brew tap exolnet/homebrew-deprecated brew install php@7.4 LoadModule php7_module /usr/local/opt/php@7.3/lib/httpd/modules/libphp7.so
brew services start php@7.4 lsof -Pni4 | grep LISTEN | grep php
brew unlink php brew link php@7.4
install php 8 on ubuntu
sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php8.0 libapache2-mod-php8.0
Composer
sudo apt install composer composer install