Skip to content

riesenia/homebrew-switch-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

switch-php

Installs and switches between different versions of PHP (7.4, 8.1, and 8.3).

Configuration

Add PHP modules to the httpd.conf file to load the correct PHP module for each version:

# Load PHP 7.4 Module
LoadModule php7_module /opt/homebrew/opt/php@7.4//lib/httpd/modules/libphp7.so

# Load PHP 8.1 Module
LoadModule php_module /opt/homebrew/opt/php@8.1/lib/httpd/modules/libphp.so

# Load PHP 8.3 Module
LoadModule php_module /opt/homebrew/opt/php@8.3/lib/httpd/modules/libphp.so

Make sure these paths match the location of the PHP modules installed by Homebrew.

Usage

switch-php 7.4
switch-php 8.1
switch-php 8.3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages