networkstatic

Wordpress Installation http://networkstatic.net

Oct 24th, 2012
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.57 KB | None | 0 0
  1. =======================================================================================
  2. View Installation Guide at:
  3. http://networkstatic.net/install-wordpress-on-ubuntu-and-migrate-an-existing-site/
  4. =======================================================================================
  5. ~$ apt-get install wordpress libapache2-mod-php5 php5-mysql mysql-server apache2 php5
  6. E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
  7. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  8. brent@PreciseVT:~$ su
  9. Password:
  10. root@PreciseVT:/home/brent# apt-get install wordpress libapache2-mod-php5 php5-mysql mysql-server apache2 php5
  11. Reading package lists... Done
  12. Building dependency tree      
  13. Reading state information... Done
  14. The following extra packages will be installed:
  15.   apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  16.   javascript-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  17.   libaprutil1-ldap libdbd-mysql-perl libdbi-perl libhtml-template-perl
  18.   libjs-cropper libjs-prototype libjs-scriptaculous libmysqlclient18
  19.   libnet-daemon-perl libphp-phpmailer libphp-simplepie libphp-snoopy
  20.   libplrpc-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
  21.   mysql-server-5.5 mysql-server-core-5.5 php5-cli php5-common php5-curl
  22.   php5-gd php5-intl tinymce wordpress-l10n wwwconfig-common
  23. Suggested packages:
  24.   apache2-doc apache2-suexec apache2-suexec-custom php-pear
  25.   libipc-sharedcache-perl mail-transport-agent curl libterm-readkey-perl
  26.   tinyca mailx php5-suhosin mysql-client postgresql-client
  27. The following NEW packages will be installed:
  28.   apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  29.   javascript-common libapache2-mod-php5 libapr1 libaprutil1
  30.   libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbd-mysql-perl libdbi-perl
  31.   libhtml-template-perl libjs-cropper libjs-prototype libjs-scriptaculous
  32.   libmysqlclient18 libnet-daemon-perl libphp-phpmailer libphp-simplepie
  33.   libphp-snoopy libplrpc-perl mysql-client-5.5 mysql-client-core-5.5
  34.   mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php5
  35.   php5-cli php5-common php5-curl php5-gd php5-intl php5-mysql tinymce
  36.   wordpress wordpress-l10n wwwconfig-common
  37. 0 upgraded, 40 newly installed, 0 to remove and 125 not upgraded.
  38. Need to get 46.8 MB of archives.
  39. After this operation, 158 MB of additional disk space will be used.
  40. Do you want to continue [Y/n]? y
  41. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common all 5.5.24-0ubuntu0.12.04.1 [13.5 kB]
  42. Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.24-0ubuntu0.12.04.1 [946 kB]
  43. Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]
  44. Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]
  45. Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]
  46. Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
  47. Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-core-5.5 amd64 5.5.24-0ubuntu0.12.04.1 [1,930 kB]
  48. Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.24-0ubuntu0.12.04.1 [8,304 kB]
  49. Get:9 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-core-5.5 amd64 5.5.24-0ubuntu0.12.04.1 [6,040 kB]
  50. Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-5.5 amd64 5.5.24-0ubuntu0.12.04.1 [8,821 kB]
  51. Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main libapr1 amd64 1.4.6-1 [89.6 kB]
  52. Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB]
  53. Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB]
  54. Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap amd64 1.3.12+dfsg-3 [8,044 B]
  55. Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2.2-bin amd64 2.2.22-1ubuntu1 [1,337 kB]
  56. Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2-utils amd64 2.2.22-1ubuntu1 [91.0 kB]
  57. Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2.2-common amd64 2.2.22-1ubuntu1 [228 kB]
  58. Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2-mpm-prefork amd64 2.2.22-1ubuntu1 [2,402 B]
  59. Get:19 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2 amd64 2.2.22-1ubuntu1 [1,484 B]
  60. Get:20 http://us.archive.ubuntu.com/ubuntu/ precise/universe wwwconfig-common all 0.2.2 [18.0 kB]
  61. Get:21 http://us.archive.ubuntu.com/ubuntu/ precise/universe javascript-common all 8 [4,208 B]
  62. Get:22 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.4 [429 kB]
  63. Get:23 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapache2-mod-php5 amd64 5.3.10-1ubuntu3.4 [3,135 kB]
  64. Get:24 http://us.archive.ubuntu.com/ubuntu/ precise/main libhtml-template-perl all 2.10-1 [65.0 kB]
  65. Get:25 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-prototype all 1.7.0-2 [40.9 kB]
  66. Get:26 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-scriptaculous all 1.9.0-2 [107 kB]
  67. Get:27 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-cropper all 1.2.1-2 [136 kB]
  68. Get:28 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5 all 5.3.10-1ubuntu3.4 [1,074 B]
  69. Get:29 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-cli amd64 5.3.10-1ubuntu3.4 [3,050 kB]
  70. Get:30 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-phpmailer all 5.1-1 [77.0 kB]
  71. Get:31 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe php5-intl amd64 5.3.10-1ubuntu3.4 [60.6 kB]
  72. Get:32 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-curl amd64 5.3.10-1ubuntu3.4 [28.0 kB]
  73. Get:33 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-simplepie all 1.2-3 [71.4 kB]
  74. Get:34 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-snoopy all 1.2.4-2 [17.6 kB]
  75. Get:35 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server all 5.5.24-0ubuntu0.12.04.1 [11.7 kB]
  76. Get:36 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.4 [38.8 kB]
  77. Get:37 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-mysql amd64 5.3.10-1ubuntu3.4 [77.1 kB]
  78. Get:38 http://us.archive.ubuntu.com/ubuntu/ precise/universe tinymce all 3.4.3.2+dfsg0-1 [471 kB]
  79. Get:39 http://us.archive.ubuntu.com/ubuntu/ precise/universe wordpress all 3.3.1+dfsg-1 [3,538 kB]
  80. Get:40 http://us.archive.ubuntu.com/ubuntu/ precise/universe wordpress-l10n all 3.3.1+dfsg-1 [6,522 kB]
  81. Fetched 46.8 MB in 1min 2s (751 kB/s)                                          
  82. Extracting templates from packages: 100%
  83. Preconfiguring packages ...
  84. Selecting previously unselected package mysql-common.
  85. (Reading database ... 137700 files and directories currently installed.)
  86. Unpacking mysql-common (from .../mysql-common_5.5.24-0ubuntu0.12.04.1_all.deb) ...
  87. Selecting previously unselected package libmysqlclient18.
  88. Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
  89. Selecting previously unselected package libnet-daemon-perl.
  90. Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
  91. Selecting previously unselected package libplrpc-perl.
  92. Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
  93. Selecting previously unselected package libdbi-perl.
  94. Unpacking libdbi-perl (from .../libdbi-perl_1.616-1build2_amd64.deb) ...
  95. Selecting previously unselected package libdbd-mysql-perl.
  96. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...
  97. Selecting previously unselected package mysql-client-core-5.5.
  98. Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
  99. Selecting previously unselected package mysql-client-5.5.
  100. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
  101. Selecting previously unselected package mysql-server-core-5.5.
  102. Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
  103. Processing triggers for man-db ...
  104. Setting up mysql-common (5.5.24-0ubuntu0.12.04.1) ...
  105. Selecting previously unselected package mysql-server-5.5.
  106. (Reading database ... 138066 files and directories currently installed.)
  107. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
  108. Selecting previously unselected package libapr1.
  109. Unpacking libapr1 (from .../libapr1_1.4.6-1_amd64.deb) ...
  110. Selecting previously unselected package libaprutil1.
  111. Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_amd64.deb) ...
  112. Selecting previously unselected package libaprutil1-dbd-sqlite3.
  113. Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_amd64.deb) ...
  114. Selecting previously unselected package libaprutil1-ldap.
  115. Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) ...
  116. Selecting previously unselected package apache2.2-bin.
  117. Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1_amd64.deb) ...
  118. Selecting previously unselected package apache2-utils.
  119. Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1_amd64.deb) ...
  120. Selecting previously unselected package apache2.2-common.
  121. Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1_amd64.deb) ...
  122. Selecting previously unselected package apache2-mpm-prefork.
  123. Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-1ubuntu1_amd64.deb) ...
  124. Selecting previously unselected package apache2.
  125. Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1_amd64.deb) ...
  126. Selecting previously unselected package wwwconfig-common.
  127. Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.2_all.deb) ...
  128. Selecting previously unselected package javascript-common.
  129. Unpacking javascript-common (from .../javascript-common_8_all.deb) ...
  130. Selecting previously unselected package php5-common.
  131. Unpacking php5-common (from .../php5-common_5.3.10-1ubuntu3.4_amd64.deb) ...
  132. Selecting previously unselected package libapache2-mod-php5.
  133. Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.10-1ubuntu3.4_amd64.deb) ...
  134. Selecting previously unselected package libhtml-template-perl.
  135. Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
  136. Selecting previously unselected package libjs-prototype.
  137. Unpacking libjs-prototype (from .../libjs-prototype_1.7.0-2_all.deb) ...
  138. Selecting previously unselected package libjs-scriptaculous.
  139. Unpacking libjs-scriptaculous (from .../libjs-scriptaculous_1.9.0-2_all.deb) ...
  140. Selecting previously unselected package libjs-cropper.
  141. Unpacking libjs-cropper (from .../libjs-cropper_1.2.1-2_all.deb) ...
  142. Selecting previously unselected package php5.
  143. Unpacking php5 (from .../php5_5.3.10-1ubuntu3.4_all.deb) ...
  144. Selecting previously unselected package php5-cli.
  145. Unpacking php5-cli (from .../php5-cli_5.3.10-1ubuntu3.4_amd64.deb) ...
  146. Selecting previously unselected package libphp-phpmailer.
  147. Unpacking libphp-phpmailer (from .../libphp-phpmailer_5.1-1_all.deb) ...
  148. Selecting previously unselected package php5-intl.
  149. Unpacking php5-intl (from .../php5-intl_5.3.10-1ubuntu3.4_amd64.deb) ...
  150. Selecting previously unselected package php5-curl.
  151. Unpacking php5-curl (from .../php5-curl_5.3.10-1ubuntu3.4_amd64.deb) ...
  152. Selecting previously unselected package libphp-simplepie.
  153. Unpacking libphp-simplepie (from .../libphp-simplepie_1.2-3_all.deb) ...
  154. Selecting previously unselected package libphp-snoopy.
  155. Unpacking libphp-snoopy (from .../libphp-snoopy_1.2.4-2_all.deb) ...
  156. Selecting previously unselected package mysql-server.
  157. Unpacking mysql-server (from .../mysql-server_5.5.24-0ubuntu0.12.04.1_all.deb) ...
  158. Selecting previously unselected package php5-gd.
  159. Unpacking php5-gd (from .../php5-gd_5.3.10-1ubuntu3.4_amd64.deb) ...
  160. Selecting previously unselected package php5-mysql.
  161. Unpacking php5-mysql (from .../php5-mysql_5.3.10-1ubuntu3.4_amd64.deb) ...
  162. Selecting previously unselected package tinymce.
  163. Unpacking tinymce (from .../tinymce_3.4.3.2+dfsg0-1_all.deb) ...
  164. Selecting previously unselected package wordpress.
  165. Unpacking wordpress (from .../wordpress_3.3.1+dfsg-1_all.deb) ...
  166. Selecting previously unselected package wordpress-l10n.
  167. Unpacking wordpress-l10n (from .../wordpress-l10n_3.3.1+dfsg-1_all.deb) ...
  168. Processing triggers for man-db ...
  169. Processing triggers for ureadahead ...
  170. ureadahead will be reprofiled on next reboot
  171. Processing triggers for ufw ...
  172. Setting up libmysqlclient18 (5.5.24-0ubuntu0.12.04.1) ...
  173. Setting up libnet-daemon-perl (0.48-1) ...
  174. Setting up libplrpc-perl (0.2020-2) ...
  175. Setting up libdbi-perl (1.616-1build2) ...
  176. Setting up libdbd-mysql-perl (4.020-1build2) ...
  177. Setting up mysql-client-core-5.5 (5.5.24-0ubuntu0.12.04.1) ...
  178. Setting up mysql-client-5.5 (5.5.24-0ubuntu0.12.04.1) ...
  179. Setting up mysql-server-core-5.5 (5.5.24-0ubuntu0.12.04.1) ...
  180. Setting up mysql-server-5.5 (5.5.24-0ubuntu0.12.04.1) ...
  181. 121024  2:32:59 [Note] Plugin 'FEDERATED' is disabled.
  182. 121024  2:32:59 InnoDB: The InnoDB memory heap is disabled
  183. 121024  2:32:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  184. 121024  2:32:59 InnoDB: Compressed tables use zlib 1.2.3.4
  185. 121024  2:32:59 InnoDB: Initializing buffer pool, size = 128.0M
  186. 121024  2:32:59 InnoDB: Completed initialization of buffer pool
  187. 121024  2:32:59 InnoDB: highest supported file format is Barracuda.
  188. 121024  2:32:59  InnoDB: Waiting for the background threads to start
  189. 121024  2:33:00 InnoDB: 1.1.8 started; log sequence number 1595675
  190. 121024  2:33:00  InnoDB: Starting shutdown...
  191. 121024  2:33:00  InnoDB: Shutdown completed; log sequence number 1595675
  192. mysql start/running, process 6914
  193. Setting up libapr1 (1.4.6-1) ...
  194. Setting up libaprutil1 (1.3.12+dfsg-3) ...
  195. Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ...
  196. Setting up libaprutil1-ldap (1.3.12+dfsg-3) ...
  197. Setting up apache2.2-bin (2.2.22-1ubuntu1) ...
  198. Setting up apache2-utils (2.2.22-1ubuntu1) ...
  199. Setting up apache2.2-common (2.2.22-1ubuntu1) ...
  200. Enabling site default.
  201. Enabling module alias.
  202. Enabling module autoindex.
  203. Enabling module dir.
  204. Enabling module env.
  205. Enabling module mime.
  206. Enabling module negotiation.
  207. Enabling module setenvif.
  208. Enabling module status.
  209. Enabling module auth_basic.
  210. Enabling module deflate.
  211. Enabling module authz_default.
  212. Enabling module authz_user.
  213. Enabling module authz_groupfile.
  214. Enabling module authn_file.
  215. Enabling module authz_host.
  216. Enabling module reqtimeout.
  217. Setting up apache2-mpm-prefork (2.2.22-1ubuntu1) ...
  218.  * Starting web server apache2                                                  apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  219.                                                                         [ OK ]
  220. Setting up apache2 (2.2.22-1ubuntu1) ...
  221. Setting up wwwconfig-common (0.2.2) ...
  222. Setting up javascript-common (8) ...
  223. Setting up php5-common (5.3.10-1ubuntu3.4) ...
  224. Setting up libapache2-mod-php5 (5.3.10-1ubuntu3.4) ...
  225.  
  226. Creating config file /etc/php5/apache2/php.ini with new version
  227. * Restarting web server apache2                                                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  228.  ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  229.                                                                         [ OK ]
  230. Setting up libhtml-template-perl (2.10-1) ...
  231. Setting up libjs-prototype (1.7.0-2) ...
  232. Setting up libjs-scriptaculous (1.9.0-2) ...
  233. Setting up libjs-cropper (1.2.1-2) ...
  234. Setting up php5 (5.3.10-1ubuntu3.4) ...
  235. Setting up php5-cli (5.3.10-1ubuntu3.4) ...
  236.  
  237. Creating config file /etc/php5/cli/php.ini with new version
  238. update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
  239. Setting up libphp-phpmailer (5.1-1) ...
  240. Setting up php5-intl (5.3.10-1ubuntu3.4) ...
  241. Setting up php5-curl (5.3.10-1ubuntu3.4) ...
  242. Setting up libphp-simplepie (1.2-3) ...
  243. Setting up libphp-snoopy (1.2.4-2) ...
  244. Setting up mysql-server (5.5.24-0ubuntu0.12.04.1) ...
  245. Setting up php5-gd (5.3.10-1ubuntu3.4) ...
  246. Setting up php5-mysql (5.3.10-1ubuntu3.4) ...
  247. Setting up tinymce (3.4.3.2+dfsg0-1) ...
  248. Setting up wordpress (3.3.1+dfsg-1) ...
  249. Setting up wordpress-l10n (3.3.1+dfsg-1) ...
  250. Processing triggers for libc-bin ...
  251. ldconfig deferred processing now taking place
  252. root@PreciseVT:/home/brent# ln -s /usr/share/wordpress /var/www/wordpress
  253. root@PreciseVT:/home/brent# ifconfig eth0
  254. eth0      Link encap:Ethernet  HWaddr 00:0c:29:c2:29:72  
  255.          inet addr:192.168.1.145  Bcast:192.168.1.255  Mask:255.255.255.0
  256.          inet6 addr: fe80::20c:29ff:fec2:2972/64 Scope:Link
  257.          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  258.          RX packets:32972 errors:0 dropped:0 overruns:0 frame:0
  259.          TX packets:17357 errors:0 dropped:0 overruns:0 carrier:0
  260.          collisions:0 txqueuelen:1000
  261.          RX bytes:49080317 (49.0 MB)  TX bytes:1187216 (1.1 MB)
  262.  
  263. root@PreciseVT:/home/brent# bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress 192.168.1.145
  264. PING 192.168.1.145 (192.168.1.145) 56(84) bytes of data.
  265. 64 bytes from 192.168.1.145: icmp_req=1 ttl=64 time=0.028 ms
  266.  
  267. --- 192.168.1.145 ping statistics ---
  268. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  269. rtt min/avg/max/mdev = 0.028/0.028/0.028/0.000 ms
  270. /etc/wordpress/config-192.168.1.145.php written
  271. Trying to create upload directory: /srv/www/wp-uploads/192.168.1.145
  272. Setting up permissions
  273. Goto http://192.168.1.145 to setup Wordpress
  274. root@PreciseVT:/home/brent# chown -R www-data /usr/share/wordpress
Add Comment
Please, Sign In to add comment