apache+mysql+php+zend+freetds+memcache

 libiconv

./configure  --prefix=/usr/local/libiconv

make

make install


1.apache

./configure  \

--prefix=/usr/local/apache--enable-so --enable-rewrite --enable-mods-shared=most

make && make install

vi /usr/local/apache/conf/httpd.conf

---------------------------------------------------------------------------------------------------------------------

#ServerName www.example.com:80

ServerName 127.0.0.1

2.mysql

cmake

./configure

make && make install

cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \

         -DMYSQL_DATADIR=/data/mysql/data \

         -DWITH_MYISAM_STORAGE_ENGINE=1 \

         -DWITH_INNOBASE_STORAGE_ENGINE=1 \

         -DWITH_ARCHIVE_STORAGE_ENGINE=1 \

         -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \

         -DENABLED_LOCAL_INFILE=1 \

         -DDEFAULT_CHARSET=utf8 \

         -DDEFAULT_COLLATION=utf8_general_ci \

         -DEXTRA_CHARSETS=all \

        -DMYSQL_TCP_PORT=3306 

make && make install

/usr/sbin/groupadd-r -g 3306 mysql

/usr/sbin/useradd-u 3306 -g mysql -r -M -s /sbin/nologin mysql

--更改数据文件属组及权限

chown -R mysql:mysql/data/mysql

chmod -R 755/data/mysql/

--建立cnf文件

cpsupport-files/my-medium.cnf /etc/my.cnf

--初使化数据库

/usr/local/mysql/scripts/mysql_install_db--user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data &  

# cpsupport-files/mysql.server /etc/init.d/mysqld

 #chmod +x /etc/init.d/mysqld

3.php

./configure--prefix=/usr/local/php \

--with-apxs2=/usr/local/apache/bin/apxs\

--enable-cgi--with-mysql=/usr/local/mysql \

--with-config-file-path=/usr/local/php/etc\

--with-pdo-mysql=/usr/local/mysql/  \

--with-mysqli=/usr/local/mysql/bin/mysql_config\

--enable-zip--enable-sqlite-utf8 --enable-sockets \

--enable-soap--enable-pcntl --enable-mbstring \

--enable-calendar--enable-bcmath \

--with-iconv=/usr/local/libiconv/\

--enable-exif--with-mcrypt --with-mhash --with-gd \

--with-png-dir--with-jpeg-dir --with-freetype-dir \

--with-libxml-dir--with-curl --with-curlwrappers \

--with-zlib   --with-openssl --with-kerberos=shared \

--with-gettext=shared--with-xmlrpc=shared  --with-xsl  \

make && make install

cp php.ini- production /usr/local/php/etc/php.ini

--整合Apache、PHP及系统初使化配置

sudo vim/usr/local/apache/conf/httpd.conf

查找AddTypeapplication/x-gzip .gz .tgz,在该行下面添加

AddTypeapplication/x-httpd-php .php

查找DirectoryIndexindex.html 把该行修改成

DirectoryIndexindex.html index.htm index.php

4.zend

vi php.ini

extension=/usr/local/Zend/ZendOptimizer.so

5.freetds

./configure--prefix=/usr/local/freetds  --with-tdsver=7.1--enable-msdblib --with-gnu-ld --enable-shared --enable-static

make && make install

vim/usr/local/freetds/etc/freetds.conf 

[mysqlserver]

host =192.168.176.20

port = 1433

tds version = 8.0

client charset=utf-8

#cd/usr/local//src/php-5.2.17/ext/mssql/  / /进入php解压目录

#/usr/local/php/bin/phpize

#./configure--with-php-config=/usr/local/php/bin/php-config --with-mssql=/usr/local/freetds/

#make

#makeinstall

5.memcached

./configure --with-libevent=/usr/local/libevent

#/usr/local/bin/memcached -d -m 2000 -P/tmp/memcached.pid

echo "/usr/local/bin/memcached -d -m 20000 -u root-P /tmp/memcached.pid " >> /etc/rc.local

6.memcache

/usr/local/php/bin/phpize

./configure --enable-memcache--with-php-config=/usr/local/php/bin/php-config --with-zlib-dir

make

make install


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值