Install Php5+apache2+mysql4 under Debian

Source: Internet
Author: User
Tags ini mysql
APACHE|MYSQL|PHP5 El problema viene por conflictos entre, la licencias nueva de PHP versión estádesarrollada BSD Mie Ntras que MySQL continúa con GPL (http://www.programo.com/modules.php?name=News&file=article&sid=245).

Para Activarlo tienes dos Opciones:

1 Si te has bajado los Fuentes de PHP debes compilarlo con la opción mysql (--with-mysql).
2 Si Lo has instalado con la herramienta apt, edita el archivo/etc/php5/apache2/php.ini y quita el comentario de la Líne A; extension=mysql.so

* Tablas de tipo InnoDB.

Si deseamos Crear tablas de tipo InnoDB en mysql, debemos editar el Archivo
/etc/mysql/my.cnf y comentar la Línea:skip-innodb.
Las tablas de tipo InnoDB en MySQL, nos permiten crear claves foráneas con las que Podemos relacionar tablas y Actualizar Y Eliminar registros en cascada.

* Register Globals
Si deseas poder Crear sesiones en PHP, o bien enviar mediante el método POST valores con formularios debes dar el Valor "O n "a la variable register_globals."
Edita El Archivo/etc/php5/apache2/php.ini---> register_globals = On

Ya puedes ponerte Manos a la obra, Edita tus páginas en/var/www/y A accede Ellas a través de http://localhost.

Puedes realizar una configuración más completa, de acuerdo a tus necesidades consultando cualquier manual Completo de Apac He, Mysql o PHP.

Espero que os sirva de ayuda.

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.