Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Configurar Apache, Php, MySql y PhpMyAdmin

  1. #1
    Join Date
    May 2009
    Location
    Rosario, Argentina
    Beans
    169
    Distro
    Ubuntu 12.04 Precise Pangolin

    Configurar Apache, Php, MySql y PhpMyAdmin

    Alguien me ayuda a configurar todo esto? desde hace bastante tengo ganas de hacer unas cuantas cosas en php y no puedo arreglar esto :S estube viendo unos cuantos posts en el foro pero ninguno me lo pudo solucionar lamentablemente.

    Les cuento mi situación, que seguro a más de uno le paso... cuando voy a http://localhost/test.php me sale el cartelito para descargar el archivo, es decir, no me interpreta el php.

    NOTA:
    el archivo test.php contiene <?php echo phpinfo(); ?>

    Gracias a todos

    FB91
    Attached Images Attached Images

  2. #2
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    In terminal ( it'll reinstall PHP and mod for Apache ):
    Code:
    sudo apt-get remove --purge php5 libapache2-mod-php5 && sudo apt-get install php5 libapache2-mod-php5 && sudo /etc/init.d/apache2 restart
    For the future knowledge, please write in English ( Google translate isn't the right way to communicate with each other ).

  3. #3
    Join Date
    May 2009
    Location
    Rosario, Argentina
    Beans
    169
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    Quote Originally Posted by credobyte View Post
    In terminal ( it'll reinstall PHP and mod for Apache ):
    Code:
    sudo apt-get remove --purge php5 libapache2-mod-php5 && sudo apt-get install php5 libapache2-mod-php5 && sudo /etc/init.d/apache2 restart
    For the future knowledge, please write in English ( Google translate isn't the right way to communicate with each other ).
    hi credobyte I did what you told me but I still have the same problem... any idea?

    (I wrote in Spanish because this is the forum for argentina )

    Alguien me dice como configurar todo para que me quede bien?

    Salu2!

  4. #4
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    Weird. Apache seems to know what PHP means ( you can see it in your browser ), tough, it doesn't open it.

    What if you change permissions ( might be screwed up for some unknown reason ) ?
    Code:
    sudo chmod 755 /var/www/index.php

  5. #5
    Join Date
    May 2009
    Location
    Rosario, Argentina
    Beans
    169
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    nothing happened :S
    I think I have something misconfigured

  6. #6
    Join Date
    Oct 2008
    Location
    La Plata
    Beans
    966
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    Tengo exactamente el mismo problema! Help

  7. #7
    Join Date
    Jul 2007
    Location
    Segura, Spain
    Beans
    235

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    podrías poner por aqui el contenido del archivo /etc/apache2/mods-available/php5.conf, comprueba también si la librería que indica el archivo /etc/apache2/mods-available/php5.load existe en tu sistema
    pliiiiiiiiiiis
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

  8. #8
    Join Date
    May 2009
    Location
    Rosario, Argentina
    Beans
    169
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    Quote Originally Posted by jjgomera View Post
    podrías poner por aqui el contenido del archivo /etc/apache2/mods-available/php5.conf, comprueba también si la librería que indica el archivo /etc/apache2/mods-available/php5.load existe en tu sistema
    pliiiiiiiiiiis
    el archivo php5.conf contiene lo siguiente:

    Code:
    <IfModule mod_php5.c>
      AddType application/x-httpd-php .php .phtml .php3
      AddType application/x-httpd-php-source .phps
    </IfModule>
    Y la librería que indica el archivo php5.load existe, pero al intentar abrirle me sale este mensaje
    Code:
    gedit no ha podido detectar la codificación de caracteres.
    Compruebe que no está intentando abrir un archivo binario.
    Seleccione una codificación de caracteres desde el menú e intente de nuevo
    P.D.: Que buen avatar que tenés !! xD

  9. #9
    Join Date
    Jul 2007
    Location
    Segura, Spain
    Beans
    235

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    pues el problema no esta ahí, tienes en /etc/apache2/mods-enabled un archivo php5.conf que sea un enlace simbolico del archivo /etc/apache2/mods-available/php5.conf?

    Quote Originally Posted by FB91 View Post
    P.D.: Que buen avatar que tenés !! xD
    gracias, homer (homero) y tux en uno
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

  10. #10
    Join Date
    May 2009
    Location
    Rosario, Argentina
    Beans
    169
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Configurar Apache, Php, MySql y PhpMyAdmin

    sisi tenés razón, el php5.conf de mod-enabled es un enlace simbólico al de mod-available, o por lo menos eso creo... en las propiedades del archivo dice: Enlace hacia documento de texto sencillo (text/plain) así que supongo que estás en lo cierto!

    Sigo aquí esperando consejos!

    Gracias!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •