原帖由 有女乃大 于 2011-3-9 10:39 发表
人家早说了,zijidelu是系统用户,就跟apache用户组一样,每个人都把zijidelu用户组改成自己的,会乱套的。当然,这是官方的一面之词而已,取舍在你自己。对任何事物都要有一定的辨别能力,而这种能力要在了解的基础之上! ...

原帖由 vaman 于 2011-3-9 11:17 发表
其实我是想用lamp
可是用惯了lnmp了傻瓜操作了
自己操作了一下apache觉得好繁琐
我还是一步步学一下apache的操作吧,找个文章学学,老靠傻瓜操作也不是个事啊 。。 ...
cd /tmp
mkdir src
cd /tmp/src
yum -y install patch make gcc gcc-c++ gcc-g77 flex bison file
yum -y install libtool libtool-libs autoconf kernel-devel
yum -y install libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel
yum -y install freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel
yum -y install glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel
yum -y install ncurses ncurses-devel curl curl-devel e2fsprogs
yum -y install e2fsprogs-devel krb5 krb5-devel libidn libidn-devel
yum -y install openssl openssl-devel vim-minimal nano sendmail
yum -y install fonts-chinese gettext gettext-devel
yum -y install ncurses-devel
yum -y install gmp-devel pspell-devel
yum -y install pcre-devel
yum -y install unzip
yum install gcc gcc-c++ flex autoconf automake make m4 patch libtool openssl-devel file time mlocate sudo bind-utils -y
yum update -y
wget http://monkey.org/~provos/libevent-2.0.9-rc.tar.gz
tar -xzf libevent-2.0.9-rc.tar.gz
cd libevent-2.0.9-rc
./configure
make && make install
cd /tmp/src
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
tar -xzf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure
make && make install
cd /tmp/src
wget http://launchpad.net/libmemcache ... mcached-0.44.tar.gz
tar -xzf libmemcached-0.44.tar.gz
cd libmemcached-0.44
./configure
make && make install
cd /tmp/src
yum install mysql-server -y
rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm
yum --enablerepo=webtatic install php-devel php php-mysql php-sockets php-process php-pecl-memcache php-pecl-gearman httpd php-mcrypt php-mbstring php-gd -y
cd /var/www/html
wget http://sourceforge.net/projects/ ... ges.tar.gz/download
tar -xzf phpMyAdmin-3.3.8.1-all-languages.tar.gz
mv phpMyAdmin-3.3.8.1-all-languages phpmyadmin
cd /tmp/src
wget http://pecl.php.net/get/APC-3.1.7.tgz
tar -xzf APC-3.1.7.tgz
cd APC-3.1.7
/usr/bin/phpize
./configure
make
make install
echo "; Enable apc extension module
extension = apc.so
; Options for the APC module version >= 3.1.3
; See http://www.php.net/manual/en/apc.configuration.php
; This can be set to 0 to disable APC.
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache.
apc.shm_segments=1
; The size of each shared memory segment with M/G suffix.
apc.shm_size=72M
; A "hint" about the number of distinct source files that will be included or
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store. Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=600
; use the SAPI request start time for TTL
apc.use_request_time=0
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=600
; The number of seconds that a cache entry may remain on the garbage-collection list.
apc.gc_ttl=0
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=1
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=0
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; Enables APC handling of signals, such as SIGSEGV, that write core files when signaled.
; APC will attempt to unmap the shared memory segment in order to exclude it from the core file
apc.coredump_unmap=0
; Records a md5 hash of files.
apc.file_md5=0
; not documented
apc.preload_path
apc.slam_defense=off" >> /etc/php.ini
cd /root
还是顶军哥的 LNMP| 欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) | Powered by Discuz! X3.4 |