User Tools

Site Tools


operating_systems:apple:apache_-_php_-_mysql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
operating_systems:apple:apache_-_php_-_mysql [2018/07/09 15:16] – [gettext] ttreyeroperating_systems:apple:apache_-_php_-_mysql [2018/12/11 14:15] maferreira
Line 61: Line 61:
 /var/log/apache2/error_log /var/log/apache2/error_log
 <note tip>[Fri Jul 22 11:41:43.182364 2016] [core:alert] [pid 737] [client 127.0.0.1:49399] /Users/mferreira/Sites/GIT/easyaccess-web/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration</note> <note tip>[Fri Jul 22 11:41:43.182364 2016] [core:alert] [pid 737] [client 127.0.0.1:49399] /Users/mferreira/Sites/GIT/easyaccess-web/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration</note>
-For version 5 of php, uncomment this line+Only for version 5 of php, uncomment this line
   LoadModule php5_module libexec/apache2/libphp5.so   LoadModule php5_module libexec/apache2/libphp5.so
  
Line 71: Line 71:
 <note tip>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/gettext.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/gettext.so, 9): image not found in Unknown on line 0</note> <note tip>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/gettext.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/gettext.so, 9): image not found in Unknown on line 0</note>
  
-Install php for mac from http://php-osx.liip.ch +Install php for mac from https://php-osx.liip.ch/ 
-  curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6 +  curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6 
-  curl -s http://php-osx.liip.ch/install.sh | bash -s 7.+  curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2
-   +
-Copy the php.ini file +
-  $sudo cp /private/etc/php.ini.default /private/etc/php.ini+
 ===== MySQL ===== ===== MySQL =====
 Install MySQL from http://dev.mysql.com/downloads/mysql/ (e.g. mysql-5.6.12-osx10.7-x86_64) Install MySQL from http://dev.mysql.com/downloads/mysql/ (e.g. mysql-5.6.12-osx10.7-x86_64)
Line 97: Line 94:
      
 ===== gettext ===== ===== gettext =====
 +
 +<note tip>If you have installed a php7+ version, you don't need to install gettext (it is installed by the https://php-osx.liip.ch/install.sh script).</note>
  
 Start by intalling the autotools, thanks to [[https://gist.github.com/anunay/7698181|this]]. Start by intalling the autotools, thanks to [[https://gist.github.com/anunay/7698181|this]].
operating_systems/apple/apache_-_php_-_mysql.txt · Last modified: 2021/11/18 14:24 by ateixeira