1 sudo apt-get update
2 sudo apt-get install lamp-server
3 sudo apt-get install lamp-server^ php5-gd libssh2-php
4 sudo mysql -u root -p // type your password and check the mysql connection
5 wget http://wordpress.org/latest.tar.gz //download word press via web
6 ll
7 cd /
8 ll
9 cd /
10 ll
11 cd home/
12 ll
13 cd word/
14 ll
15 tar xzvf latest.tar.gz
16 ll
17 ls
18 cd wordpress/
19 ll
20 cd ..
21 cd wordpress/
22 ll
23 cp wp-config-sample.php wp-config.php
24 nano wp-config.php
25 sudo rsync -avP ~/wordpress/ /var/www/
26 cd /var/www/
27 ll
28 cp index.html /opt/index.html
29 cp index.html /opt
30 su cp index.html /opt
31 su cp index.html /opt/index.html
32 su rm index.html
33 ll
34 sudo rm index.html
35 ll
36 sudo chown -R word:www-data *
37 mkdir /var/www/wp-content/uploads
38 sudo chown -R :www-data /var/www/wp-content/uploads
39 ll
40 cd wp-content/
41 ll
42 ifconfig
43 cd ..
44 ll
45 cd /etc/apache2/sites-available/
46 ll
47 ls
48 nano default
49 cp default default.backup
50 ll
51 sudo default default.backup
52 ll
53 ls
54 sudo cp default default.backup
55 ll
56 nano default
57 nano /var/www/index.php
58 cd /var/www/
59 ll
60 cat wp-blog-header.php
61 ll
62 cat wp-login.php
63 clear
No comments:
Post a Comment