我的LAMP筆記
圖-LAMP
哭泣之劍-LAMP學習筆記
1、gd庫 gd-2.0.35 http://www.phpfans.net/down/soft/55.html
2、apache httpd-2.2.5.tar.gz http://www.apache.org/dist/httpd/
3、mysql mysql-5.0.56.tar.gz http://download.chinaunix.net/download/0008000/7159.shtml
4、php php-5.2.13.tar.gz http://www.php.net/downloads.php
安裝方法:
gd-2.0.35
#tar zxvf gd-2.0.35.tar.gz
#./configure --prefix=/web/gd
#make
#make install
#p#
mysql
-------------------------
#groupadd mysql
#useradd -g mysql mysql
#tar zxvf mysql-5.0.56
#./configure --prefix=/web/mysql #make
#make insall
#cd /web/mysql
#chown -R mysql .
#chgrp -R mysql .
#bin/mysql_install_db --user=mysql
#chown -R root .
#chown -R mysql var
#cp share/mysql/my-medium.cnf /etc/my.cnf
#cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld
#chmod 755 /etc/rc.d/init.d/mysqld
#bin/mysqld_safe --user=mysql &
#bin/mysqladmin -u root password 123456
#p#
apache
-----------------------
#tar zxvf httpd-2.2.5.tar.gz
#cd http-2.2.5
#./configure --prefix=/web/apache --enable-so --with-gd=/web/gd
#cd /web/apache
#cp bin/apachectl /etc/rc.d/init.d/httpd
#chmod 755 /etc/rc.d/init.d/httpd
#service httpd start
#p#
php
---------------------------
#tar zxvf php-5.2.13
#./configure --with-apxs2=/web/apache/bin/apxs --with-mysql=/web/mysql --with-gd=/web/gd --prefix=/web/php
#make
#make insall
#cp php.ini-dist /usr/local/lib/php.ini ===============================================================================
#p#
整合apache與php
---------------------------
#cd /web/apache
#vi conf/httpd.conf
找到
DirectoryIndex index.html
在里面加入index.php
找到AddType application/x-gzip
在下面添加如下內(nèi)容:
AddType application/x-httpd-php .php .phtml
把Options Indexes FollowSymlinks用"#"注釋掉
AllowOverride none 改為 all
在根目錄里新建info.php
內(nèi)容為:
phpinfo();
?>
測試成功!
通過文章的介紹,我們知道LAMP達人的學習筆記內(nèi)容還是比較全的,希望對你們有用!
【編輯推薦】
- Web應用程序平臺--LAMP
- Ubuntu PHP 編輯器
- LAMP組件經(jīng)常使用的幾個終端命令
- LAMP配置攻略:解決Firefox瀏覽器顯示中文亂碼等問題
- LAMP配置之Mysql測試
- Ubuntu LAMP 如何配置Apache