instalar appserv php apache phpmyadmin

php - appserv - xampp



phpmyadmin muestra el código, no la página web (2)

por favor, compruebe a continuación las cosas que le han encontrado en algunos enlaces de diff:

1. Make sure that PHP is installed. This sounds silly, but you never know. 2. Make sure that the PHP module is listed and uncommented inside of your Apache''s httpd.conf This should be something like LoadModule php5_module "c:/php/php5apache2_2.dll" in the file. Search for LoadModule php, and make sure that there is no comment (;) in front of it. 3. Make sure that the http.conf file has the PHP MIME type in it. This should be something like AddType application/x-httpd-php .php. This tells Apache to run .php files as PHP. Search for AddType, and then make sure there is an entry for PHP, and that it is uncommented. 4. Make sure your file has the .php extension on it, otherwise it will not be executed as PHP. 5. Make sure you are not using short tags in the PHP file (<?), these are deprecated, and usually disabled. Use <?php instead. Actually run your file over said webserver using an URL like http://localhost/file.php not via local access file://localhost/www/file.php

O consulte http://php.net/install

Gracias

Estaba actualizando mi distribución, desde kali (wheezy) a sid. Pero cuando estaba configurando mi servidor web, volví a instalar todo, apache2, php, mysql, etc., pero obtengo este error cuando localhost/phpmyadmin a localhost/phpmyadmin : esa URL no muestra una página de índice / inicio de sesión de phpmyadmin, pero muestra el código. En mi /var/www el valor predeterminado es index.html, lo renombré a index.php, y está bien, la página está cargada, hago lo mismo con mi otro directorio en /var/www Agregué index.php o foo. php y acceda a él, no hay problema, pero cuando ingreso phpmyadmin se muestra el código. Intenté instalar phpminiadmin y el adminer , pero recibo el mismo error, ambos muestran el código y no la página web.

Aquí está mi apache2.conf http://pastebin.com/MLYNQc6S

Y aquí está mi especificación:

#php -v PHP 5.5.7-2 (cli) (built: Dec 13 2013 00:25:07) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans # mysql --version mysql Ver 14.14 Distrib 5.5.33, for debian-linux-gnu (i686) using readline 6.2 # apache2 -v Server version: Apache/2.4.6 (Debian) Server built: Aug 12 2013 18:20:23 uname -a Linux angga.id 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali8 i686 GNU/Linux

y no se encontró ningún error en my /var/log/apache2/*log

Encontré este Localhost / phpmyadmin / devuelve el código php pero no me ayudó.

Entonces, ¿qué pasa con mi servidor?

EDIT 1: Me gusta @Matt dijo en el primer comentario. libapache2-mod-php5 no está instalado, entonces lo instalo con apt-get de repo.

apt-get install libapache2-mod-php5

pero devuelve un error, como este.

dpkg: error processing libapache2-mod-php5 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 E: Sub-process /usr/bin/dpkg returned an error code (1)

libapache2-mod-php5 synaptic y busco libapache2-mod-php5 y libapache2-mod-php5 dos paquetes con ese nombre libapache2-mod-php5filter y libapache2-mod-php5 , lo compruebo e lo instalo, éxito, no se encontró ningún error, reinicio apache2 y vaya a localhost/phpmyadmin y su trabajo. gracias por Matt.


prueba este sudo apt-get install libapache2-mod-php7.0