Imprimir

Installing PHP 7.0 - Mac

This Article will describe the PHP 7.0 installation with Apache 2.4 to use ScriptCase.

Supported Operating Systems:

  • Mac
    • El Captain
    • Sierra

Necessary Files:

Setting up PHP

  • Access the terminal (shell) and execute the command below to use the superuser (root):
    • sudo su
  • Execute the command below to install PHP:
    • curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
  • Installation Directory
    • /usr/local/php5

Setting up Apache

  • Edit the file httpd.conf:
    • nano /etc/apache2/httpd.conf
  • Add the content below to the end of the modules:
    • LoadModule php7_module /usr/local/php5/libphp7.so

Setting up PHP module

  • Edit the file paths:
    • sudo nano /etc/paths
  • Add the content below to the start of the file:
    • /usr/local/php5/bin

Setting up PHP path

  • In /Library/WebServer/Documents/ create a file called info.php with the content below:
    • <?php phpinfo(); ?>
  • Access, it using the browser:

Enabling SourceGuardian Loader

  • Copy the file ixed.7.0.dar that was downloaded according to your architecture to the folder /usr/local/zend/lib/php_extensions
    • cp ixed.7.0.dar /usr/local/zend/lib/php_extensions
  • Configure the permission for the file:
    • chmod 777 -R /usr/local/zend/lib/php_extensions/ixed.7.0.dar
  • Edit the file php.ini in /usr/local/zend/etc/ and add them to the end of the file the content below:
    • [SourceGuardian] zend_extension=/usr/local/zend/lib/php_extensions/ixed.7.0.dar`
  • Restart the Apache service using the command below:
    • sudo /usr/sbin/apachectl stop
    • sudo /usr/sbin/apachectl start