Last active
November 23, 2021 23:41
Instalación de Wordpress en Ubuntu Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guía de instalación de Wordpress en Ubuntu Server. | |
Instalar LAMP | |
sudo apt update | |
sudo apt install git zip | |
sudo apt install apache2 | |
sudo ufw app list | |
sudo ufw allow in "Apache" | |
sudo apt install mariadb-server | |
sudo mysql_secure_installation | |
sudo mysql | |
CREATE USER 'admin'@'localhost' IDENTIFIED BY '0mEg4a9012_'; | |
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost'; | |
FLUSH PRIVILEGES; | |
sudo apt install php libapache2-mod-php php-mysql | |
sudo apt install php-xml php-mbstring php-gd php-zip php-curl php-gmp php-imagick | |
cd /var/www/html/ | |
curl -O https://wordpress.org/latest.tar.gz | |
tar xzvf latest.tar.gz | |
cd /etc/apache2/sites-available/ | |
sudo nano 000-default.conf | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName appname.com | |
ServerAlias www.appname.com | |
DocumentRoot /var/www/html/wordpress | |
<Directory "/var/www/html/wordpress"> | |
Options FollowSymLinks MultiViews | |
Order Allow,Deny | |
Allow from all | |
ReWriteEngine On | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
sudo a2enmod rewrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment