Giter VIP home page Giter VIP logo

homebrew-php55's Introduction

RETIRED

This repo is no longer maintained. Consider using homebrew/php.

Homebrew-PHP55

PHP 5.5 formulae micro-repo

Purpose

This repo came natural after the PHP 5.4 one.

For the moment, the repository does not contain any PHP extensions - they can be easily installed with phpize and then manually added to php.ini or /usr/local/etc/php.ini.d/EXTENSION_NAME.ini.

The only formulae included are php and phpsh.

Installation

Open your favorite terminal and type:

brew tap tzvetkoff/php55
brew install php

Configuration

If you install PHP with no options, it will install the CLI, CGI and Apache 2.0 handlers by default (and it will tie it to system's apache)

Available installation options:

Option Description
--with-apxs=/usr/sbin/apxs Specify the location of the apxs script (to build for Apache different than the system one)
--without-pear Build without PEAR
--without-apache Build without shared Apache 2.0 Handler module
--with-cgi Build only the CGI SAPI executable (implies --without-apache)
--with-fpm Build only the FPM SAPI executable (implies --without-apache)
--with-gmp Include GMP support
--with-imap Include IMAP extension
--with-intl Include internationalization support
--with-pgsql Include PostgreSQL support
--with-mssql Include MSSQL-DB support
--with-iodbc Include ODBC support via `iODBC'
--with-unixodbc Include ODBC support via `unixodbc'
--with-homebrew-curl Build against brewed CURL
--with-homebrew-libxslt Build against brewed LibXSLT
--with-homebrew-openssl Build against brewed OpenSSL

To enable PHP in Apache add the following to httpd.conf and restart Apache:

LoadModule php5_module /usr/local/Cellar/php/<PHP_VERSION_HERE>/libexec/apache2/libphp5.so

<IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>

The php.ini file can be found in /usr/local/etc/php.ini

Additional php.ini files are loaded from /usr/local/etc/php.ini.d

If you have installed the formula with --with-fpm, to launch php-fpm on startup:

  • If this is your first install:

    mkdir -p ~/Library/LaunchAgents
    cp /usr/local/Cellar/php/<PHP_VERSION_HERE>/org.php-fpm.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/org.php-fpm.plist
  • If this is an upgrade and you already have the org.php-fpm.plist loaded:

    launchctl unload -w ~/Library/LaunchAgents/org.php-fpm.plist
    cp /usr/local/Cellar/php/<PHP_VERSION_HERE>/org.php-fpm.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/org.php-fpm.plist

You may also need to edit the plist to use the correct "UserName".

homebrew-php55's People

Contributors

michaelsanford avatar tzvetkoff avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.