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 revisionNext revisionBoth sides next revision | ||
operating_systems:apple:apache_-_php_-_mysql [2016/08/02 14:07] – [MySQL] bfavre | operating_systems:apple:apache_-_php_-_mysql [2018/12/11 14:01] – Removing cp /private/etc/php.ini.default /private/etc/php.ini maferreira | ||
---|---|---|---|
Line 30: | Line 30: | ||
</ | </ | ||
</ | </ | ||
+ | <note tip>If you have a Forbidden 403 error : since the version 2.4+ of Apache, "Order allow, | ||
| | ||
==== Hosts ==== | ==== Hosts ==== | ||
Line 57: | Line 58: | ||
Include / | Include / | ||
- | Insert at the last | + | == error_log problem == |
- | Include / | + | |
- | | + | |
/ | / | ||
<note tip>[Fri Jul 22 11: | <note tip>[Fri Jul 22 11: | ||
For version 5 of php, uncomment this line | For version 5 of php, uncomment this line | ||
LoadModule php5_module libexec/ | LoadModule php5_module libexec/ | ||
+ | |||
+ | === httpd-userdir.conf === | ||
+ | | ||
+ | Include / | ||
===== PHP ===== | ===== PHP ===== | ||
Line 70: | Line 73: | ||
Install php for mac from http:// | Install php for mac from http:// | ||
curl -s http:// | curl -s http:// | ||
- | | + | |
- | Copy the php.ini file | + | |
- | $sudo cp /private/etc/php.ini.default | + | |
===== MySQL ===== | ===== MySQL ===== | ||
Line 79: | Line 80: | ||
$sudo installer -pkg / | $sudo installer -pkg / | ||
$sudo / | $sudo / | ||
- | $/ | + | $/ |
export PATH="/ | export PATH="/ | ||
| | ||
+ | <note tip>Il se peut que / | ||
<note tip> | <note tip> | ||
Could not connect to server (2002) No such file or directory</ | Could not connect to server (2002) No such file or directory</ | ||
+ | <note tip>If after the installation you don't know the root password you must launch mysql in safe mode (sudo mysqld_safe --skip-grant-tables) and know you can access mysql (mysql -u root) then you have to refresh the privileges (FLUSH PRIVILEGES; | ||
+ | mkdir / | ||
ln -s / | ln -s / | ||
+ | | ||
+ | <note tip>If you have the error "ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. You can use these commands:"</ | ||
+ | mysql -u root -p | ||
+ | alter user ' | ||
| | ||
===== gettext ===== | ===== gettext ===== | ||
+ | |||
+ | Start by intalling the autotools, thanks to [[https:// | ||
+ | You can then try those instructions at first [[http:// | ||
+ | |||
<note tip>[Wed Jun 26 19:21:19 2013] [error] [client ::1] PHP Fatal error: | <note tip>[Wed Jun 26 19:21:19 2013] [error] [client ::1] PHP Fatal error: | ||
Download gettext from https:// | Download gettext from https:// | ||
- | | + | |
- | tar -xzf gettext-0.18.3.1.tar.gz | + | tar -xzf gettext-0.19.8.1.tar.gz |
- | cd gettext-0.18.3.1 | + | cd gettext-0.19.8.1 |
./configure | ./configure | ||
- | | + | |
<note error> | <note error> | ||
- | configure: error: in `/ | + | <del>configure: error: in `/ |
configure: error: C compiler cannot create executables\\ | configure: error: C compiler cannot create executables\\ | ||
See `config.log' | See `config.log' | ||
- | configure: error: ./configure failed for gettext-runtime | + | configure: error: ./configure failed for gettext-runtime</ |
</ | </ | ||
- | Si il y a cette error, | + | <del>Si il y a cette error,</ |
| | ||
+ | <del> | ||
export PATH="/ | export PATH="/ | ||
+ | </ | ||
- | Relancer de nouveau | + | <del>Relancer de nouveau</ |
- | + | ||
+ | <del> | ||
./configure | ./configure | ||
+ | </ | ||
- | | + | < |
+ | | ||
+ | </ | ||
- | <note tip>/ | + | <note tip><del>/bin/sh ../ |
libtool: compile: | libtool: compile: | ||
stpncpy.c: | stpncpy.c: | ||
Line 122: | Line 141: | ||
make[2]: *** [all-recursive] Error 1\\ | make[2]: *** [all-recursive] Error 1\\ | ||
make[1]: *** [all] Error 2\\ | make[1]: *** [all] Error 2\\ | ||
- | make: *** [all-recursive] Error 1</ | + | make: *** [all-recursive] Error 1</ |
+ | <del> | ||
Edit gettext-tools/ | Edit gettext-tools/ | ||
(__stpncpy) (char *dest, const char *src, size_t n) | (__stpncpy) (char *dest, const char *src, size_t n) | ||
+ | |||
and modify it to | and modify it to | ||
(__stpcpy) (char *dest, const char *src, size_t n) | (__stpcpy) (char *dest, const char *src, size_t n) | ||
+ | </ | ||
+ | <del> | ||
Recompile | Recompile | ||
+ | </ | ||
make | make | ||
- | make install | + | |
| | ||
Add in php.ini the support for gettext | Add in php.ini the support for gettext |
operating_systems/apple/apache_-_php_-_mysql.txt · Last modified: 2021/11/18 14:24 by ateixeira