Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =======================================================================================
- View Installation Guide at:
- http://networkstatic.net/install-wordpress-on-ubuntu-and-migrate-an-existing-site/
- =======================================================================================
- ~$ apt-get install wordpress libapache2-mod-php5 php5-mysql mysql-server apache2 php5
- E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
- E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
- brent@PreciseVT:~$ su
- Password:
- root@PreciseVT:/home/brent# apt-get install wordpress libapache2-mod-php5 php5-mysql mysql-server apache2 php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
- javascript-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3
- libaprutil1-ldap libdbd-mysql-perl libdbi-perl libhtml-template-perl
- libjs-cropper libjs-prototype libjs-scriptaculous libmysqlclient18
- libnet-daemon-perl libphp-phpmailer libphp-simplepie libphp-snoopy
- libplrpc-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
- mysql-server-5.5 mysql-server-core-5.5 php5-cli php5-common php5-curl
- php5-gd php5-intl tinymce wordpress-l10n wwwconfig-common
- Suggested packages:
- apache2-doc apache2-suexec apache2-suexec-custom php-pear
- libipc-sharedcache-perl mail-transport-agent curl libterm-readkey-perl
- tinyca mailx php5-suhosin mysql-client postgresql-client
- The following NEW packages will be installed:
- apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
- javascript-common libapache2-mod-php5 libapr1 libaprutil1
- libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbd-mysql-perl libdbi-perl
- libhtml-template-perl libjs-cropper libjs-prototype libjs-scriptaculous
- libmysqlclient18 libnet-daemon-perl libphp-phpmailer libphp-simplepie
- libphp-snoopy libplrpc-perl mysql-client-5.5 mysql-client-core-5.5
- mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php5
- php5-cli php5-common php5-curl php5-gd php5-intl php5-mysql tinymce
- wordpress wordpress-l10n wwwconfig-common
- 0 upgraded, 40 newly installed, 0 to remove and 125 not upgraded.
- Need to get 46.8 MB of archives.
- After this operation, 158 MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common all 5.5.24-0ubuntu0.12.04.1 [13.5 kB]
- Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.24-0ubuntu0.12.04.1 [946 kB]
- Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]
- Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]
- Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]
- Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
- 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]
- 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]
- 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]
- 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]
- Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main libapr1 amd64 1.4.6-1 [89.6 kB]
- Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB]
- Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB]
- Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap amd64 1.3.12+dfsg-3 [8,044 B]
- Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2.2-bin amd64 2.2.22-1ubuntu1 [1,337 kB]
- Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2-utils amd64 2.2.22-1ubuntu1 [91.0 kB]
- Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2.2-common amd64 2.2.22-1ubuntu1 [228 kB]
- Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2-mpm-prefork amd64 2.2.22-1ubuntu1 [2,402 B]
- Get:19 http://us.archive.ubuntu.com/ubuntu/ precise/main apache2 amd64 2.2.22-1ubuntu1 [1,484 B]
- Get:20 http://us.archive.ubuntu.com/ubuntu/ precise/universe wwwconfig-common all 0.2.2 [18.0 kB]
- Get:21 http://us.archive.ubuntu.com/ubuntu/ precise/universe javascript-common all 8 [4,208 B]
- Get:22 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.4 [429 kB]
- Get:23 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapache2-mod-php5 amd64 5.3.10-1ubuntu3.4 [3,135 kB]
- Get:24 http://us.archive.ubuntu.com/ubuntu/ precise/main libhtml-template-perl all 2.10-1 [65.0 kB]
- Get:25 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-prototype all 1.7.0-2 [40.9 kB]
- Get:26 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-scriptaculous all 1.9.0-2 [107 kB]
- Get:27 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-cropper all 1.2.1-2 [136 kB]
- Get:28 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5 all 5.3.10-1ubuntu3.4 [1,074 B]
- Get:29 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-cli amd64 5.3.10-1ubuntu3.4 [3,050 kB]
- Get:30 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-phpmailer all 5.1-1 [77.0 kB]
- Get:31 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe php5-intl amd64 5.3.10-1ubuntu3.4 [60.6 kB]
- Get:32 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-curl amd64 5.3.10-1ubuntu3.4 [28.0 kB]
- Get:33 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-simplepie all 1.2-3 [71.4 kB]
- Get:34 http://us.archive.ubuntu.com/ubuntu/ precise/universe libphp-snoopy all 1.2.4-2 [17.6 kB]
- Get:35 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server all 5.5.24-0ubuntu0.12.04.1 [11.7 kB]
- Get:36 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.4 [38.8 kB]
- Get:37 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-mysql amd64 5.3.10-1ubuntu3.4 [77.1 kB]
- Get:38 http://us.archive.ubuntu.com/ubuntu/ precise/universe tinymce all 3.4.3.2+dfsg0-1 [471 kB]
- Get:39 http://us.archive.ubuntu.com/ubuntu/ precise/universe wordpress all 3.3.1+dfsg-1 [3,538 kB]
- Get:40 http://us.archive.ubuntu.com/ubuntu/ precise/universe wordpress-l10n all 3.3.1+dfsg-1 [6,522 kB]
- Fetched 46.8 MB in 1min 2s (751 kB/s)
- Extracting templates from packages: 100%
- Preconfiguring packages ...
- Selecting previously unselected package mysql-common.
- (Reading database ... 137700 files and directories currently installed.)
- Unpacking mysql-common (from .../mysql-common_5.5.24-0ubuntu0.12.04.1_all.deb) ...
- Selecting previously unselected package libmysqlclient18.
- Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
- Selecting previously unselected package libnet-daemon-perl.
- Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
- Selecting previously unselected package libplrpc-perl.
- Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
- Selecting previously unselected package libdbi-perl.
- Unpacking libdbi-perl (from .../libdbi-perl_1.616-1build2_amd64.deb) ...
- Selecting previously unselected package libdbd-mysql-perl.
- Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ...
- Selecting previously unselected package mysql-client-core-5.5.
- Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
- Selecting previously unselected package mysql-client-5.5.
- Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
- Selecting previously unselected package mysql-server-core-5.5.
- Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
- Processing triggers for man-db ...
- Setting up mysql-common (5.5.24-0ubuntu0.12.04.1) ...
- Selecting previously unselected package mysql-server-5.5.
- (Reading database ... 138066 files and directories currently installed.)
- Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.24-0ubuntu0.12.04.1_amd64.deb) ...
- Selecting previously unselected package libapr1.
- Unpacking libapr1 (from .../libapr1_1.4.6-1_amd64.deb) ...
- Selecting previously unselected package libaprutil1.
- Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_amd64.deb) ...
- Selecting previously unselected package libaprutil1-dbd-sqlite3.
- Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_amd64.deb) ...
- Selecting previously unselected package libaprutil1-ldap.
- Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) ...
- Selecting previously unselected package apache2.2-bin.
- Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1_amd64.deb) ...
- Selecting previously unselected package apache2-utils.
- Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1_amd64.deb) ...
- Selecting previously unselected package apache2.2-common.
- Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1_amd64.deb) ...
- Selecting previously unselected package apache2-mpm-prefork.
- Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-1ubuntu1_amd64.deb) ...
- Selecting previously unselected package apache2.
- Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1_amd64.deb) ...
- Selecting previously unselected package wwwconfig-common.
- Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.2_all.deb) ...
- Selecting previously unselected package javascript-common.
- Unpacking javascript-common (from .../javascript-common_8_all.deb) ...
- Selecting previously unselected package php5-common.
- Unpacking php5-common (from .../php5-common_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package libapache2-mod-php5.
- Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package libhtml-template-perl.
- Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.10-1_all.deb) ...
- Selecting previously unselected package libjs-prototype.
- Unpacking libjs-prototype (from .../libjs-prototype_1.7.0-2_all.deb) ...
- Selecting previously unselected package libjs-scriptaculous.
- Unpacking libjs-scriptaculous (from .../libjs-scriptaculous_1.9.0-2_all.deb) ...
- Selecting previously unselected package libjs-cropper.
- Unpacking libjs-cropper (from .../libjs-cropper_1.2.1-2_all.deb) ...
- Selecting previously unselected package php5.
- Unpacking php5 (from .../php5_5.3.10-1ubuntu3.4_all.deb) ...
- Selecting previously unselected package php5-cli.
- Unpacking php5-cli (from .../php5-cli_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package libphp-phpmailer.
- Unpacking libphp-phpmailer (from .../libphp-phpmailer_5.1-1_all.deb) ...
- Selecting previously unselected package php5-intl.
- Unpacking php5-intl (from .../php5-intl_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package php5-curl.
- Unpacking php5-curl (from .../php5-curl_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package libphp-simplepie.
- Unpacking libphp-simplepie (from .../libphp-simplepie_1.2-3_all.deb) ...
- Selecting previously unselected package libphp-snoopy.
- Unpacking libphp-snoopy (from .../libphp-snoopy_1.2.4-2_all.deb) ...
- Selecting previously unselected package mysql-server.
- Unpacking mysql-server (from .../mysql-server_5.5.24-0ubuntu0.12.04.1_all.deb) ...
- Selecting previously unselected package php5-gd.
- Unpacking php5-gd (from .../php5-gd_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package php5-mysql.
- Unpacking php5-mysql (from .../php5-mysql_5.3.10-1ubuntu3.4_amd64.deb) ...
- Selecting previously unselected package tinymce.
- Unpacking tinymce (from .../tinymce_3.4.3.2+dfsg0-1_all.deb) ...
- Selecting previously unselected package wordpress.
- Unpacking wordpress (from .../wordpress_3.3.1+dfsg-1_all.deb) ...
- Selecting previously unselected package wordpress-l10n.
- Unpacking wordpress-l10n (from .../wordpress-l10n_3.3.1+dfsg-1_all.deb) ...
- Processing triggers for man-db ...
- Processing triggers for ureadahead ...
- ureadahead will be reprofiled on next reboot
- Processing triggers for ufw ...
- Setting up libmysqlclient18 (5.5.24-0ubuntu0.12.04.1) ...
- Setting up libnet-daemon-perl (0.48-1) ...
- Setting up libplrpc-perl (0.2020-2) ...
- Setting up libdbi-perl (1.616-1build2) ...
- Setting up libdbd-mysql-perl (4.020-1build2) ...
- Setting up mysql-client-core-5.5 (5.5.24-0ubuntu0.12.04.1) ...
- Setting up mysql-client-5.5 (5.5.24-0ubuntu0.12.04.1) ...
- Setting up mysql-server-core-5.5 (5.5.24-0ubuntu0.12.04.1) ...
- Setting up mysql-server-5.5 (5.5.24-0ubuntu0.12.04.1) ...
- 121024 2:32:59 [Note] Plugin 'FEDERATED' is disabled.
- 121024 2:32:59 InnoDB: The InnoDB memory heap is disabled
- 121024 2:32:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 121024 2:32:59 InnoDB: Compressed tables use zlib 1.2.3.4
- 121024 2:32:59 InnoDB: Initializing buffer pool, size = 128.0M
- 121024 2:32:59 InnoDB: Completed initialization of buffer pool
- 121024 2:32:59 InnoDB: highest supported file format is Barracuda.
- 121024 2:32:59 InnoDB: Waiting for the background threads to start
- 121024 2:33:00 InnoDB: 1.1.8 started; log sequence number 1595675
- 121024 2:33:00 InnoDB: Starting shutdown...
- 121024 2:33:00 InnoDB: Shutdown completed; log sequence number 1595675
- mysql start/running, process 6914
- Setting up libapr1 (1.4.6-1) ...
- Setting up libaprutil1 (1.3.12+dfsg-3) ...
- Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ...
- Setting up libaprutil1-ldap (1.3.12+dfsg-3) ...
- Setting up apache2.2-bin (2.2.22-1ubuntu1) ...
- Setting up apache2-utils (2.2.22-1ubuntu1) ...
- Setting up apache2.2-common (2.2.22-1ubuntu1) ...
- Enabling site default.
- Enabling module alias.
- Enabling module autoindex.
- Enabling module dir.
- Enabling module env.
- Enabling module mime.
- Enabling module negotiation.
- Enabling module setenvif.
- Enabling module status.
- Enabling module auth_basic.
- Enabling module deflate.
- Enabling module authz_default.
- Enabling module authz_user.
- Enabling module authz_groupfile.
- Enabling module authn_file.
- Enabling module authz_host.
- Enabling module reqtimeout.
- Setting up apache2-mpm-prefork (2.2.22-1ubuntu1) ...
- * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- [ OK ]
- Setting up apache2 (2.2.22-1ubuntu1) ...
- Setting up wwwconfig-common (0.2.2) ...
- Setting up javascript-common (8) ...
- Setting up php5-common (5.3.10-1ubuntu3.4) ...
- Setting up libapache2-mod-php5 (5.3.10-1ubuntu3.4) ...
- Creating config file /etc/php5/apache2/php.ini with new version
- * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- [ OK ]
- Setting up libhtml-template-perl (2.10-1) ...
- Setting up libjs-prototype (1.7.0-2) ...
- Setting up libjs-scriptaculous (1.9.0-2) ...
- Setting up libjs-cropper (1.2.1-2) ...
- Setting up php5 (5.3.10-1ubuntu3.4) ...
- Setting up php5-cli (5.3.10-1ubuntu3.4) ...
- Creating config file /etc/php5/cli/php.ini with new version
- update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
- Setting up libphp-phpmailer (5.1-1) ...
- Setting up php5-intl (5.3.10-1ubuntu3.4) ...
- Setting up php5-curl (5.3.10-1ubuntu3.4) ...
- Setting up libphp-simplepie (1.2-3) ...
- Setting up libphp-snoopy (1.2.4-2) ...
- Setting up mysql-server (5.5.24-0ubuntu0.12.04.1) ...
- Setting up php5-gd (5.3.10-1ubuntu3.4) ...
- Setting up php5-mysql (5.3.10-1ubuntu3.4) ...
- Setting up tinymce (3.4.3.2+dfsg0-1) ...
- Setting up wordpress (3.3.1+dfsg-1) ...
- Setting up wordpress-l10n (3.3.1+dfsg-1) ...
- Processing triggers for libc-bin ...
- ldconfig deferred processing now taking place
- root@PreciseVT:/home/brent# ln -s /usr/share/wordpress /var/www/wordpress
- root@PreciseVT:/home/brent# ifconfig eth0
- eth0 Link encap:Ethernet HWaddr 00:0c:29:c2:29:72
- inet addr:192.168.1.145 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::20c:29ff:fec2:2972/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:32972 errors:0 dropped:0 overruns:0 frame:0
- TX packets:17357 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:49080317 (49.0 MB) TX bytes:1187216 (1.1 MB)
- root@PreciseVT:/home/brent# bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress 192.168.1.145
- PING 192.168.1.145 (192.168.1.145) 56(84) bytes of data.
- 64 bytes from 192.168.1.145: icmp_req=1 ttl=64 time=0.028 ms
- --- 192.168.1.145 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.028/0.028/0.028/0.000 ms
- /etc/wordpress/config-192.168.1.145.php written
- Trying to create upload directory: /srv/www/wp-uploads/192.168.1.145
- Setting up permissions
- Goto http://192.168.1.145 to setup Wordpress
- root@PreciseVT:/home/brent# chown -R www-data /usr/share/wordpress
Add Comment
Please, Sign In to add comment