Diferencia entre revisiones de «Usuario:Lmorillas/desarrollo web servidor/php»

De WikiEducator
Saltar a: navegación, buscar
 
Línea 8: Línea 8:
 
* Cheatsheet http://www.emezeta.com/articulos/emezeta-card-php-cheat-sheet
 
* Cheatsheet http://www.emezeta.com/articulos/emezeta-card-php-cheat-sheet
 
|Title=Documentación}}
 
|Title=Documentación}}
 +
 +
{{Tip|
 +
Echa un vistazo a https://www.lazycat.org/phptips.html}}
  
 
{{Usuario:Lmorillas/desarrollo_web_servidor/php/instalar}}
 
{{Usuario:Lmorillas/desarrollo_web_servidor/php/instalar}}

Última revisión de 09:54 9 feb 2014






Icon present.gif
Tip:

Echa un vistazo a https://www.lazycat.org/phptips.html




Icon objectives.jpg

Ubuntu - Instalar soporte de php

 $ sudo apt-get install apache2
 $ sudo apt-get install php5 libapache2-mod-php5

Para tener acceso a mysql

 $ sudo apt-get install mysql-server php5-mysql phpmyadmin

Reiniciar apache

 $ sudo service apache2 reload



Icon objectives.jpg

Depuración de php

Para ver los errores, puedes mirar el log de apache

 $ tail -f /var/log/apache2/error.log



Icon present.gif
Tip: Si hay que reinstalar apache y volver a generar la configuración:


  sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall apache2.2-common


Icon objectives.jpg

Instalar soporte para sqlite

 $ sudo apt-get install php5-sqlite
 $ sudo service apache2 reload



Icon objectives.jpg

Actualizar a php5.5

 sudo add-apt-repository ppa:ondrej/php5
 sudo apt-get update
 sudo apt-get install php5
 php5 -v
 sudo service apache2 restart

o

 http://www.dotdeb.org/