Saltar al contenido

cuaderno de campo

anotaciones

Menú
  • casa
    • dinou del carrer nou
  • cocina
    • pan
    • repostería
    • verdura
  • huerto
    • instrucciones sobre el huerto
    • plano del número 29
    • huerto del año 2025
  • humanidades
    • fonoteca
    • galería
  • juego
    • colección de roms
    • steamos en steam deck
    • lista de juego
    • dosbox
  • linux
    • bash
    • sistema operativo
    • ssh
  • web
    • apache
    • css
    • html5
    • javascript
    • mysql
    • php
Menú

php: instalación y configuración

Publicada el 15 de diciembre de 201526 de febrero de 2021 por ernesto
  1. sudo apt-get install php5
  2. sudo a2enmod php5

    Enabling module php5.
    To activate the new configuration, you need to run:  service apache2 restart

  3. luego, se reinicia el servidor:
    sudo service apache2 restart

    o

    sudo systemctl restart apache2.service

    esto debería valer.

  4. los archivos de configuración del módulo de php5 para apache2 se encuentran en
    1. /etc/apache2/mods-available/php5.conf
      <FilesMatch ".+.ph(p[345]?|t|tml)$">
          SetHandler application/x-httpd-php
      </FilesMatch>
    2. /etc/apache2/mods-available/php5.load

      LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

  5. en cuanto a la configuración del propio php,
    sudo nano /etc/php5/apache2/php.ini

    short_open_tag = On

    esta opción, por ejemplo, permite la apertura de código mediante <?php o <?

  6. por último, se reinicia el servidor:
    sudo service apache2 restart

    o

    sudo systemctl restart apache2.service
Etiquetado como a2enmod, apt-get, filesmatch, id, php.ini, service, systemctl
  • php desde la línea de comandos

    entorno de ejecución antes de ejecutar php desde la línea de comandos, es necesario conocer…

  • constante en heredoc

    una constante no devuelve su valor dentro de la sintaxis heredoc: define("C", "constante"); echo <<<HTML…

  • apache2: instalación y configuración

    instalación y configuración sudo apt-get install apache2 sudo nano /etc/apache2/apache2.conf Timeout 30 MaxKeepAliveRequests 25 sudo…

Feed RSS: rutas fuera rutas fuera

  • Atacados por criaturas extrañas, con Javier Resines 5 de noviembre de 2026 Javier Resines
  • I like the beats and I like the yelling, 2nd November 26 2 de noviembre de 2026 Hate Meditations
  • Reseñas breves (octubre de 2026) 31 de octubre de 2026 Belisario
  • I like the beats and yelling, 27th October 26 27 de octubre de 2026 Hate Meditations
  • The best contemporary death metal albums you’ve never heard of 23 de octubre de 2026 Hate Meditations
  • Criptozoología en Misterios on Air 22 de octubre de 2026 Javier Resines
  • Smoulder’s fumbled provocation: a beats and yelling feature 21 de octubre de 2026 Hate Meditations
  • I like the beats and I like the yelling, 19th October 26 19 de octubre de 2026 Hate Meditations
  • Samuel Adams – Cherry Bomb 18 de octubre de 2026 Brett Stevens

Archivo

cuaderno de campo 2011-2026