Herramientas de usuario

Herramientas del sitio


wiki2:install_wordpress

¡Esta es una revisión vieja del documento!


Install wordpress

Apache

Install Apache, PHP & MySQL

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-server php5-mysql
sudo /etc/init.d/apache2 restart

Backup and restore

  1. Before of this install the plugin (you can do it on the admin panel) backupwordpress.
  2. Make and download a backup file. This file must contain files and database.
  3. Format server
  4. Install apache, php and Mysql. Ensure
  5. Go to /var/www/html
  6. Download with wget the last Wordpress.
  7. Unzip the wordpress file.
  8. Upload the previous backup file.
  9. Unzip the backup file.
  10. Change in the database file (.sql) the beginning adding: the next lines (if database is called blog):
    1. CREATE DATABASE blog;
    2. USE blog;
  11. If database has a different password than the previous one you should change wp-config.php.
  12. Execute the command: mysql -u <user> -p < db_backup.dump
  13. Go to /var/www and execute:
    1. chown -R www-data html
    2. chgrp -R www-data html
wiki2/install_wordpress.1460836104.txt.gz · Última modificación: 2020/05/09 09:24 (editor externo)