主頁 > 知識庫 > RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e

RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e

熱門標(biāo)簽:外呼scrm系統(tǒng)哪家好 高德地圖標(biāo)注重復(fù)了怎么辦 承德電銷 成都自動外呼系統(tǒng)服務(wù)商 隨州外呼業(yè)務(wù)系統(tǒng) 百度地圖標(biāo)注能刪除嗎 斑馬電話機器人的起源 你所在的區(qū)域不支持地圖圖標(biāo)注冊 百度地圖標(biāo)注分布圖

系統(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做為默認頁 按照使用習(xí)慣,這里將網(wǎng)站根目錄指定到/var/www:
找到DocumentRoot “/usr/local/apache/htdocs”
修改為:DocumentRoot “/var/www”(后文中我們還會注釋掉此行,以啟用虛擬主機) 找到Directory “/usr/local/apache/htdocs”>
修改為:Directory “/var/www”> 12.測試PHP
 
# vi /var/www/index.php
  添加:
   ?
    phpinfo();
   ?>
 
重新啟動apache服務(wù)器
# /usr/local/apache/bin/apachectl restart
瀏覽器里http://localhost/測試一下.  

標(biāo)簽:吉安 賀州 錫林郭勒盟 桂林 陜西 河源 襄陽 宜賓

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e》,本文關(guān)鍵詞  RedHat,AS4,上,安裝,配置,Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e》相關(guān)的同類信息!
  • 本頁收集關(guān)于RedHat AS4上安裝配置Apache2.2.4+PHP5.2.3+MySQL5.0.45+openssl0.98e的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章