Skip to content

Instantly share code, notes, and snippets.

View jaimeivan's full-sized avatar
🏠
Working from home

Jaime Ivan jaimeivan

🏠
Working from home
View GitHub Profile
@jaimeivan
jaimeivan / .htaccess
Created May 15, 2013 15:59
Para cambiar el charset por default en Apache
AddDefaultCharset UTF-8

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

En el archivo:

/Applications/MAMP/bin/startMysql.sh

Agregar:

  --max_allowed_packet=64M
@jaimeivan
jaimeivan / .htaccess
Last active December 16, 2015 16:10
Apache lea los html como php
AddType application/x-httpd-php .htm .html
#Para GoDaddy
Options +ExecCGI
AddType application/x-httpd-php5 .htm .html .php
AddHandler x-httpd-php5 .htm .html .php
@jaimeivan
jaimeivan / instrucciones
Last active December 16, 2015 08:49
Habilitar los errores de php en el MAMP
1.- Creamos un script (phpinfo.php) que muestre: las propiedades que tiene php
2.- Ya ejecutado buscamos el dato
Loaded Configuration File : /Applications/MAMP/bin/php/php5.4.10/conf/php.ini
3.- En el archivo php.ini buscamos las lineas mencionadas y las cambiamos a On
4.- Guardamos y reiniciamos servidores
@jaimeivan
jaimeivan / Antecedentes
Created April 11, 2013 23:21
Al clonar un repositorio remoto con Git marca un error de perl
#Entorno: MacOSx 10.7.5
#Error
$ git clone ssh://...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),

Cuando no jala MySQL en el MAMP

$ killall -9 mysqld

Marca el siguiente error

Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) 
@jaimeivan
jaimeivan / info.md
Last active December 14, 2015 16:09
Link simbolico para usar en MAMP/XAMPP, ya que usar alias/acceso directo no funcionan

###Mac

Desde la ventana de comandos En Mac solo funciona con rutas absolutas en ambos parametros

ln -s [origen] [destino]

###Windows