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
operating_systems:apple:apache_-_php_-_mysql [2018/12/11 14:08] – Adding gettext notification maferreiraoperating_systems:apple:apache_-_php_-_mysql [2021/11/18 14:24] (current) – [Apache] ateixeira
Line 2: Line 2:
 ===== Apache ===== ===== Apache =====
 Edit the apache2 hosts configuration files (per user) Edit the apache2 hosts configuration files (per user)
-  # cd /etc/apache2/users/+  # cd /private/etc/apache2/users/
   # ls   # ls
   Guest.conf username.conf   Guest.conf username.conf
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
 ===== 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 96: Line 96:
 ===== 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>+<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.1544537281.txt.gz · Last modified: 2018/12/11 14:08 by maferreira