1 ls
2 pwd
3 sudo apt-get install php5-gd
4 sudo a2enmod rewrite
5 sudo apt-get install apache2
6 sudo apt-get install php5
7 sudo apt-get install mysql-server
8 sudo apt-get install php5-mysql
9 mysql -u root
10 mysql -u root -P
11 mysql -uroot -p
12 sudo vi /etc/apache2/sites-available/default-ssl.conf
13 sudo vi /etc/apache2/sites-available/000-default.conf
14 cd /var/www/
15 ls
16 wget http://wordpress.org/latest.tar.gz
17 ls
18 sudo wget http://wordpress.org/latest.tar.gz
19 ls
20 ls -al
21 sudo tar -xvzf latest.tar.gz
22 ls
23 cd html/
24 ls
25 ifconfig
26 sudo chown www-data:www-data * -R
27 ls
28 cd ..
29 sudo chown www-data:www-data * -R
30 ls
31 ls -al
32 sudo usermod -a -G www-data user
33 ls
34 ls -al
35 sudo chmod -R 775 /var/www/
36 ls
37 ls -al
38 sudo /etc/init.d/apache2 restart
39 ls
40 cd html/
41 ls
42 mv ../wordpress/ .
43 sudo mv ../wordpress/ .
44 ls
45 ls -al
46 cat index.html
47 sudo apt-get install php
48 sudo apt-get install php7.0-gd
49 apt-get update
50 sudo apt-get update
51 sudo apt-get install php7.0-gd
52 sudo a2enmod rewrite
53 service apache2 restart
54 ls
55 sudo chmod -R 775 /var/www/
56 sudo chown -R www-data:$USER
57 sudo chown -R www-data:$USER .
58 ls
59 ls -al
60 apt-get install php libapache2-mod-php
61 sudo apt-get install php libapache2-mod-php
62 sudo apt-get install php-xml
63 sudo apt-get install php-gd
64 sudo apt-get install php-mysql
65 ls
66 sudo apt-get install php5-mysqlnd-ms
67 sudo service apache2 reload
68 ls
69 cd wordpress/
70 ls
71 cat wp-config-sample.php
72 cat wp-config-sample.php | more
73 #
74 ls
75 cd ..
76 ls
77 history > 1.txt
8 sudo apt-get install apache2
9 sudo apt-get install php
10 sudo apt-get install mysql-server
create database wp;
11 sudo apt-get install php7.0-mysql
12 sudo a2enmod rewrite
13 sudo /etc/init.d/apache2 restart
14 service apache2 restart
15 sudo apt-get install libapache2-mod-php
16 sudo service apache2 reload
17 cd /var/www/
18 ls
19 cd html/
20 ls
21 sudo wget http://wordpress.org/latest.tar.gz
22 sudo tar -xvzf latest.tar.gz
23 ls
24 ls -al
25 sudo chown -R www-data:$USER *
26 ls -al
27 mysql -uroot -p
28 ls
--------------------------------------------------------------------------------------
1 sudo apt-get update
2 sudo apt-get install apache2
3 sudo apt-get install php
4 sudo apt-get install mysql-server
5 mysql -uroot -p
create database aa;
quit
6 sudo apt-get install php7.0-mysql
7 sudo apt-get install libapache2-mod-php
8 sudo a2enmod rewrite
9 cd /var/www/html
10 sudo wget http://wordpress.org/latest.tar.gz
11 sudo tar -xvzf latest.tar.gz
12 sudo vi /etc/apache2/sites-available/000-default.conf
DocumentRoot /var/www/html/wordpress
13 sudo service apache2 restart
14 sudo service apache2 reload
15 sudo chown www-data:$USER /var
16 sudo chown www-data:$USER /var/www/
17 sudo chown www-data:$USER /var/www/html/
18 sudo chown -R www-data:$USER /var/www/html/wordpress/
19 sudo chmod 777 /var
20 sudo chmod 777 /var/www/
21 sudo chmod 777 /var/www/html/
22 sudo chmod 777 /var/www/html/wordpress/
23 sudo chmod -R 777 /var/www/html/wordpress/wp-content/
INSERT INTO mysql.user (host, user, authentication_string, ssl_cipher, x509_issuer, x509_subject) VALUES ('%', 'root', password('mysql'), '', '', '');
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 127.0.0.1 을
bind-address = 0.0.0.0 으로
sudo service mysql restart
sudo ufw allow 3306/tcp
sudo service ufw restart
netstat -ntlp
sudo apt-get install php7.0-zip
sudo apt-get install php-xml
sudo apt-get install php7.0-xml php7.0-xmlrpc
sudo vi /etc/php/7.0/apache2/php.ini
extension=zip.so
extension=dom.so
upload_max_filesize = 500M
max_execution_time = 180
max_input_vars = 1500
sudo service apache2 restart