operating_systems:apple:apache_-_php_-_mysql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
operating_systems:apple:apache_-_php_-_mysql [2018/07/09 15:16] – [gettext] ttreyer | operating_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 / | + | # cd /private/ |
# 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/ | LoadModule userdir_module libexec/ | ||
- | | + | <del># User home directories |
- | Include / | + | Include / |
| | ||
Line 55: | Line 55: | ||
LoadModule rewrite_module libexec/ | LoadModule rewrite_module libexec/ | ||
- | | + | <del># Virtual hosts |
- | Include / | + | Include / |
== error_log problem == | == error_log problem == | ||
/ | / | ||
<note tip>[Fri Jul 22 11: | <note tip>[Fri Jul 22 11: | ||
- | For version 5 of php, uncomment this line | + | Only for version 5 of php, uncomment this line |
LoadModule php5_module libexec/ | LoadModule php5_module libexec/ | ||
=== httpd-userdir.conf === | === httpd-userdir.conf === | ||
- | | + | <del>Uncomment in / |
+ | Add in / | ||
Include / | Include / | ||
Line 71: | Line 72: | ||
<note tip>PHP Warning: | <note tip>PHP Warning: | ||
- | Install php for mac from http:// | + | Install php for mac from https:// |
- | curl -s http:// | + | curl -s https:// |
- | curl -s http:// | + | curl -s https:// |
- | + | ||
- | Copy the php.ini file | + | |
- | $sudo cp / | + | |
===== MySQL ===== | ===== MySQL ===== | ||
Install MySQL from http:// | Install MySQL from http:// | ||
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:// | ||
Start by intalling the autotools, thanks to [[https:// | Start by intalling the autotools, thanks to [[https:// |
operating_systems/apple/apache_-_php_-_mysql.1531149370.txt.gz · Last modified: 2018/07/09 15:16 by ttreyer