Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, Mercure.rocks, Vulcain.rocks and of some Symfony components.

Menu
  • Talks
  • Resume
  • Sponsor me
  • Contact
Menu

Installer PHP sur OS X avec le support de MySQL et de INTL

Posted on December 4, 2012January 12, 2014 by Kévin Dunglas

Après avoir installé Homebrew, il ajoutons les dépôts Homebrew-PHP et Homebrew-dupes :

$ brew tap josegonzalez/php
$ brew tap homebrew/dupes

Installons maintenant PHP 5.4 avec le support de MySQL et de INTL :

$ brew install php54 --with-mysql --with-intl
$ brew install php54-intl

Ajoutez maintenant la ligne indiquée par Homebrew pour que Apache charge le module PHP à la fin du fichier /etc/apache2/httpd.conf.

Exemple pour la version 5.4.10 :

LoadModule php5_module    /usr/local/Cellar/php54/5.4.10/libexec/apache2/libphp5.so

Pour booster les performances de PHP, très utile si vous comptez développer avec Symfony, installez également APC :

$ brew install php54-apc

Redémarrez PHP pour que vos modifications soient prises en compte :

$ sudo apachectl restart

Related posts:

  1. Installer un stack LAMP sur un dédié OVH avec Ubuntu 12.10
  2. Changer l’emplacement de mysql.sock avec MAMP
  3. Installing a LaTeX environment on a Mac
  4. Enabling OPcache for PHP 5.6+ installed with Homebrew

3 thoughts on “Installer PHP sur OS X avec le support de MySQL et de INTL”

  1. Xavier Lacot says:
    December 4, 2012 at 3:21 pm

    Ou tu peux aussi employer les paqiets mis à disposition par Liip: http://php-osx.liip.ch/

    Reply
  2. Pingback: Utiliser Chaplin.js et Backbone.js avec Symfony 2 : installation et configuration - Kévin Dunglas
  3. Pingback: Enabling OPcache for PHP 5.6+ installed with Homebrew - développeur Symfony - Lille

Leave a ReplyCancel reply

Subscribe to this blog

Recent Posts

  • The PHP Revolution Is Underway: FrankenPHP 1.0 Beta
  • 6x faster Docker builds for Symfony and API Platform projects
  • Mitigate Attacks on your PHP Supply Chain
  • How Can JSON-LD Help You Sell More?
  • Symfony ImportMaps: Manage Your JavaScript Dependencies Without Node

Top Posts & Pages

  • The PHP Revolution Is Underway: FrankenPHP 1.0 Beta
  • FrankenPHP: The Modern Php App Server, written in Go
  • 6x faster Docker builds for Symfony and API Platform projects
  • Securely Access Private Git Repositories and Composer Packages in Docker Builds
  • Preventing CORS Preflight Requests Using Content Negotiation
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • Introducing API Platform (beta): the next generation PHP web framework
  • Symfony's New Native Docker Support (Symfony World)
  • API Platform 3 Is Released!
  • React ESI: Blazing Fast SSR

Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Tags

Apache API API Platform Buzz Caddy Docker Doctrine Go Google GraphQL HTTP/2 Hydra hypermedia Hébergement Javascript JSON-LD Kubernetes La Coopérative des Tilleuls Les-Tilleuls.coop Lille Linux Mac Mercure Messagerie Instantanée MySQL performance PHP Punk Rock Python React REST Rock'n'Roll RSS Schema.org Security SEO SEO Symfony Symfony Live Sécurité Ubuntu Web 2.0 webperf XHTML XML

Archives

Categories

  • DevOps (27)
  • Mercure (5)
  • Opinions (91)
  • Programming (190)
    • Android (5)
    • Go (14)
    • JavaScript (45)
    • PHP (148)
      • API Platform (68)
      • Symfony (92)
    • Python (14)
      • Django (5)
  • Security (15)
  • SEO (24)
  • Talks (40)
  • Ubuntu (68)
  • Wordpress (6)

Social

  • Mastodon
  • Twitter
  • LinkedIn
  • YouTube
  • GitHub

Links

  • API Platform
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks
© 2023 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme