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 [2017/11/15 18:06] – [gettext] sbolayoperating_systems:apple:apache_-_php_-_mysql [2018/12/11 14:08] – Adding gettext notification maferreira
Line 74: Line 74:
   curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6   curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
   curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0   curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
-   +
-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 88: Line 86:
 <note tip>Warning: mysqli_connect(): (HY000/2002): No such file or directory in /Users/bfavre/Sites/git/easyaccess-web/lib/lib_dbconnection.php on line 27 <note tip>Warning: mysqli_connect(): (HY000/2002): No such file or directory in /Users/bfavre/Sites/git/easyaccess-web/lib/lib_dbconnection.php on line 27
 Could not connect to server (2002) No such file or directory</note> Could not connect to server (2002) No such file or directory</note>
 +<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;) and to finish you change the password (ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';)</note>
   mkdir /private/var/mysql/   mkdir /private/var/mysql/
   ln -s /tmp/mysql.sock /private/var/mysql/   ln -s /tmp/mysql.sock /private/var/mysql/
Line 96: 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