Skip to content

Instantly share code, notes, and snippets.

@wisusdev
Last active November 23, 2021 23:41
Show Gist options
  • Save wisusdev/01e0dc2c89164ef9154e7b89a5563831 to your computer and use it in GitHub Desktop.
Save wisusdev/01e0dc2c89164ef9154e7b89a5563831 to your computer and use it in GitHub Desktop.
Instalación de Wordpress en Ubuntu Server
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