1 / 10

20130513

20130513. LAMP 架設. 確認套件. httpd ( 提供 Apache 主程式 ) mysql (MySQL 客戶端程式 ) mysql -server (MySQL 伺服器程式 ) php (PHP 主程式含給 apache 使用的模組 ) php-devel (PHP 的發展工具,這個與 PHP 外掛的加速軟體有關 ) php-mysql ( 提供給 PHP 程式讀取 MySQL 資料庫的模組 ) Ex 查詢是否有 httpd 的套件 : rpm –q httpd. 安裝套件 ( php-devel ).

keitha
Télécharger la présentation

20130513

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 20130513 LAMP架設

  2. 確認套件 • httpd (提供 Apache 主程式) • mysql (MySQL 客戶端程式) • mysql-server (MySQL 伺服器程式) • php (PHP 主程式含給 apache 使用的模組) • php-devel (PHP 的發展工具,這個與 PHP 外掛的加速軟體有關) • php-mysql (提供給 PHP 程式讀取 MySQL 資料庫的模組) • Ex 查詢是否有httpd的套件:rpm –q httpd

  3. 安裝套件 (php-devel) Yum • yum install php-devel Rpm • 前往rpm search http://rpm.pbone.net/

  4. 需要3個套件 • php-devel-5.3.3-1.fc14.i686.rpm • autoconf-2.66-2.fc14.noarch.rpm • automake-1.11.1-5.fc14.noarch.rpm • mysql-5.1.51-2.fc14.i686.rpm • mysql-server-5.1.51-2.fc14.i686.rpm • php-mysql-5.3.3-1.fc14.i686.rpm • 安裝postfix(郵件伺服器) • 下載網址: http://rpm.pbone.net/ • wget網址: 在linux下下載 • rpm -ivh 套件檔名: 安裝套件 • rpm -q 套件名稱: 查詢已安裝套件

  5. 在/etc/httpd/conf/httpd.conf預設語系為utf-8 Linux /var/www/http

  6. 1. 移除掉 /var/www/html下的 “Index” 設定 <Directory "/var/www/html"> Options IndexesFollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> *做完網頁伺服器設定, 記得重新啟動伺服器: service httpdrestart 2. 在/var/www/html下新增一個資料夾 “cat” 3.在cat下,新增檔案 cat1.html 4.在cat1.html中輸入. Hello, I am cat.

  7. 使用套件名稱找 (or Advanced RPM search)http://rpm.pbone.net/

  8. 找到php-devel-5.3.8-3.fc14.i686.rpm

  9. 進入下載畫面

  10. ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu/yum/2012/STABLE/RPMS/php-devel-5.3.8-3.fc14.i686.rpmftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu/yum/2012/STABLE/RPMS/php-devel-5.3.8-3.fc14.i686.rpm

More Related