几篇安装lamp的文章

发布时间:2017-11-11 16:52:15 阅读:1061次
http://blog.chinaunix.net/uid-1813014-id-2837742.html
http://www.cnblogs.com/neve/articles/1989352.html
http://wenku.baidu.com/view/c7c0056b58fafab069dc02e6.html
http://www.linuxdiyf.com/viewarticle.php?id=58131
apache配置
1、
mkdir httpd
tar -zxvf httpd-2.2.21.tar.gz -C ./httpd
2、./configure --prefix=/usr/local/httpd --enable-module=so --enable-rewrite --enable-ssl=static --with-ssl=/usr/local/ssl --enable-module=ssl

如果需要apache支持svn
./configure --prefix=/usr/local/httpd --enable-module=so --enable-rewrite --enable-ssl=static --with-ssl=/usr/local/ssl --enable-module=ssl --enable-dav --enable-dav-svn --enable-maintainer-mode

3、make & make install
如果需要apache使用cache,那么
./configure --prefix=/usr/local/httpd --enable-module=so --enable-rewrite --enable-cache  --enable-disk-cache --enable-mem-cache  --enable-file-cache --enable-so --enable-expires --enable-headers --enable-deflate
http://wenku.it168.com/d_000784164.shtml
http://blog.csdn.net/21aspnet/article/details/6604814
http://www.linuxidc.com/Linux/2011-08/40371p2.htm
http://www.cnblogs.com/fnng/archive/2012/11/26/2790029.html
http://blog.51yip.com/apachenginx/898.html
http://zhumeng8337797.blog.163.com/blog/static/1007689142010112761525975/
./configure --prefix=/usr/local/httpd --enable-module=so --enable-rewrite --enable-cache  --enable-disk-cache --enable-mem-cache  --enable-file-cache --enable-so
然后phpinfo()看看
http://blog.51yip.com/apachenginx/873.html
接着如果/usr/local/httpd/modules中没有mod_cache.so、mod_mem_cache.so以及mod_disk_cache.so
那么, cd /home/test/httpd/modules/cache/,然后我们执行
  /usr/local/httpd/bin/apxs -c -i mod_cache.c
  /usr/local/httpd/bin/apxs -c -i mod_mem_cache.c
  /usr/local/httpd/bin/apxs -c -i mod_disk_cache.c
接着会在/usr/local/httpd/modules生成mod_cache.so、mod_mem_cache.so以及mod_disk_cache.so

mysql配置
1、cd /usr/local/mysqlserver/
2、 cp support-files/my-medium.cnf /etc/my.cnf
3、./scripts/mysql_install_db  --user=mysql  //如果报错了
./scripts/mysql_install_db --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql/
4、chown -R root .
5、chown -R mysql data
6、 chown -R mysql .
7、./bin/mysqld_safe --user=mysql &
8、./bin/mysql
9、mysql>

安装的时候遇到这个错误:

/usr/local/mysql3306/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

需要安装 sudo apt-get install libaio-dev

centos执行yum install mysql-devel
php配置
  1、 tar -jxvf php-5.3.9.tar.bz2
  2、 cd php-5.3.9
  3、 ./configure --prefix=/usr/local/php5  --with-apxs2=/usr/local/httpd/bin/apxs  --with-mysql=/usr/local/mysqlserver --with-mysqli=/usr/local/mysqlserver/bin/mysql_config --with-iconv-dir=/usr/local/libiconv --with-curl --with-curlwrappers --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-zlib  --with-freetype-dir --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-sockets --enable-soap --with-openssl  --enable-bcmath --enable-fpm --enable-json --enable-xml


如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询
下一篇:lnmp

转载请注明:几篇安装lamp的文章 出自老鄢博客 | 欢迎分享