LAMP简单配置方法
2007-06-15 22:55
405 查看
mysql采用rpm方式安装
rpm -ivh MySQL-server-5.0.37-0.i386.rpm
rpm -ivh MySQL-client-5.0.37-0.i386.rpm
apache采用tar包安装
#tar zxvf httpd-2.2.4.tar.gz
#cd httpd-2.2.4
#./configure --prefix=/usr/local/apache2 --sysconfdir=/etc/httpd --enable-module=so
#make;make install
gd库采用tar包,分布安装
安装JPEG包
#tar zxvf jpegsrc-6b.tar.gz
#cd jpeg-6b
#./configure
#make
#mkdir -p /usr/local/man/man1
#make install
#make install-lib
安装TTF包
#tar zxvf freetype-2.1.10.tar.gz
#cd freetype-2.1.10
#./configure;make;make install
安装zlib包(libpng支持包)
#tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#./configure;make;make install
安装libpng包
#tar zxvf libpng-1.2.8-config.tar.gz
#cd libpng-1.2.8-config
#cp scripts/makefile.gcmmx makefile
#make;make install
安装gd包
#tar zxvf gd-2.0.33.tar.gz
#cd gd-2.0.33
#./configure;make;make install
#cp gd.h /usr/local/lib/
xml采用tar包安装
#tar zxvf libxml2-2.6.22.tar.gz
#cd libxml2-2.6.22
#./configure;make;make install
php采用tar包安装
#tar zxvf php-5.2.1.tar.gz
#cd php-5.2.1
#./configure --prefix=/usr/local/php5 --with-config-file-path=/etc/php/ --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars
#make;make install
#chmod 755 /usr/local/httpd/modules/libphp5.so
#cp php.ini-dist /etc/php/php.ini
zend采用tar包安装
tar zxvf ZendOptimizer-2.5.10-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.5.10-linux-glibc21-i386
./install.sh
支持php,编辑httpd.conf
vi /etc/httpd/httpd.conf
--------------------------------------------------------------
+AddType application/x-httpd-php .php
+Addtype application/x-httpd-php-source .phps
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.html index.html.var index.php
--------------------------------------------------------------
rpm -ivh MySQL-server-5.0.37-0.i386.rpm
rpm -ivh MySQL-client-5.0.37-0.i386.rpm
apache采用tar包安装
#tar zxvf httpd-2.2.4.tar.gz
#cd httpd-2.2.4
#./configure --prefix=/usr/local/apache2 --sysconfdir=/etc/httpd --enable-module=so
#make;make install
gd库采用tar包,分布安装
安装JPEG包
#tar zxvf jpegsrc-6b.tar.gz
#cd jpeg-6b
#./configure
#make
#mkdir -p /usr/local/man/man1
#make install
#make install-lib
安装TTF包
#tar zxvf freetype-2.1.10.tar.gz
#cd freetype-2.1.10
#./configure;make;make install
安装zlib包(libpng支持包)
#tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#./configure;make;make install
安装libpng包
#tar zxvf libpng-1.2.8-config.tar.gz
#cd libpng-1.2.8-config
#cp scripts/makefile.gcmmx makefile
#make;make install
安装gd包
#tar zxvf gd-2.0.33.tar.gz
#cd gd-2.0.33
#./configure;make;make install
#cp gd.h /usr/local/lib/
xml采用tar包安装
#tar zxvf libxml2-2.6.22.tar.gz
#cd libxml2-2.6.22
#./configure;make;make install
php采用tar包安装
#tar zxvf php-5.2.1.tar.gz
#cd php-5.2.1
#./configure --prefix=/usr/local/php5 --with-config-file-path=/etc/php/ --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars
#make;make install
#chmod 755 /usr/local/httpd/modules/libphp5.so
#cp php.ini-dist /etc/php/php.ini
zend采用tar包安装
tar zxvf ZendOptimizer-2.5.10-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.5.10-linux-glibc21-i386
./install.sh
支持php,编辑httpd.conf
vi /etc/httpd/httpd.conf
--------------------------------------------------------------
+AddType application/x-httpd-php .php
+Addtype application/x-httpd-php-source .phps
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.html index.html.var index.php
--------------------------------------------------------------
相关文章推荐
- CentOS 7.0 安装配置LAMP服务器方法(Apache+PHP+MariaDB)
- Django接口测试方法(二)-项目启动和简单配置
- SVN局域网服务器简单配置及使用方法
- 调优您的 LAMP 应用程序的 5 种简单方法
- MySQL---数据库从入门走向大神系列(七)-Java访问数据库配置及简单使用方法execute
- Iscroll5的简单配置和方法
- FreeBSD简单配置SSH并用root远程登陆方法
- *在ubuntu上搭建开发环境4---ubuntu简单的搭建LAMP环境和配置
- web项目取得spring配置的数据源的简单实现方法
- 简单配置 Tomcat JVM 的方法 —— WINDOWS 平台适用
- Ubuntu下为Apache简单配置SSL的方法(HTTPS的实现)
- 配置opencv工程最简单的方法
- 在RHEL或CentOS下简单的搭建LAMP环境的方法~
- CentOS 7.0 安装配置LAMP服务器方法(Apache+PHP+MariaDB)
- java简单读取properties配置文件的方法示例
- mysql 5.7.20常用下载、安装和配置方法及简单操作技巧(解压版免安装)
- 配置iptables,把80端口转到8080的简单方法
- webAPI方法调用,路由的配置,跨域等简单小例
- filezilla 配置文件 在哪里?原来配置文件位置修改如此简单,绿色实用的方法