Ubuntu server 10.10版インストールLNMP究極のインストールログ+エラー記録
テキストアドレスhttp://bolg.malu.me/?p=594
まず以下のファイルをインストールします.インストールは言うまでもありません.
fast-cgiのインストール:
nginxのプロファイルを変更するには、次の手順に従います.root@ubuntu:/# vim/etc/nginx/nginx.conf
次のVSFtpdの構成:1.ユーザーの追加:useradd–d/var/www/html face 2.Webサイトのディレクトリ権限の変更:chown–R face/var/www/html chmod 755/var/www/html #このステップは見たほうがいいです.例えば、私が777に変更したとき、かえってアップロードできません.3.vim/etc/vsftpd.conf local_umask=022 #この行はphpmyadminの問題の要約を注釈します:mcrypt(外部チェーン、英語)拡張子をロードできません.PHP構成を確認してください.問題解決1.apt-get install php 5-mcryptのインストール2.phpプロファイルvim/etc/php 5/cgi/php.iniを編集してmcryptを見つけ、下に赤い行を追加します.
フレーズパスワードの設定.問題解決プロファイルには、フレーズパスワード$cfg['blowfish_secret']='malu';phpmyadmin/libraries/config.default.phpの$cfg['blowfish_secret']=';に改心 $cfg['blowfish_secret'] = 'malu'; 注意:maluは任意の文字です.リンクテーブルの追加機能はまだアクティブになっていません.原因を特定するには、ここをクリックしてください.問題解決1.phpMyAdminのインポート機能を使用してscriptsフォルダのcreate_をインポートtables.sqlファイル.2.config.inc.phpファイルを変更し、以下を追加します.
3.config.inc.phpファイルはphpmyadminのルートディレクトリの下に置かれ、$cfg['blowfish_secret']='malu'; /*この行には、コンフィギュレーション・ファイルで定義された制御ユーザー接続の使用に失敗したフレーズ・パスワード*/が追加されていることを覚えています.config.inc.phpファイルを変更し、赤い行を見てユーザー名とパスワードを書きます.
完成しました.暗くなりました.図をあげます.
2010年11月27日http://bolg.malu.me/?p=594転載は出典を明記してください
まず以下のファイルをインストールします.インストールは言うまでもありません.
apt-get install mysql
apt-get install php5-mysql
apt-get install nginx
apt-get install php5-cgi
apt-get install spawn-fcgi
apt-get install vsftpd
fast-cgiのインストール:
root@ubuntu:/var/www/nginx-default# /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 15 -u nginx -g nginx -f /usr/bin/php-cgi
spawn-fcgi: child spawned successfully: PID: 3042
root@ubuntu:/var/www/nginx-default# netstat -an|grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
nginxのプロファイルを変更するには、次の手順に従います.root@ubuntu:/# vim/etc/nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
#----------------------------------------------------------------------
# Events Module
#
# http://wiki.nginx.org/NginxHttpEventsModule
#
#----------------------------------------------------------------------
events {
worker_connections 1024;
}
#----------------------------------------------------------------------
# HTTP Core Module
#
# http://wiki.nginx.org/NginxHttpCoreModule
#
#----------------------------------------------------------------------
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;
#
# The default server
#
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /var/www/html;
index index.html index.htm index.php;
}
error_page 404 /404.html;
location = /404.html {
root /var/www/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
}
次のVSFtpdの構成:1.ユーザーの追加:useradd–d/var/www/html face 2.Webサイトのディレクトリ権限の変更:chown–R face/var/www/html chmod 755/var/www/html #このステップは見たほうがいいです.例えば、私が777に変更したとき、かえってアップロードできません.3.vim/etc/vsftpd.conf local_umask=022 #この行はphpmyadminの問題の要約を注釈します:mcrypt(外部チェーン、英語)拡張子をロードできません.PHP構成を確認してください.問題解決1.apt-get install php 5-mcryptのインストール2.phpプロファイルvim/etc/php 5/cgi/php.iniを編集してmcryptを見つけ、下に赤い行を追加します.
[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open
; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=
mcrypt.algorithms_dir=/etc/bash_completion.d/mcrypt 3. fast-cgi:
root@ubuntu:/# killall -9 php-cgi
root@ubuntu:/# /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 20 -u nginx -g nginx -f /usr/bin/php5-cgi
フレーズパスワードの設定.問題解決プロファイルには、フレーズパスワード$cfg['blowfish_secret']='malu';phpmyadmin/libraries/config.default.phpの$cfg['blowfish_secret']=';に改心 $cfg['blowfish_secret'] = 'malu'; 注意:maluは任意の文字です.リンクテーブルの追加機能はまだアクティブになっていません.原因を特定するには、ここをクリックしてください.問題解決1.phpMyAdminのインポート機能を使用してscriptsフォルダのcreate_をインポートtables.sqlファイル.2.config.inc.phpファイルを変更し、以下を追加します.
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'malu';
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
3.config.inc.phpファイルはphpmyadminのルートディレクトリの下に置かれ、$cfg['blowfish_secret']='malu'; /*この行には、コンフィギュレーション・ファイルで定義された制御ユーザー接続の使用に失敗したフレーズ・パスワード*/が追加されていることを覚えています.config.inc.phpファイルを変更し、赤い行を見てユーザー名とパスワードを書きます.
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root'; $cfg['Servers'][$i]['controlpass'] = 'malu'; /* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
完成しました.暗くなりました.図をあげます.
2010年11月27日http://bolg.malu.me/?p=594転載は出典を明記してください