Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaÚltima revisiónAmbos lados, revisión siguiente |
es:howtos:network_services:setup_apache_php_mysql [2019/02/16 19:24 (UTC)] – [Configuración de Apache, PHP y MySQL] pedro.herrero | es:howtos:network_services:setup_apache_php_mysql [2019/02/16 19:54 (UTC)] – [Configuración de Apache, PHP y MySQL] pedro.herrero |
---|
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> |
| |
<note important>Translation in progress (pedro.herrero)</note> | |
| |
====== Configuración de Apache, PHP y MySQL ====== | ====== Configuración de Apache, PHP y MySQL ====== |
* Opcionalmente 2, si utiliza Perl para scripts web, puede que desee añadir '''index.pl''' también. <code> | * Opcionalmente 2, si utiliza Perl para scripts web, puede que desee añadir '''index.pl''' también. <code> |
<IfModule dir_module> DirectoryIndex index.html </IfModule> | <IfModule dir_module> DirectoryIndex index.html </IfModule> |
</code> ... y cambiarlo a: <code> | </code> ... y cámbielo a: <code> |
<IfModule dir_module> DirectoryIndex index.html index.php </IfModule> | <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> |
</code> Por favor, tenga en cuenta la parte añadida "index.php". Ahora puede __save__ y cerrar su archivo '''/etc/httpd/httpd.conf''' y reiniciar su servidor Apache para que se apliquen sus modificaciones. Como root, ejecute: <code bash> | </code> Por favor, tenga en cuenta la parte añadida "index.php". Ahora puede __guardar__ y cerrar su archivo '''/etc/httpd/httpd.conf''' y reiniciar su servidor Apache para que se apliquen sus modificaciones. Como root, ejecute: <code bash> |
apachectl restart | apachectl restart |
</code> | </code> |
| |
\\ | \\ |
* Si desea que su servidor Apache se inicie automáticamente cuando inicie su caja, puede cambiar los permisos del archivo '''/etc/rc.d/rc.httpd'''. Ejecute el siguiente comando como root: <code bash> | * Si desea que su servidor Apache se inicie automáticamente cuando inicie su equipo, puede cambiar los permisos del archivo '''/etc/rc.d/rc.httpd'''. Ejecute el siguiente comando como root: <code bash> |
* chmod 755 /etc/rc.d/rc.httpd | * chmod 755 /etc/rc.d/rc.httpd |
</code> Ahora su servidor Apache se iniciará automáticamente cuando su sistema arranque. \\ \\ Para configurar su instalación de MySQL, por favor vea el documento [[es:howtos:databases:install_mysql_on_slackware|Install MySQL En Slackware]]. | </code> Ahora su servidor Apache se iniciará automáticamente cuando su sistema arranque. \\ \\ Para configurar su instalación de MySQL, por favor vea el documento [[es:howtos:databases:install_mysql_on_slackware|Install MySQL En Slackware]]. |
| |
| |
===== Final Considerations ===== | ===== Reflexiones finales ===== |
| |
* Normally you would want to test your recent changes in order to know if they have worked. After restarting Apache, create a '''test.php''' file on your '''/var/www/htdocs/''' directory with the following: <code php> | * Normalmente usted querría probar sus cambios recientes para saber si han funcionado. Después de reiniciar Apache, cree un archivo '''test.php''' en su directorio '''/var/www/htdocs/''' con lo siguiente: <code php> |
<?php phpinfo(); ?> | <?php phpinfo(); ?> |
</code> Now you can open your favorite web browser to the following URL: http://localhost/test.php . If you your PHP installation's settings are displayed, then you have configured your Apache correctly, otherwise, please re-check this documentation (getting sure you have followed every step correctly), or contact us at ##slackware on FreeNode. | </code> Ahora puede abrir su navegador web favorito en la siguiente URL: http://localhost/test.php . Si se muestra la configuración de su instalación PHP, entonces ha configurado su Apache correctamente, de lo contrario, por favor vuelva a comprobar esta documentación (asegurándose de que ha seguido cada paso correctamente), o póngase en contacto con nosotros en ##slackware en FreeNode. |
| |
| |
===== Sources ===== | ===== Fuentes ===== |
| |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> |
* Original source: [[http://slackware-es.com/tutoriales/administracion/configurar-apache-php-y-mysql-en-slackware-linux]] | * Fuente original: [[http://slackware-es.com/tutoriales/administracion/configurar-apache-php-y-mysql-en-slackware-linux]] |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> |
* Originally written by User [[wiki:user:pavel |Pavel E.]] | * Escrito Originalmente por el Usuario [[wiki:user:pavel |Pavel E.]] |
| * Traducido por --- //[[wiki:user:pedro.herrero|Pedro Herrero García]] 2019/02/16 19:33 (UTC)// |
| |
{{tag>howtos apache php author_pavel}} | {{tag>howtos apache php author_pavel}} |
| |
| |