2 2 3 4 9 32

2011.4.9 英超第32轮 热刺3-2斯托克城 全场集锦
视频信息
发表于4个月前
北京时间4月9日22:00(英国当地时间15:00),2010/11赛季英格兰足球超级联赛...
标签:
播放:
评论:
收藏:
北京时间4月9日22:00(英国当地时间15:00),2010/11赛季英格兰足球超级联赛第32轮展开争夺,托特纳姆热刺主场3比2险胜斯托克城。
分类:
标签:
播放:
评论:
收藏:
顶/踩:
引用:
荣誉:
相关视频
播放:
播放:
播放:
播放:
播放:
播放:
播放:
播放:
播放:
分享给站外好友
视频地址:
把视频贴到Blog或BBS
flash地址:
html代码:
id="link3" type="text" value='
消息主题:
好友昵称:
推荐理由:
请填写推荐理由,至少八个字
验证码:
转贴到:
视频评论
你还可以输入
我也来评论
发表评论
更多帐号登录:
验证码:
看不清,
评论已提交,请等待审核通过。
评论加载中
节目制作经营许可证京字670号
京公网安备110000000017号
药品服务许可证(京)-经营-2010-0048
请使用者仔细阅读优酷
Copyright2011 优酷 youku.com 版权所有>> centos 5.3 httpd2.2.4 php5.2.9 mysql 5.1.32***
ChinaUnix博客  日期:
2009.06.06 03:04 (共有
条评论) 5. 使用 yum 程序***所需开发包(以下为标准的 RPM 包名称)
# yum i tall gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel li g-devel libtiff-devel freetype-devel pam-devel
# 这里我们将编译GD所必须的一些小软件比如li g,libtiff,freetype,libjpeg等先用RPM的方式一并***好,避免手动编译浪费时间,同时也能避免很多错误,这几个小软件的编译很麻烦。这几个小软件编译错误了,GD当然***不了,php5的编译当然也没戏了。所以我们抓大放小,对这些小牛鬼蛇神采取快速简洁的方式进行***。并且对服务器的性能也不能产生什么影响。
6. 源码编译***所需包 (Source)
(1) GD2
# cd /usr/local/src
# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
# tar xzvf gd-2.0.33.tar.gz
# cd gd-2.0.33
# ./configure --prefix=/usr/local/gd2 --mandir=/usr/share/man //./configure 配置。
# make //make 是用来编译的,它从 Makefile 中读取指令,然后编译。
# make i tall //make i tall 是用来***的,它也从 Makefile 中读取指令,***到指定的位置。
(2) Apache 日志截断程序
# cd /usr/local/src
# wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
# tar xzvf cronolog-1.6.2.tar.gz
# cd cronolog-1.6.2
# ./configure --prefix=/usr/local/cronolog
# make i tall
(3) libxml 库程序
# cd /usr/local/src
# wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.26.tar.gz
# tar zxvf libxml2-2.6.26.tar.gz
# cd libxml2-2.6.26
# ./configure --prefix=/usr/local/libxml2
# make i tall
7、编译mysql 5.0.33
我的mysql 用的是mysql-5.1.32.tar.gz
yum i tall ncurses-devel.i386
cd /usr/local/src
# wget http://mysql.o .eznetsols.org/Downloads/MySQL-5.0/mysql-5.0.33.tar.gz
# tar xzvf mysql-5.0.33.tar.gz
# cd mysql-5.0.33
修改mysql 客户端最大连接数, 默认的只有100,远远达不到我们的要求。
# vi sql/mysqld.cc
搜索找到下面一行:
{max_co ectio quot;, OPT_MAX_CONNECTIONS,
The number of simultaneous clients allowed., (gptr*) &am max_co ectio ,
(gptr*) &am max_co ectio , 0, GET_ULONG, REQUIRED_ARG, 100, 1, 16384, 0, 1,
将其中的100改为1500, 当然小点也可以,根据你的需要来,不建议改的太大。
{max_co ectio quot;, OPT_MAX_CONNECTIONS,
The number of simultaneous clients allowed., (gptr*) &am max_co ectio ,
(gptr*) &am max_co ectio , 0, GET_ULONG, REQUIRED_ARG, 1500, 1, 16384, 0, 1,
./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-Community-Server --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=latin1 --with-collation=latin1_swedish_ci --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-a embler
配置成功会提示:
MySQL has a Web site at [URL=http://www.mysql.com/]
http://www.mysql.com/[/COLOR][/URL] which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discu ion.
Remember to check the platform ecific part of the reference manual for
hints about i talling MySQL on your platform. Also have a look at the
files in the Docs directory.
Thank you for choosing MySQL!
// 注意 ,CHOST=i686-pc-linux-gnu CFLAGS=-O3 -m e2 -mmmx -mfpmath= e -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer CXXFLAGS=-O3 -m e2 -mmmx -mfpmath= e -funroll-loo -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer 这个环境参数只针对intel P4 芯片,如果你的CPU是AMD的,注意不能使用。请查看相应的编译优化参数。否则程序会无法编译,即使编译成功也无法运行,嘿嘿。
编译的时间可能会比较长,毕竟优化的比较厉害。
# make i tall
编译***完成后执行后续操作:
# useradd mysql //添加 mysql 用户
# cd /usr/local/mysql
# ./bin/mysql_i tall_db --user=mysql
# chown -R root:mysql . //设置权限,注意后面有一个 .
# chown -R mysql /var/lib/mysql //设置 mysql 目录权限
# chgrp -R mysql . //注意后面有一个 .
# cp share/mysql/my-medium.cnf /etc/my.cnf
# cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //开机自动启动 mysql。
# chmod 755 /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
mysql5.1.30 初次启动会出现Starting MySQL.Manager of pid-file quit without updating fi[FAILED]的报错,需要注释/etc/my.cnf里的skip-federated注释掉即#skip-federated就OK了!
# /etc/rc.d/init.d/mysqld start //启动 MySQL
///////////////////////////////////////////////////
今天在centos5.2 64位机器上***mysql-5.1.32-linux-x86_64-icc-glibc23.tar.gz,启动服务出现报错:
Starting MySQL.Manager of pid-file quit without updating file.[FAILED]
平时装MYSQL都还没有出过什么问题,于是马上认真检查了步骤,没有什么问题。只好网上求助了。得到以下方法:
1.注释掉 skip-federated,按此方法操作,无果。////////////////////////////用此种方法解决了Starting MySQL.Manager of pid-file quit without updating file.[FAILED]
2.关闭selinux,已经关闭了,所以排除。
查看mysql日志,发现错误:
/usr/local/mysql/bin/mysqld: error while loading shared libraries: li tdc++.so.5: ca ot open shared object file: No such file or directory
090320 00:59:22 mysqld_safe mysqld from pid file /var/log/mysql/mysql.pid ended
090320 01:17:29 mysqld_safe Starting mysqld daemon with databases from /mysql_data/
可以看出缺少库文件 li tdc++.so.5。
到官方下载:wget http://mirror.centos.org/centos/5.2/os/x86_64/CentOS/compat-li tdc++-33-3.2.3-61.x86_64.rpm
***: 1. rpm -ivh compat-li tdc++-33-3.2.3-61.x86_64.rpm
再重新启动MYSQL服务,启动OK.
////////////////////////////////////////////////
# bin/mysqladmin -u root pa word " a word_for_root
# service mysqld stop //关闭 MySQL
8. 编译*** Apache2.24
# cd /usr/local/src
# wget http://www.jtcyxx.com/down/download.php?auth=DGdTM1YmVGkBZA5gUjFVNlB7BmdRPlI%2BVmBTJAx8U2NZawN5B3BQb1o5AGtSaFFhA2cCaQJhV3hSZQVoUSRXZQwsUylWIVRrAWIOZVJoVWVQNAZtUTJSfVZtUyUMelN%2FWTIDIQcyUC1aZAAkUjhRKQN6AmQCdld5UmYFfVF1V3gMd1M9ViNUcwF5Dm1SYVVmUGAGMFFlUmZWNVNnDDpTOFlhAzkHNFAlWj8AelIxUTYDOwI8AipXZVIzBTFRfVc%2FDDNTclZgVDIBKw5pUmVVcVAvBm5RJVJv
# tar zxvf httpd-2.2.4.tar.gz
# cd httpd-2.2.4
依次***apr和apr-util
# cd srclib/apr
# ./configure --prefix=/usr/local/apr --enable-threads --enable-other-child USE=ipv6
# make &am am make i tall
# cd ../apr-util
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/ --with-mysql=/usr/local/mysql
# make &am am make i tall
yum i tall ope l-devel.x86_64
cd /usr/local/src/httpd-2.2.4
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate=shared --with-mysql=/usr/local/mysql --enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache --enable-static-su ort --enable-static-htpa wd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --disable-cgid --disable-cgi --with-mpm=worker --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable- l --with- l=/usr/include/ope l
# make i tall
# echo '/usr/local/apache2/bin/apachectl start ' /etc/rc.local //将 apachectl 的调用加入到你的系统启动文件中。
./configure //配置源代码树
--prefix=/usr/local/apache2 //体系无关文件的顶级***目录PREFIX ,也就Apache的***目录。
--enable-module=so //打开 so 模块,so 模块是用来提 DSO 支持的 apache 核心模块
--enable-mods-shared=all //编译全部的模板,对于不需要我们可以在httpd.conf去掉。
--enable-cache //支持缓存
--enable-file-cache //支持文件缓存
--enable-mem-cache //支持记忆缓存
--enable-disk-cache //支持磁盘缓存
--enable-static-su ort //支持静态连接(默认为动态连接)
--enable-static-htpa wd //使用静态连接编译 htpa wd - 管理用于基本认证的用户文件
--enable-static-htdigest //使用静态连接编译 htdigest - 管理用于摘要认证的用户文件
--enable-static-rotatelogs //使用静态连接编译 rotatelogs - 滚动 Apache 日志的管道日志程序
--enable-static-logresolve //使用静态连接编译 logresolve - 解析 Apache 日志中的IP地址为主机名
--enable-static-htdbm //使用静态连接编译 htdbm - 操作 DBM 密码数据库
--enable-static-ab //使用静态连接编译 ab - Apache HTTP 服务器性能测试工具
--enable-static-checkgid //使用静态连接编译 checkgid
--disable-cgid //禁止用一个外部 CGI 守护进程执行CGI脚本
--disable-cgi //禁止编译 CGI 版本的 PHP
--with-mpm=worker // 让apache以worker方式运行
--enable- l // 编译 l模块。
将apache设置成开机自启动:
在/etc/rc.d/rc.local文件中加入一行
/usr/local/apache2/bin/apachectl start
这样每次重新启动系统以后,apache也会随系统一起启动.
# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
然后 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面)
# chkconfig: 2345 10 90
# description: Activates/Deactivates Apache Web Server
最后,运行chkconfig把Apache添加到系统的启动服务组里面:
# chkconfig --add httpd
# chkconfig httpd on
9、编译php 5.2.1并打上Suhosin Patch。
Suhosin 是php增强型安全补丁,可以编译到静态内核中,也可以编译成php动态扩展。我个人强烈你建议***成静态内核。Suhosin已经进入free d和 gentoo的ports。下面的以下先说静态***步骤。当然你也可以在***php后将它编译成php的动态扩展。
# cd /usr/local/src
# wget http://cn.php.net/get/php-5.2.1.tar.gz/from/this/mirror
wget http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.1-0.9.6.2.patch.gz
# tar zxvf php-5.2.1.tar.gz
# gunzip suhosin-patch-5.2.1-0.9.6.2.patch.gz
# cd php-5.2.1
patch -p 1 -i ../suhosin-patch-5.2.1-0.9.6.2.patch
#./buildconf --force
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir --with-bz2 --with-tiff-dir --with-libxml-dir=/usr/local/libxml2 --with-gd=/usr/local/gd2 --with-freetype-dir --with-jpeg-dir --with- g-dir --with-ttf --enable-m tring --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/etc --with-iconv --disable-ipv6 --enable-static --enable-maintainer-zts --enable-memory-limit --enable-zend-multibyte --enable-inline-optimization --enable-zend-multibyte --enable-sockets --enable-soap --with-ope l
# make i tall
# cp php.ini-recommended /etc/php.ini
在这里也顺便说一下将suhosin***成为php的动态扩展的方法。毕竟网上根本不见它的中文***教程。
虽然我个人不推荐这种方式。
wget http://www.hardened-php.net/suhosin/_media/suhosin-0.9.16.tgz
tar zxvf suhosin-0.9.16.tgz
cd suhosin-0.9.16
./configure --with-php-config=/usr/local/php/bin/php-config
make i tall
会提示编译的模块存在的目录,记住它。
I talling shared exte io : /usr/local/php/lib/php/exte io /no-debug-non-zts-20060613/
然后在php.ini中增加一行下列语句。
exte ion=/usr/local/php/lib/php/exte io /no-debug-non-zts-20060613/suhosin.so
10 、整合apache 与php
# vi /usr/local/apache2/conf/httpd.conf
在最后一行加上:
AddType a lication/x-httpd-php .php
查找:(设置 WEB 默认文件)
DirectoryIndex index.html
替换为:
DirectoryIndex index.php index.html index.htm //在 WEB 目录不到默认文件,httpd 就会执行 /var/www/error/noindex.html
找到这一段:
# AllowOverride controls what directives may be placed in .htacce files.
# It can be All, None, or any combination of the keywords:
# Optio FileInfo AuthConfig Limit
AllowOverride none
更改为AllowOverride all
允许apache rewrite
# ***443端口,支持htt 连接
取消注释 httpd.conf 中的 Include conf/extra/httpd- l.conf
保存httpd.conf,退出。
# /usr/local/apache2/bin/apachectl restart //重启 Apache
11. 查看确认 L.A.M.P 环境信息
vi /usr/local/apache2/htdocs/phpinfo.php
增加下面一行,并保存。
# chmod 755 /usr/local/apache2/htdocs/phpinfo.php
用浏览器打开 [URL=http://127.0.0.1/phpinfo.ph quot;]
http://127.0.0.1/phpinfo.php[/COLOR][/URL]
# echo ' ' /usr/local/apache2/htdocs/testdb.php
# chmod 755 /usr/local/apache2/htdocs/testdb.php
# service mysqld start
用浏览器打开 [URL=http://127.0.0.1/testdb.ph quot;]
http://127.0.0.1/testdb.php[/COLOR][/URL]
检查 phpinfo 中的各项信息是否正确。
12、设置SSL并创建自己的CA
# cd /usr/share/ l/misc
# ./CA -newca
屏幕上出现如下的提示:CA certificate filename (or enter to create)
这是要求输入要创建的CA的***文件名, 可以直接回车或输入***文件名。
Making CA certificate ...
Generating a 1024 bit RSA private key
.........++++++
................................++++++
writing new private key to './demoCA/private/./cakey.pem'
Enter PEM pa phrase:
Verifying pa word - Enter PEM pa phrase:-
此时要求输入和验证CA的私钥口令、国家代码(中国是CN)、省份、城市或地区、组织或企业名称、部门名称、CA的名称或服务器的主机名称、管理员电子邮件地址。
至此,在当前目录下生成了demoCA的目录,CA的***就在该目录下,文件名为cacert.pem
生成服务器的***请求
# ./CA -newreq
屏幕上出现如下的提示:
Generating a 1024 bit RSA private key
.....................................................++++++
.....++++++
writing new private key to 'newreq.pem'
Enter PEM pa phrase:
Verifying pa word - Enter PEM pa phrase:
此时要求输入和验证服务器的私钥口令、国家代码(中国是CN)、省份、城市或地区、组织或企业名称、部门名称、CA的名称或服务器的主机名称、管理员电子邮件地址。
Please enter the following 'extra' attributes
to be sent with your certificaterequest
A challenge pa word []:
An optional company name []:
.Request (and private key) is in newreq.pem
这是要求输入服务器的相关信息。
此时,在当前目录下生成了一个名为newreq.pem的文件,包含了要生成服务器数字***的请求。
签署***
# ./CA -sign
屏幕上出现如下的提示:
Using configuration from /usr/share/ l/ope l.cnf
Enter PEM pa phrase:
此时一样需要输入CA的私钥口令、国家代码(中国是CN)、省份、城市或地区、组织或企业名称、部门名称、CA的名称或服务器的主机名称、管理员电子邮件地址。
Certificate is to be certified until Nov 19 13:46:19 2002 GMT (365 days)
Sign the certificate? [y/n]:y
这时显示***请求文件中的各项信息,并询问是否要签署***,回答y,进行签署。
1 out of 1 certificate requests certified, commit? [y/n]y
回答y,会显示已经签署的***的信息,并在当前目录下生成服务器的***文件newcert.pem。
# mkdir /usr/local/apache2/conf/ l.crt/
# mkdir /usr/local/apache2/conf/ l.key/
# cp newcert.pem /usr/local/apache2/conf/ l.crt/server.pem
# cp newreq.pem /usr/local/apache2/conf/ l.key/server.pem
更改服务器的***文件的相关配置
# vi /usr/local/apache2/conf/extra/httpd- l.conf
查找并修改
# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pa phrase. Note that a kill -HUP will prompt again. Keep
# in mind that if you have both an RSA and a DSA certificate you
# can configure both in parallel (to also allow the use of DSA
# ciphers, etc.)
SSLCertificateFile /usr/local/apache2/conf/ l.crt/server.pem
#SSLCertificateFile /usr/local/apache2/conf/server-dsa.crt
# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile /usr/local/apache2/conf/ l.key/server.pem
#SSLCertificateKeyFile /usr/local/apache2/conf/server-dsa.key
示例文件
在SSL的根目录中生成一个index.html,它是如下所示:
<html>
这是SSL示例!
</html>
假如Web服务器的DNS名称是www.c rint.org.
在浏览器的URL地址栏里输入 http://www.c rint.org/,浏览器便会显示APACHE***时确省的Test Page.
在浏览器的URL地址栏里输入 htt ://www.c rint.org/,注意:是 htt 而不是http !
浏览器会提示站点已经采用了SSL进行数据的加密传输.由于我们的CA***不是浏览器缺省的信任的根***,所以,浏览器会说无法确认服务器的***可信。暂时不管,一直NEXT,最后,浏览器会显示:这是SSL示例!
可以把CA的***放在非SSL的站点上,让浏览器下载并***CA***,并将其设置成可信任的根***,便可解决上面的问题.8 解除HTTPD起动时的口令输入。
由于安全的原因,Web服务器的私钥是口令加密了的,每次重新起动HTTPD或Linux时,都会要求输入Web服务器的私钥的口令。
如果要解除HTTPD起动时的口令输入,可以这样:
# cd /usr/local/apache2/conf/ l.key/
# cp server.pem server.pem.org
# ope l rsa -in server.pem.org -out server.pem
# chmod 400 server.pem
另外在网上看到一个方法,我没有试。有兴趣的可以试下。
创建SSL密码自动应答文件,否则每次Apache启动的时候,都会要求你输入SSL的密码.
创建 /usr/local/apache2/conf/ l.key/send lpwd ,内容如下.
#!/bin/bash
SSLpa wd=YOUR PASSPHRASE
echo $SSLpa wd
chmod 755 /usr/local/apache2/conf/ l.key/send lpwd
此时,Web服务器的私钥已经没有口令加密,一定要确保server.pem文件除root外,任何用户均无权读取它。
13、*** Zend Optimizer
# cd /usr/local/src
# wget http://downloads.zend.com/optimizer/3.2.2/ZendOptimizer-3.2.2-linux-glibc21-i386.tar.gz
# tar xzvf ZendOptimizer-3.2.2-linux-glibc21-i386.tar.gz
# ./ZendOptimizer-3.2.2-linux-glibc21-i386/i tall.sh
按照它的提示一步步进行就行了。
14、***eaccelerator // eaccelerator是php的加速软件,使用后php的执行效率会有较大幅度的提升。目前eaccelerator 0.9.5已经和ZendOptimizer-3.2.2能够很好兼容啦。不过我个人觉得,ZendOptimizer-3.2.2没有加速的功能,只是起到了运行zend加密文件的作用而已。闲话不多说了,大家有兴趣的,可以去google下。
# cd /usr/local/src
# wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2
# tar -jxvf eaccelerator-0.9.5.tar.bz2
# cd eaccelerator-0.9.5
export PHP_PREFIX=/usr/local/ph quot;
$PHP_PREFIX/bin/phpize //指定一下php的目录
# ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config // 设置
# make &am make i tall
编译***后我们会看到屏幕提示的eaccelerator.so所在的目录,比如我得到的是/usr/local/php/lib/php/exte io /no-debug-zts-20060613/eaccelerator.so,记住这个路径,待会要用到。
修改php.ini(***完zend之后,php.ini存放于/usr/local/Zend/etc)
在文件最后,zend之前,注意,这部分内容务必放在zend之前,不然可能会出现不可预期的服务器问题。添加下列信息:
[eaccelerator]
exte ion=/usr/local/php/lib/php/exte io /no-debug-zts-20060613/eaccelerator.so
eaccelerator.shm_size=32
eaccelerator.cache_dir=/tmp/eaccelerator
eaccelerator.enable=1
eaccelerator.optimizer=1
eaccelerator.check_mtime=1
eaccelerator.debug=0
eaccelerator.filter=
eaccelerator.shm_max=0
eaccelerator.shm_ttl=0
eaccelerator.shm_prune_period=0
eaccelerator.shm_only=0
eaccelerator.compre =1
eaccelerator.compre _level=9
zend_exte ion 是***完程序自动指示给我们的
eaccelerator.shm_size=32 缓存大小单位MB
eaccelerator.cache_dir=/tmp/eaccelerator 缓存路径
# mkdir /tmp/eaccelerator // 建立目录
# chmod 0777 /tmp/eaccelerator // 修改目录属性
最后重新启动apachectl
重启apache,phpinfo显示:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Zend Exte ion Manager v1.0.11, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies
也会有eAccelerator的具体信息。
15、***phpmyadmin,管理mysql数据库
# cd /usr/local/apache2/htdocs/
# wget http://jaist.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.10.0-beta1-all-languages.tar.bz2
# tar jxvf phpMyAdmin-2.10.0-beta1-all-languages.tar.bz2
# mv phpMyAdmin-2.10.0-beta1-all-languages phpmyadmin
# cd phpmyadmin/libraries
修改配置文件
# vi config.default.php
找到这几行进行修改:
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (valid choices: config, http, HTTP, signon or cookie)
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['pa word'] = 'PASSWORD'; // MySQL pa word (only needed
经过这几个步骤,我们一个比较安全的LAMP服务器就环境基本建立成功啦。感觉上也不是很难,是吧?
当然对于打造基于动态IP的网站,以上的信息还不够,还有建立ADSL拨号,NAT,动态域名更新,防火墙,***论坛程序等一系列的工作,我会慢慢地写出自己的心得与大家分享。毕竟这对我来说,也是个学习的过程
本文来自ChinaUnix博客,如果查看原文请点:
条评论) 最新资讯 ·
论坛热点 ·
文档更新 ·
Copyright 2001-2009 ChinaUnix.net All Rights Reserved
感谢所有关心和支持过ChinaUnix的朋友们

参考资料

 

随机推荐