Difference between revisions of "Php"

From Wasya Wiki
Jump to: navigation, search
Line 10: Line 10:
 
From: https://joostvanveen.com/a-29/install-and-configure-multiple-php-versions-on-mojave-with-homebrew
 
From: https://joostvanveen.com/a-29/install-and-configure-multiple-php-versions-on-mojave-with-homebrew
 
From: https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions
 
From: https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions
 +
From: https://gist.github.com/dtomasi/ab76d14338db82ec24a1fc137caff75b
  
brew tap exolnet/homebrew-deprecated
+
  brew tap exolnet/homebrew-deprecated
brew install php@7.0
+
  brew install php@7.0
LoadModule php7_module /usr/local/opt/php@7.3/lib/httpd/modules/libphp7.so
+
  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

Revision as of 01:27, 9 March 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.0 on mac

From: https://joostvanveen.com/a-29/install-and-configure-multiple-php-versions-on-mojave-with-homebrew 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.0
 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