2013年9月22日日曜日

UbuntuにPHPをインストールする。

UbuntuにPHPをインストールする。コマンドはこれ。

sudo apt-get install php5


出てきたコンソールのログをそのまま表示するとこんな感じ。

ubuntu@ubuntu-armhf:~$ sudo apt-get install php5 
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  freepats gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad libass4 libavcodec53 libavformat53 libavutil51 libboost-python1.49.0 libboost-system1.49.0
  libcdaudio1 libdc1394-22 libdca0 libdirac-encoder0 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0 libfaad2 libfftw3-3 libfftw3-double3 libflite1
  libgme0 libgsm1 libgstreamer-plugins-bad0.10-0 libjavascriptcoregtk-1.0-0 libkate1 libmhash2 libmimic0 libmms0 libmodplug1 libmpcdec6 libofa0
  libopenal-data libopenal1 libopus0 libpostproc52 libraptor2-0 librasqal3 librdf0 libschroedinger-1.0-0 libslv2-9 libsoundtouch0 libspandsp2 libssl-dev
  libssl-doc libswscale2 libtorrent-rasterbar7 libts-0.0-0 libva1 libvo-aacenc0 libvo-amrwbenc0 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common
  libwildmidi-config libwildmidi1 libxvidcore4 libyajl2 libzbar0 libzvbi-common libzvbi0 python-gst0.10 python-libtorrent python-mutagen python-pysqlite2
  python-support python-webkit tsconf
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
  php5-cli php5-common
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom ufw php-pear
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap php5
  php5-cli php5-common
0 upgraded, 12 newly installed, 0 to remove and 51 not upgraded.
Need to get 9930 kB of archives.
After this operation, 23.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main php5-common armhf 5.4.9-4ubuntu2.3 [1923 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ raring/main libapr1 armhf 1.4.6-3ubuntu1 [74.7 kB]                                                             
Get:3 http://ports.ubuntu.com/ubuntu-ports/ raring/main libaprutil1 armhf 1.4.1-3 [67.2 kB]                                                                
Get:4 http://ports.ubuntu.com/ubuntu-ports/ raring/main libaprutil1-dbd-sqlite3 armhf 1.4.1-3 [9918 B]                                                     
Get:5 http://ports.ubuntu.com/ubuntu-ports/ raring/main libaprutil1-ldap armhf 1.4.1-3 [8944 B]                                                            
Get:6 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main apache2.2-bin armhf 2.2.22-6ubuntu5.1 [2802 kB]                                            
Get:7 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main apache2-utils armhf 2.2.22-6ubuntu5.1 [91.5 kB]                                            
Get:8 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main apache2.2-common armhf 2.2.22-6ubuntu5.1 [226 kB]                                          
Get:9 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main apache2-mpm-prefork armhf 2.2.22-6ubuntu5.1 [2362 B]                                       
Get:10 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main libapache2-mod-php5 armhf 5.4.9-4ubuntu2.3 [2366 kB]                                      
Get:11 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main php5 all 5.4.9-4ubuntu2.3 [1066 B]                                                        
Get:12 http://ports.ubuntu.com/ubuntu-ports/ raring-updates/main php5-cli armhf 5.4.9-4ubuntu2.3 [2356 kB]                                                 
Fetched 9930 kB in 20s (493 kB/s)                                                                                                                          
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "ja_JP.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package php5-common.
(Reading database ... 126468 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.4.9-4ubuntu2.3_armhf.deb) ...
Selecting previously unselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.6-3ubuntu1_armhf.deb) ...
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.4.1-3_armhf.deb) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.4.1-3_armhf.deb) ...
Selecting previously unselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.4.1-3_armhf.deb) ...
Selecting previously unselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-6ubuntu5.1_armhf.deb) ...
Selecting previously unselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.22-6ubuntu5.1_armhf.deb) ...
Selecting previously unselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-6ubuntu5.1_armhf.deb) ...
Selecting previously unselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-6ubuntu5.1_armhf.deb) ...
Selecting previously unselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.4.9-4ubuntu2.3_armhf.deb) ...
Selecting previously unselected package php5.
Unpacking php5 (from .../php5_5.4.9-4ubuntu2.3_all.deb) ...
Selecting previously unselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.4.9-4ubuntu2.3_armhf.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for ureadahead ...
Setting up php5-common (5.4.9-4ubuntu2.3) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/mods-available/pdo.ini with new version
Setting up libapr1 (1.4.6-3ubuntu1) ...
Setting up libaprutil1 (1.4.1-3) ...
Setting up libaprutil1-dbd-sqlite3 (1.4.1-3) ...
Setting up libaprutil1-ldap (1.4.1-3) ...
Setting up apache2.2-bin (2.2.22-6ubuntu5.1) ...
Setting up apache2-utils (2.2.22-6ubuntu5.1) ...
Setting up apache2.2-common (2.2.22-6ubuntu5.1) ...
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 php5-cli (5.4.9-4ubuntu2.3) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

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
Processing triggers for ureadahead ...
Setting up apache2-mpm-prefork (2.2.22-6ubuntu5.1) ...
 * 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 libapache2-mod-php5 (5.4.9-4ubuntu2.3) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

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 php5 (5.4.9-4ubuntu2.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu@ubuntu-armhf:~$ 

0 件のコメント:

コメントを投稿