ubuntu lamp

 

http://pojaaer.com/node/10843

第一步:安装基本软件
cd ~/
mkdir src
sudo apt-get install subversion
sudo apt-get install vim
sudo apt-get remove iptables
sudo apt-get install squid
sudo apt-get install openssh-server
sudo apt-get install curl
sudo apt-get install libxml2-dev
sudo apt-get install libpng-dev
sudo apt-get install libmcrypt-dev
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get remove iptables
sudo apt-get install subversion vim squid openssh-server curl libxml2-dev libpng-dev  libmcrypt-dev libcurl4-gnutls-dev
 
下载基本安装包
wget http://www.skype.com/go/getskype-linux-deb
wget http://labs.renren.com/apache-mirror/httpd/httpd-2.2.15.tar.gz
wget http://cn2.php.net/distributions/php-5.2.13.tar.gz
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.48-linux-i686-icc-glibc23.tar.gz/from/http://mysql.mirror.tw/
wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
解压
tar -zxvf httpd-2.2.15.tar.gz
tar -zxvf php-5.2.13.tar.gz
tar -zxvf mysql-5.1.48-linux-i686-icc-glibc23.tar.gz
tar -zxvf m4-1.4.9.tar.gz
tar -zxvf autoconf-2.62.tar.gz
安装apache
cd ~/src/httpd-2.2.15/
./configure --prefix=/usr/local/httpd --enable-headers --enable-mime-magic --enable-proxy --enable-rewrite
make
sudo make install
sudo cp /usr/local/httpd/bin/apachectl /etc/init.d/httpd
#sudo vi /usr/local/httpd/conf/httpd.conf
#add
#AddType application/x-httpd-php .php
#DirectoryIndex index.html index.htm index.php
安装mysql
cd /usr/local
sudo groupadd mysqld
sudo useradd -g mysqld mysqld
sudo cp ~/mysql-5.1.48-linux-i686-icc-glibc23 mysql
cd mysql
sudo chown -R mysqld .
sudo chgrp -R mysqld .
sudo scripts/mysql_install_db --user=mysqld
sudo chown -R root .
sudo chown -R mysqld data
sudo cp support-files/mysql.server /etc/init.d/mysqld
sudo cp bin/* /usr/bin/
sudo cp my-large.cnf /etc/my.cnf
#sudo vi /etc/my.cnf
#[mysqld]
#datadir         = /usr/local/mysql/data
#user            = mysqld
安装php
cd ~/src/php-5.2.13/
./configure --prefix=/usr/local/php --with-config-file-path=/etc --with-apxs2=/usr/local/httpd/bin/apxs --enable-bcmath --enable-calendar --enable-exif --with-curl --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-zip --with-gd --with-gettext --with-libxml-dir=/usr --with-mcrypt=/usr --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-png-dir=/usr --with-sqlite=shared --with-ttf --with-xmlrpc
make 
sudo make install
cd ~/src/m4-1.4.9
./configure && make && sudo make install
cd ~/src/autoconf-2.62
./configure && make && sudo make install
#sudo vi /usr/local/php/lib/php.ini
#extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
#[sqlite]
#extension = pdo_sqlite.so
#[pdo]
#extension = pdo.so
#extension = pdo_mysql.so
#[curl]
#extension = curl.so

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值