Browse Source

first commit

Your Name 1 year ago
commit
8538789516
4 changed files with 16 additions and 0 deletions
  1. 1 0
      README.md
  2. 4 0
      install_php5_inroot.sh
  3. 3 0
      install_php7.sh
  4. 8 0
      mod_apache.md

+ 1 - 0
README.md

@@ -0,0 +1 @@
+###How to install php 5 and 7 on same raspberry

+ 4 - 0
install_php5_inroot.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list
+apt update
+apt install php5.6 php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-mbstring php5.6-xml php5.6-sqlite3

+ 3 - 0
install_php7.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+sudo apt-get install mariadb-server php7.4-mysql php7.4-zip php7.4-curl php7.4-xml*
+

+ 8 - 0
mod_apache.md

@@ -0,0 +1,8 @@
+  </Directory>
+    <FilesMatch \.php$>
+      # For Apache version 2.4.10 and above, use SetHandler to run PHP as a fastCGI process server
+      SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
+    </FilesMatch>
+
+
+</VirtualHost>