真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

如何在RedHatAS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e

這篇文章主要講解了“如何在RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e”,文中的講解內(nèi)容簡單清晰,易于學(xué)習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習“如何在RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e”吧!

為溫州等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及溫州網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)、溫州網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!

系統(tǒng)環(huán)境:Redhat AS4所需軟件包:mysql-5.0.41.tar.gz

            zlib-1.2.3.tar.gz            openssl-0.9.8e.tar.gz             httpd-2.2.4.tar.gz             libpng-1.2.14.tar.gz             freetype-2.1.10.tar.gz             jpegsrc.v6b.tar.gz             libxml2-2.6.19.tar.gz             gd-2.0.33.tar.gz             php-5.2.1.tar.gz
所用軟件包都上傳至服務(wù)器/root/web目錄下 1.1.安裝mysql-5.0.45
卸載系統(tǒng)自帶的mysql rpm -qa|grep mysql rpm -e –nodeps mysql
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-5.0.41.tar.gz
cd mysql-5.0.45
#./configure –prefix=/usr/local/mysql –enable-thread-safe-client –enable-local-infile –with-charset=gbk –with-extra-charset=all –with-low-memory
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cd /usr/local/mysql
#chown -R mysql .
#chgrp -R mysql .
#bin/mysql_install_db –user=mysql
#chown -R root .
#chown -R mysql var
#bin/mysqld_safe –user=mysql &
#cd /root/web/mysql-5.0.45
#cp support-files/mysql.server /etc/rc.d/init.d/mysqld
#chmod 700 /etc/rc.d/init.d/mysqld
#chkconfig –add mysqld
#chkconfig –level 345 mysqld on 測試
#/usr/local/mysql/bin/mysqladmin ping
#/usr/local/mysql/bin/mysqladmin version
#/usr/local/mysql/bin/mysql 添加root密碼
#/usr/local/mysql/bin/mysqladmin -uroot -p 添加/usr/local/mysql/bin到環(huán)境變量PATH中
#export PATH=$PATH:/usr/local/mysql/bin 2.安裝zlib-1.2.3 #tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#./configure –prefix=/usr/local/zlib
#make
#make install 3.安裝openssl-0.9.8e #tar zxvf openssl-0.9.8e.tar.gz
#cd openssl-0.9.8e
#./config shared zlib
#make
#make test
#make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl 配置庫文件搜索路徑 #echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
#ldconfig -v 4.安裝httpd-2.2.4 #tar zxvf httpd-2.2.4.tar.gz
#cd httpd-2.2.4
#./configure –prefix=/usr/local/apache –sysconfdir=/etc/httpd –enable-so –enable-ssl –with-ssl=/usr/local/ssl –enable-track-vars –enable-rewrite –with-z-dir=/usr/local/zlib –enable-mods-shared=most
#make
#make install #echo “/usr/local/apache/bin/apachectl start” >> /etc/rc.local(系統(tǒng)啟動時服務(wù)自動啟動) 5.安裝libpng-1.2.14 #tar zxvf libpng-1.2.14.tar.gz  
# cd libpng-1.2.14
# cp scripts/makefile.linux makefile
# make (若是提示找不到zlib庫文件或者頭文件,多半是makefile文件里zlib的默認路徑有誤??删庉媘akefile文件,找到zlib項并重新指定路徑到/usr/local/zlib/lib和/usr/local/zlib/include)。
# make install 6.安裝freetype-2.1.10 # tar -zvxf freetype-2.1.10.tar.gz
# cd freetype-2.1.10
# mkdir -p /usr/local/freetype
# ./configure –prefix=/usr/local/freetype
# make;make install  7.安裝jpegsrc.v6b jpeg默認不會自建目錄,因此需手動建立目錄:
# mkdir -pv /usr/local/jpeg6/{,bin,lib,include,man/man1,man1} 安裝
#tar zxvf jpegsrc.v6b.tar.gz  
# ./configure –prefix=/usr/local/jpeg6/ –enable-shared –enable-static
# make
# make install 
# make install-lib 8.安裝libxml2-2.6.19 # tar -zxf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# mkdir -p /usr/local/libxml2
# ./configure –prefix=/usr/local/libxml2
# make; make install
#cp xml2-config /usr/bin 9.安裝GD-2.0.33庫 # tar -zvxf gd-2.0.33.tar.gz
# mkdir -p /usr/local/gd2
# cd gd-2.0.33
# ./configure –prefix=/usr/local/gd2 –with-jpeg=/usr/local/jpeg6/ –with-png=/usr/local/lib/ –with-zlib=/usr/local/zlib/  –with-freetype=/usr/local/freetype/
# make; make install 10.安裝php-5.2.1 # tar -zvxf php-5.2.1.tar.gz
# mkdir -p /usr/local/php
# cd php-5.2.1
  # ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-xml=/usr/local/libxml2 –with-png=/usr/local/lib –with-jpeg-dir=/usr/local/jpeg6 –with-zlib=/usr/local/zlib –with-freetype=/usr/local/freetype  –with-gd=/usr/local/gd2 –enable-track-vars  –enable-mbstring=all
# make
# make install
# cp php.ini-dist /usr/local/php/lib/php.ini 11.編輯apache配置文件httpd.conf
 
  # vi /etc/httpd/httpd.conf
  要改的有如下幾處:
  找到LoadModule php5_module modules/libphp5.so
  前面的#號去掉(默認已去掉注釋)
  #AddType application/x-gzip .gz .tgz
  下加二行
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
  還有找到DirectoryIndex index.html
  加上 index.php 讓它把index.php做為默認頁 按照使用習慣,這里將網(wǎng)站根目錄指定到/var/www:
找到DocumentRoot “/usr/local/apache/htdocs”
修改為:DocumentRoot “/var/www”(后文中我們還會注釋掉此行,以啟用虛擬主機) 找到
修改為: 12.測試PHP
 
# vi /var/www/index.php
  添加:
       phpinfo();
   ?>
 
重新啟動apache服務(wù)器
# /usr/local/apache/bin/apachectl restart
瀏覽器里http://localhost/測試一下.  

感謝各位的閱讀,以上就是“如何在RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e”的內(nèi)容了,經(jīng)過本文的學(xué)習后,相信大家對如何在RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!


分享標題:如何在RedHatAS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e
分享URL:http://weahome.cn/article/gojphe.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部