{"id":714,"date":"2021-12-23T03:32:00","date_gmt":"2021-12-23T02:32:00","guid":{"rendered":"https:\/\/blog.pirulug.com\/?p=714"},"modified":"2021-12-23T03:32:00","modified_gmt":"2021-12-23T02:32:00","slug":"instalar-y-configurar-php-7-y-apache-mysql","status":"publish","type":"post","link":"https:\/\/blog.pirulug.com\/?p=714","title":{"rendered":"Instalar y configurar PHP 7 y Apache + MySQL"},"content":{"rendered":"<p>\n  En este articulo se ofrece, c\u00f3mo<br \/>\n  <strong>instalar y configurar PHP 7 y Apache http 2.4 mas MySQL<\/strong> en el<br \/>\n  sistema operativo Windows, ya que estos programas permiten el desarrollo de<br \/>\n  aplicaciones web, pero antes de entrar a la instalaci\u00f3n y configuraci\u00f3n,<br \/>\n  quiero mencionar que no utilizaremos Appserv o Xampp y otros que ya son<br \/>\n  entornos pre-configurados para su f\u00e1cil instalaci\u00f3n y uso, lo que haremos es:<br \/>\n  armar nuestro propio<br \/>\n  <a href=\"https:\/\/www.gitmedio.com\/como-crear-mi-propio-entorno-de-desarrollo-web-en-c\/\"><strong>entorno de desarrollo web<\/strong><\/a>, y as\u00ed para tener las ultimas versiones.\n<\/p>\n<p>A continuaci\u00f3n se listan los siguientes linkns de descarga.<\/p>\n<ul>\n<li>\n    <a href=\"http:\/\/httpd.apache.org\/download.cgi#apache24\">Apache http<\/a> o<br \/>\n    <a href=\"https:\/\/www.apachelounge.com\/download\/\">Apachelounge<\/a> y<br \/>\n    descargarse resdistribuibles<br \/>\n    <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=615459\">VC++ 2015 32 bit<\/a><br \/>\n    o<br \/>\n    <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=615460\">VC++ 2015 64 bit<\/a>\n  <\/li>\n<li>\n    <a href=\"http:\/\/windows.php.net\/download\/\">PHP<\/a>, xdebug y<br \/>\n    <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=40784\">VC++ 2014<\/a>\n  <\/li>\n<li>\n    <a href=\"http:\/\/dev.mysql.com\/downloads\/mysql\/5.6.html#downloads\">MySQL<\/a>\n  <\/li>\n<li><a href=\"https:\/\/www.phpmyadmin.net\/downloads\/\">PhpMyAdmin<\/a><\/li>\n<\/ul>\n<h2 id=\"paso-n\u00ba-1\"><strong>Paso N\u00ba 1<\/strong><\/h2>\n<p><strong>Descomprimir Apache HTTP, PHP y MySQL.<\/strong><\/p>\n<p>\n  Al descargar los archivos seg\u00fan a la arquitectura del PC, se debe proceder a<br \/>\n  descomprimir en el directorio padre *<em>C:mientorno*<\/em> y ademas crear<br \/>\n  tres carpetas mas, y dentro de carpeta www crear un archivo index.html o<br \/>\n  index.php, de modo que debe quedar de la siguiente Manera.\n<\/p>\n<blockquote>\n<p>\n    C:mientornoApache<br \/>\n    C:mientornoPhp7<br \/>\n    C:mientornoMySQL<br \/>\n    C:mientornowww<br \/>\n    C:mientornocgi-bin<br \/>\n    C:mientornotemporal\n  <\/p>\n<\/blockquote>\n<p>\n  <a href=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Instalar-configurar-PHP-MYSQL-APACHE-HTTP.jpg\"><img decoding=\"async\" src=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Instalar-configurar-PHP-MYSQL-APACHE-HTTP.jpg\" alt=\"Instalar-configurar-PHP-MYSQL-APACHE-HTTP\" \/><\/a>\n<\/p>\n<h2 id=\"paso-n\u00ba-2\"><strong>Paso N\u00ba 2<\/strong><\/h2>\n<p><strong>Configurar Archivos httpd.conf, my-default.ini y php.ini<\/strong><\/p>\n<p>\n  En este paso realizaremos cuidadosamente la configuraci\u00f3n de cada uno de los<br \/>\n  archivos, por la cual con un minimo de error la aplicaci\u00f3n no podr\u00e1 ejecutarse<br \/>\n  correctamente.\n<\/p>\n<p>\n  <strong>Configurando Apache<\/strong>, nos dirigimos a al ruta<br \/>\n  C:mientornoApacheconf y abrimos en un editor de texto el archivo<br \/>\n  <strong>httpd.conf<\/strong> para modificar la siguientes lineas:\n<\/p>\n<pre class=\"language-conf\"><code class=\"prism  language-conf\">ServerRoot &quot;C:\/mientorno\/Apache&quot;\n\nServerName localhost #O si no poner 127.0.0.1\n\nDocumentRoot &quot;C:\/mientorno\/www&quot;\n&lt;Directory &quot;C:\/mientorno\/www&quot;&gt;\n\n&lt;IfModule dir_module&gt;\n DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \n default.php default.pl default.cgi default.asp default.shtml default.html default.htm \n home.php home.pl home.cgi home.asp home.shtml home.html home.htm\n&lt;\/IfModule&gt;\n\nScriptAlias \/cgi-bin\/ &quot;C:\/mientorno\/cgi-bin\/&quot;\n\n&lt;Directory &quot;C:\/mientorno\/cgi-bin\/&quot;&gt;\n<\/code><\/pre>\n<p>\n  Al modificar las lineas, procedemos a guardar, y presionamos las teclas<br \/>\n  windows + r, escribimos el comando CMD\u2013&gt;Enter por el cual nos debe mostrar<br \/>\n  una pantalla de linea de comando, en la cual tambi\u00e9n escribimos las siguientes<br \/>\n  lineas de comando que se ve en la imagen.\n<\/p>\n<p>\n  <a href=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Ejecutar.jpg\"><img decoding=\"async\" src=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Ejecutar.jpg\" alt=\"Ejecutar Apache con linea de comando CMD\" \/><\/a>\n<\/p>\n<p>\n  Para ver que si se esta ejecutando correctamente, abrir el explorador web y<br \/>\n  escribir localhost en la bara de URL. Si les genera alg\u00fan error, verificar la<br \/>\n  configuraci\u00f3n en el archivo <strong>httpd.conf.<\/strong>\n<\/p>\n<p><strong>Configurando PHP<\/strong><\/p>\n<p>\n  Nos dirigimos a la siguiente ruta C:mientornoPhp7 buscamos y re-nombramos el<br \/>\n  archivo php.ini-production por el nombre php.ini, una vez renombrado abrir en<br \/>\n  un editor de texto, y modificamos las siguientes lineas.\n<\/p>\n<pre class=\"language-ini\"><code class=\"prism  language-ini\">&lt;span class=&quot;token constant&quot;&gt;zlib.output_compression&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; On&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;display_errors&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; On&lt;\/span&gt;\n&lt;span class=&quot;token comment&quot;&gt;;Crear carpeta llamado error en la ruta C:mientornophp7.&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;error_log&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornophp7error&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension_dir&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornoPhp7ext&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;enable_dl&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; On&lt;\/span&gt;\n&lt;span class=&quot;token comment&quot;&gt;;Quitar los punto y comas de las siguientes extensiones&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_bz2.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_curl.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_fileinfo.dll&lt;\/span&gt;\n\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_mbstring.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_exif.dll      &lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_mysqli.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_openssl.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_pdo_mysql.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_pdo_pgsql.dll&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;extension&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;php_pdo_sqlite.dll&lt;\/span&gt;\n\n&lt;span class=&quot;token constant&quot;&gt;date.timezone&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;America\/La_Paz ;Poner la Zona horaria de tu pa\u00eds&lt;\/span&gt;\n\n&lt;span class=&quot;token constant&quot;&gt;pdo_mysql.default_socket&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;MySQL&quot;&lt;\/span&gt;\n\n&lt;span class=&quot;token constant&quot;&gt;session.save_path&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornotemporal&quot;&lt;\/span&gt;\n\n&lt;span class=&quot;token selector&quot;&gt;[XDebug]&lt;\/span&gt;\n&lt;span class=&quot;token comment&quot;&gt;;Descargar la extensi\u00f3n y pegar en la ruta correspondiente &lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;zend_extension&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornoPhp7extphp_xdebug.dll&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.profiler_append&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; 0&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.profiler_enable&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; 1&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.profiler_enable_trigger&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; 0&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.profiler_output_dir&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornotemporal&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.profiler_output_name&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;cachegrind.out.%t-%s&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.remote_enable&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; On&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.remote_handler&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;dbgp&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.remote_host&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;127.0.0.1&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.trace_output_dir&lt;\/span&gt; &lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt; &quot;C:mientornotemporal&quot;&lt;\/span&gt;\n&lt;span class=&quot;token constant&quot;&gt;xdebug.remote_port&lt;\/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;\/span&gt;9000&lt;\/span&gt;\n<\/code><\/pre>\n<p>\n  Una vez reemplazado la configuraci\u00f3n por defecto guardar el archivo ini, y nos<br \/>\n  dirigimos de nuevo al archivo <strong>httpd.conf<\/strong> del Apache y<br \/>\n  agregamos la final del archivo las siguientes lineas de c\u00f3digo.\n<\/p>\n<pre class=\"language-conf\"><code class=\"prism  language-conf\">LoadFile C:mientornoPhp7php7ts.dll\nLoadFile C:mientornoPhp7libpq.dll\nLoadModule php7_module &quot;C:mientornoPhp7php7apache2_4.dll&quot;\nAddHandler application\/x-httpd-php .php\nAddType application\/x-httpd-php .html .html .asp\nPHPIniDir &quot;C:mientornoPhp7&quot;\n<\/code><\/pre>\n<p>\n  Una vez guardado el archivo <strong>httpd.conf<\/strong>, copiamos el archivo<br \/>\n  dll C:mientornoPhp7libssh2.dll a la siguiente ruta<br \/>\n  C:mientornoApachebinlibssh2.dll.\n<\/p>\n<p>\n  Donde se encuentra la carpeta www de nuestro entorno de desarrollo crear un<br \/>\n  archivo index.php con el codigo &lt;?php echo phpinfo(); ?&gt;\n<\/p>\n<p>\n  Una vez realizada las cuyas operaciones, ejecutar desde la linea de comando<br \/>\n  CMD, tal como hemos visto en la anterior ejemplo de imagen. Al escribir la<br \/>\n  palabra localhost en la barra de URL del explorador, deber\u00eda de ejecutarse<br \/>\n  correctamente mostrando informaci\u00f3n sobre PHP7 y dem\u00e1s.\n<\/p>\n<p><strong>Configurar MySQL<\/strong><\/p>\n<p>\n  Si descargaste la versi\u00f3n MySQL 5.7, buscar el archivo my-default.ini, crear<br \/>\n  la carpeta llamado data, y agregar las siguientes lineas en el archivo ini:\n<\/p>\n<pre><code>basedir =C:\/mientorno\/MySQL\ndatadir =C:\/mientorno\/MySQL\/data\n<\/code><\/pre>\n<p>\n  En la pantalla de linea de comando ejecutar el siguiente comando, la ejecuci\u00f3n<br \/>\n  tardara unos cuantos segundos:\n<\/p>\n<p><code>C:mientornoMySQLbin&gt;mysqld --initialize-insecure<\/code><\/p>\n<p>\n  Cuando finalice al invocar, iniciar el servidor MySQL con la siguiente linea<br \/>\n  de comando:\n<\/p>\n<p>\n  <code>C:mientornoMySQLbin&gt;mysqld<br \/>\n    --defaults-file=C:mientornoMySQLmy-default.ini --console&lt;\/code<br \/>\n  &gt;<br \/>\n&lt;\/p&gt;<br \/>\n&lt;p&gt;<br \/>\n  Abrir una nueva ventana de consola y ejecutar el siguiente linea de comando:<br \/>\n  &lt;em&gt;C:mientornoMySQLbin&gt;mysql -u root -p&lt;\/em&gt; y le pedir\u00e1 que ingrese<br \/>\n  pasword, simplemente presione la tecla enter, y deber\u00eda de acceder a la base<br \/>\n  de datos donde podremos ejecutar el siguiente comando SQL para crear el<br \/>\n  usuario:<br \/>\n&lt;\/p&gt;<br \/>\n&lt;pre<br \/>\n  class=&quot;language-bash&quot;<br \/>\n&gt;&lt;code class=&quot;prism  language-bash&quot;&gt;ALTER USER &lt;span class=&quot;token string&quot;&gt;&#039;root&#039;&lt;\/span&gt;@&lt;span class=&quot;token string&quot;&gt;&#039;localhost&#039;&lt;\/span&gt; IDENTIFIED BY &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;<br \/>\n<\/code><\/p>\n<p>\n  Por otra parte si se descarg\u00f3 la versi\u00f3n MySQL 5.5.51 este se distribuye pre<br \/>\n  configurado, por la cual no hay la necesidad de configurar manualmente.\n<\/p>\n<p>\n  Par iniciar la versi\u00f3n MySQL 5.5.51 pegamos la siguiente linea de comando.\n<\/p>\n<pre class=\"language-bash\"><code class=\"prism  language-bash\">mysqld --defaults-file&lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt;C:mientornoMySQLmy-large.ini --console\n<\/code><\/pre>\n<p>\n  <a href=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Iniciar-mysql-desde-linea-de-comando.jpg\"><img decoding=\"async\" src=\"https:\/\/www.gitmedio.com\/wp-content\/uploads\/2016\/08\/Iniciar-mysql-desde-linea-de-comando.jpg\" alt=\"Iniciar-mysql-desde-linea-de-comando\" \/><\/a>\n<\/p>\n<p>\n  Para probar la ejecuci\u00f3n correcta, abrir un nuevo ventana de consola, y<br \/>\n  ejecutar con el siguiente linea de comando:<br \/>\n  C:mientornomysqlbin&gt;mysql, lo cual tendr\u00eda que permitir ejecutar la<br \/>\n  consulta SQL.\n<\/p>\n<h2 id=\"paso-n\u00ba-3\">Paso N\u00ba 3<\/h2>\n<p><strong>Configurar PhpMyAdmin<\/strong><\/p>\n<p>\n  En el directorio padre crear una nueva carpeta PhpMyAdmin y descomprimir el<br \/>\n  archivo descargado phpMyAdmin-4.6.4-all-languages.zip, para configurar crear<br \/>\n  un nuevo archivo con el nombre config.inc.php y pegar el siguiente linea de<br \/>\n  c\u00f3digo.\n<\/p>\n<pre class=\"language-php\"><code class=\"prism  language-php\">&lt;span class=&quot;token php language-php&quot;&gt;&lt;span class=&quot;token delimiter important&quot;&gt;&lt;?php&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;blowfish_secret&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;a8b7c6d&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt; \n\n&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token operator&quot;&gt;++&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;auth_type&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;config&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;user&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;root&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;password&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;extension&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;mysqli&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;AllowNoPassword&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Lang&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;host&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;127.0.0.1&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;connect_type&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;tcp&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;controluser&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;pma&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;Servers&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token variable&quot;&gt;$i&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;controlpass&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;UploadDir&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n&lt;span class=&quot;token variable&quot;&gt;$cfg&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&#039;SaveDir&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;\/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&#039;&#039;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;\/span&gt;\n\n&lt;span class=&quot;token delimiter important&quot;&gt;?&gt;&lt;\/span&gt;&lt;\/span&gt;\n<\/code><\/pre>\n<p>\n  Por ultimo tambi\u00e9n agregamos al final del el archivo de configuraci\u00f3n<br \/>\n  <strong>httpd.conf<\/strong> de Apache, las siguientes lineas:\n<\/p>\n<pre class=\"language-conf\"><code class=\"prism  language-conf\">#---------Configuraci\u00f3n para PHPMYADMIN----------\nAlias \/phpmyadmin &quot;C:\/mientorno\/PhpMyAdmin&quot;\n&lt;Directory &quot;C:\/mientorno\/PhpMyAdmin&quot;&gt;\nAllowOverride All\nRequire all granted\n&lt;\/Directory&gt;\n<\/code><\/pre>\n<p>\n  Para comprobar la configuracion correcta de phpMyAdmin escribir<br \/>\n  <a href=\"http:\/\/localhost\/phpmyadmin\/\">http:\/\/localhost\/phpmyadmin\/<\/a> en la<br \/>\n  barra de url del explorador web.\n<\/p>\n<p>\n  Toda la instalaci\u00f3n y configuracion que se realiza en este articulo deber\u00eda<br \/>\n  funcionar correctamente en su PC, si es que ha realizado paso a paso, caso<br \/>\n  contrario realizar comentario en el pie de este articulo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En este articulo se ofrece, c\u00f3mo instalar y configurar PHP 7 y Apache http 2.4 mas MySQL en el sistema operativo Windows, ya que estos programas permiten el desarrollo de aplicaciones web, pero antes de entrar a la instalaci\u00f3n y configuraci\u00f3n, quiero mencionar que no utilizaremos Appserv o Xampp y otros que ya son entornos [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[30,93,108,143,144,145],"class_list":["post-714","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-apache","tag-mysql","tag-php","tag-windows","tag-windows-10","tag-windows-11"],"_links":{"self":[{"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=\/wp\/v2\/posts\/714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=714"}],"version-history":[{"count":0,"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=\/wp\/v2\/posts\/714\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pirulug.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}