documentos:distros:fedora_lamp

Instalación LAMP en Fedora

yum -y install httpd
systemctl enable httpd
systemctl start httpd
# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: active (running) since Fri 2015-04-17 21:54:05 UTC; 7s ago
 Main PID: 26762 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─26762 /usr/sbin/httpd -DFOREGROUND
           ├─26763 /usr/sbin/httpd -DFOREGROUND
           ├─26764 /usr/sbin/httpd -DFOREGROUND
           ├─26765 /usr/sbin/httpd -DFOREGROUND
           ├─26766 /usr/sbin/httpd -DFOREGROUND
           └─26767 /usr/sbin/httpd -DFOREGROUND

Apr 17 21:54:05 gedora.w.uy systemd[1]: Started The Apache HTTP Server.
yum -y install mariadb mariadb-server
systemctl enable mysqld
systemctl start mysqld
# systemctl status mysqld
● mysqld.service - MySQL compatibility service (another name for mariadb.service; you should use mariadb.service instead)
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (exited) since Fri 2015-04-17 21:56:23 UTC; 42min ago
 Main PID: 27211 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/mysqld.service

Apr 17 21:56:23 gedora.w.uy systemd[1]: Started MySQL compatibility service (another name for mariadb.service; you should use mariadb.servi...nstead).
Hint: Some lines were ellipsized, use -l to show in full.
/usr/bin/mysql_secure_installation

Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!
yum -y install php php-mysql
# vim /var/www/html/info.php

<?php
  phpinfo();
?>
systemctl restart httpd
  • documentos/distros/fedora_lamp.txt
  • Última modificación: 2015/04/17 22:41
  • por 127.0.0.1