0% found this document useful (0 votes)
6 views

Word Pres

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Word Pres

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

0.

LAMP
sudo apt update
// SERVIDOR WEB
sudo apt install apache2
// SERVIDOR BASES DE DATOS
sudo apt install mariadb-server
sudo mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
mysql> exit;
mysql -u root -proot
mysql> CREATE DATABASE wpdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
mysql> CREATE USER 'uwpdb'@'localhost' IDENTIFIED BY 'uwpdb';
mysql> GRANT ALL ON wpdb.* TO 'uwpdb'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit;
// INTERPRETE WEB DE LENGUAGE PHP
sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-mbstring php-
xml php-xmlrpc php-soap php-intl php-zip
sudo systemctl restart apache2

WORDPRESS
CREACION DE SERVIDOR VIRTUAL
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/vb1a.conf
sudo mkdir /var/www/wp
sudo nano /etc/apache2/sites-available/vb1a.conf
<VirtualHost *:80>
ServerName vb1a

ServerAdmin webmaster@localhost
DocumentRoot /var/www/wp

<Directory /var/www/wp/>
AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
En anfitrion modificar /etc/hosts y añadir entrada IP vb1a
sudo a2ensite vb1a.conf
http://[IP]
http://vb1a
systemctl reload apache2
sudo a2enmod rewrite
sudo systemctl restart apache2

INSTALACIÓN
cd /tmp
curl -O https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
touch /tmp/wordpress/.htaccess
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
mkdir /tmp/wordpress/wp-content/upgrade
sudo cp -a /tmp/wordpress/. /var/www/wp
sudo chown -R www-data:www-data /var/www/wp
sudo find /var/www/wp/ -type d -exec chmod 750 {} \;
sudo find /var/www/wp/ -type f -exec chmod 640 {} \;
curl -s https://api.wordpress.org/secret-key/1.1/salt/
define('AUTH_KEY', '%nht8x_)v8/(:)4OK||<(1WC2hHJ$pdyuFP,T^!ud:7mmo;CrG
Bh,iXy#8BKY(.');
define('SECURE_AUTH_KEY', '-w@^x)#cRF|9#Y*%uv{<$Nt#uR(/x&+S~vx}2B w- !
QJ:ZJ`KZ<}6W;-1bk`lk7');
define('LOGGED_IN_KEY', 'zBd+9y7:GQIh(lhe!$/-PS2,+|_;Wu2^r5mV+#jhm_9s(Fa+%F9N+
%vPSC:;+U c');
define('NONCE_KEY', 'GtPo;NDoiwHD&+Q_7ZVpb*f+saysQ$ts1or?9#U!Ru-N,C<<|xR|
U*)9(|[r& +t');
define('AUTH_SALT', 'q@yY+2n<XLiQ$Q<$gkp{ Rc-(EkO;K^%4Nyd1P! 6bjT{DXQ<rsdl<T
5+99:vB-');
define('SECURE_AUTH_SALT', ']*-c[{2tnDO%7EeM+T-
rT[+eXe{ajklCQ*Vkk<HDwf7[nqEJENrk@@&(+_nEcUuX');
define('LOGGED_IN_SALT', '7Tl3Z4JaRL-gD|
<6{s4w^q2XCNHz`W1gcJSUIc@id]<}F:D_D84ZMd:`3VpE+F*#');
define('NONCE_SALT', '7IaI[71C|!anL0yZ-UCIe[<!hBUQn4ys6-Mjfq{{6o|
69bNHJN&Gk2k^MYG>1.F0');
sudo nano /var/www/wp/wp-config.php
define('FS_METHOD', 'direct');

You might also like