Redhat中快速安裝php/mysql

來源:互聯網
上載者:User
關鍵字 Redhat中快速安裝php/mysql
確保使用系統內建的apache(Unix平台最流行的WEB伺服器平台),從安裝光碟片中找出所有以MySQL(和PHP搭配之最佳組合)及php-MySQL(和PHP搭配之最佳組合)開頭的rpm包,然後運行
#rpm -ivh MySQL(和PHP搭配之最佳組合)*.rpm php-MySQL(和PHP搭配之最佳組合)*.rpm; MySQL(和PHP搭配之最佳組合)_install_db; service MySQL(和PHP搭配之最佳組合) start

apache(Unix平台最流行的WEB伺服器平台) + PHP:
[1] Install the all the component of "Web Server" group. If you have not installed "httpd" or if the php support is not installed, you can just execute "redhat-config-packages" to get a user-friendly GUI to Add/Remove any packages.
[2] By default, the php-MySQL(和PHP搭配之最佳組合) cooperation package will not be installed. Get the
RH8 disc 3 and install the rpm package: "php-MySQL(和PHP搭配之最佳組合)-4.2.2-8.0.5.i386.rpm"
[3] Modify /etc/php.ini, change "register_globals = Off" to "register_globals = On"

MySQL(和PHP搭配之最佳組合):
[1] Install all the components of "Database Server" group. If you have not installed the MySQL(和PHP搭配之最佳組合) server, you can just use "redhat-config-packages" to add it.
(RH8 disc2 and disc3 are needed)
[2] Exceute the following commands:
# MySQL(和PHP搭配之最佳組合)_install_db
# service MySQL(和PHP搭配之最佳組合)d start
# MySQL(和PHP搭配之最佳組合)admin -u root password 'password'

Installation of PHP app:
[1] Extract any tools or applications written in PHP to a directory.
[2] Copy all the contents to apache(Unix平台最流行的WEB伺服器平台)'s default document root, /var/www/html, and make sure the file "index.php" is in the directory /var/www/html.

現在都是用單獨的一個設定檔,在/etc/httpd/conf.d/php.conf
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.