---迁移wordpress
sudo tasksel install lamp-server
CREATE DATABASE WordPressDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mysite.conf
sudo a2ensite mysite
sudo a2enmod rewrite
mysql -u username -p new_database < data-dump.sql
/etc/apache2/apache2.conf:
<Directory /var/xwwwx/blogroot> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
mysql> CREATE DATABASE wordpress utf8 DEFAULT COLLATE utf8_genercal_ci; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON wordpress.* TO ‘vamei‘@‘localhost‘ IDENTIFIED BY ‘vameiisgood‘;
apache2ctl -S
https://www.cnblogs.com/vamei/archive/2012/12/04/2799381.html
https://www.hostinger.com/tutorials/how-to-install-wordpress-on-ubuntu-using-lamp-stack/
相关推荐
Wordpress0 2020-09-27
bluehost 2020-09-15
maccarty 2020-08-03
86520993 2020-07-28
WordPress 2020-07-04
李维山 2020-06-21
GimmeS 2020-06-14
WordPress 2020-06-10
shayuchaor 2020-06-10
liwf 2020-06-02
疯狂老司机 2020-05-26
zcl 2020-05-12
timewind 2020-05-11
86520993 2020-05-04
Lophole 2020-04-29
fraternityjava 2020-04-23
84911835 2020-04-16
maccarty 2020-04-09
WordPress 2020-04-07