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
Last revisionBoth sides next revision
operating_systems:apple:apache_-_php_-_mysql [2017/11/30 14:01] – [MySQL] trodriguesoperating_systems:apple:apache_-_php_-_mysql [2021/11/18 14:23] – [HTTPD.CONF] ateixeira
Line 44: Line 44:
 ==== HTTPD.CONF ==== ==== HTTPD.CONF ====
 Uncomment both lines below Uncomment both lines below
-  $sudo -e /private/etc/apache2/httpd.conf+  $sudo -e /usr/local/etc/httpd/httpd.conf
     LoadModule userdir_module libexec/apache2/mod_userdir.so     LoadModule userdir_module libexec/apache2/mod_userdir.so
-    # User home directories +<del># User home directories 
-    Include /private/etc/apache2/extra/httpd-userdir.conf+    Include /private/etc/apache2/extra/httpd-userdir.conf</del>
          
  
Line 55: Line 55:
   LoadModule rewrite_module libexec/apache2/mod_rewrite.so   LoadModule rewrite_module libexec/apache2/mod_rewrite.so
  
-  # Virtual hosts +<del># Virtual hosts 
-  Include /private/etc/apache2/extra/httpd-vhosts.conf+  Include /private/etc/apache2/extra/httpd-vhosts.conf</del>
  
 == error_log problem == == error_log problem ==
 /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
  
 === httpd-userdir.conf === === httpd-userdir.conf ===
- Uncomment in /private/etc/apache2/extra/httpd-userdir.conf+ <del>Uncomment in /private/etc/apache2/extra/httpd-userdir.conf</del> 
 + Add in /usr/local/etc/httpd/httpd.conf
   Include /private/etc/apache2/users/*.conf   Include /private/etc/apache2/users/*.conf
  
Line 71: Line 72:
 <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 95:
      
 ===== 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]].
 +You can then try those instructions at first [[http://mansion.im/2011/php-with-intl-and-gettext-on-osx-lion/]].
 +
 <note tip>[Wed Jun 26 19:21:19 2013] [error] [client ::1] PHP Fatal error:  Call to undefined function bindtextdomain() in /Users/sbolay/Sites/GIT/easyaccess-web/lib/lib_language.php on line 66</note> <note tip>[Wed Jun 26 19:21:19 2013] [error] [client ::1] PHP Fatal error:  Call to undefined function bindtextdomain() in /Users/sbolay/Sites/GIT/easyaccess-web/lib/lib_language.php on line 66</note>
  
operating_systems/apple/apache_-_php_-_mysql.txt · Last modified: 2021/11/18 14:24 by ateixeira