linux Rehat as 4 的lamp環境配置過程(自己的過程記錄)

來源:互聯網
上載者:User
linux ----
裝好Redhat,一定要安裝系統硬碟中的開發工具,因為基本的GCC編譯是必須的

下載MYSQL :wget (自己到官方網站找)
 解壓縮:tar zxvf mysql-5.0.33.tar.tgz
  cd mysql-5.0.33
  ./configure --prefix=/usr/local/mysql
  make
  make install
  /usr/local/mysql/bin/mysql_install_db
  useradd mysql
  cd /usr/local/mysql
  chgrp -R mysql ./*
  cd ./var
  chgrp -R mysql ./*
  chown -R mysql ./*
  chmod 777 /usr/local/mysql/var
  chgrp -R mysql /usr/local/mysql
  chmod 777 /usr/local/mysql/lib/mysql/libmysqlclient.a
  配置好後啟動
  /usr/local/mysql/bin/mysqld_safe --user=mysql &
  然後用TOP 命令查看是否有MYSQL進程
  我看我的沒有問題呵呵
  若果您沒有成功可以到/usr/loval/mysql/var/xxxx.err尋找錯誤
  一般都是許可權的錯誤呵呵,多做幾chown 和chgrp處理就OK了
  進入mysql
  /usr/local/mysql/bin/mysql

下載APACHE:wget (自己到官方網站找)
    解壓縮:tar zxvf httpd-2.2.4.tar.gz
      cd /httpd-2.2.4
  設定修改apache的最大線程數
  vi /include/httpd.h
  將#define DYNAMIC_MODULE_LIMIT 128
  改為 #define DYNAMIC_MODULE_LIMIT 2560
  ./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite
  make
  make install
  安裝完成後啟動
  /usr/local/apache/bin/apachectl start
  
  啟動成功後在瀏覽器敲入ip地址就可以看到預設頁面了!

下載php: wget (自己到官方網站找)
  解壓縮:tar zxvf php-4.4.6.tar.gz
  ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
  make && make install

  開啟apache 的httpd.conf增加PHP尾碼檔案的解析
  vi /usr/local/apache/conf/httpd.conf
  插入  AddType application/x-httpd-php .php
  儲存即可
  安裝完成後啟動 APACHE
  /usr/local/apache/bin/apachectl start

 

以上都是 我的配置過程希望有人能有用嘿嘿!
 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.