Professional Documents
Culture Documents
LAMP:
2. Instalamos Apache
yum groupinstall "Servidor Web" Este comando instalaran los siguientes paquetes: httpd crypto-utils distcache httpd-manual mod_perl mod_python mod_ssl php php-ldap php-mysql squid webalizer Lo configuramos para que siempre arranque al reiniciar chkconfig --level 345 httpd on Iniciamos apache service httpd start
Ya podemos probarlo, abrimos un navegador y vamos a http://localhost/si vemos la siguiente panatalla todo ha salido bien
Otros comando de apache son: Iniciar Apache: /etc/init.d/httpd start service httpd start Detener Apache: /etc/init.d/httpd stop service httpd stop Reiniciar Apache; /etc/init.d/httpd restart service httpd restart Estatus Apache: /etc/init.d/httpd status service httpd status
3. Instalar MySQL
yum groupinstall "Base de datos MySQL"
Iniciamos MySQL
service mysqld start
Primero nos pregunta por la contrasea de root de MySQL Enter current password for root (enter for none):, aqu presionamos enter ya que todava no hay ninguna contrasea de root configurada para MySQL
Luego nos pregunta si queremos asignarle una contrasea de root para MySQL Set root password? [Y/n]escribimos Y y presionamos Enter Ahora nos aparecera New password: ponemos la contrasea y la repetimos Ahora pregunta si el usuario administrador solo puede ser utilizado desde el Localhost Disallow root login remotely? [Y/n] esto es recomendable por razones de seguridad, a menos que tengas algn requerimiento especial respondemos Y
Removemos la base de datos test que es de prueba Remove test database and access to it? [Y/n] si queremos respondiendo que Y
4. Instalar PhpMyAdmin
yum install phpmyadmin system-config-httpd
Reiniciamos apache
/etc/init.d/httpd restart
ahora comprobamos que todo este bien abriendo http://localhost/phpmyadmin nos pedir nuestro usuario que es por defecto root y la contrasea que es la que ingresamos al instalar MySQL.
Por ultimo la carpeta donde guardaremos los archivos de nuestra web es /var/www/html/ es recomendable darle permisos generales, para que no haya problemas ms adelante:
chmod 777 /var/www/html