2012-11-06

[架網]Apache 2.4.3+PHP 5.48+MySQL 5.5.28+phpMyAdmin-3.5.3 install

下載位址:
Apache-2.4.3PHP-5.4.8MySQL5.5.28phpMyAdmin-3.5.3

1.安裝Apache 2.4.3
下載 httpd-2.4.3.tar.gz後,解壓縮並安裝
tar -zxvf  httpd-2.4.3.tar.gz
cd  httpd-2.4.3
./configure --enable=so
make
make install


2.安裝MySQL 5.5.28
下載Red Hat & Oracle Linux 5 (x86, 64-bit), RPM Package Shared components
MySQL Server,  Shared components, Development Libraries, Client Utilities, Compatibility Libraries後安裝
rpm -ivh MySQL-server-5.5.28-1.rhel5.x86_64.rpm
rpm -ivh MySQL-devel-5.5.28-1.rhel5.x86_64.rpm
rpm -ivh MySQL-client-5.5.28-1.rhel5.x86_64.rpm
rpm -ivh MySQL-shared-5.5.28-1.rhel5.x86_64.rpm
rpm -ivh MySQL-shared-compat-5.5.28-1.rhel5.x86_64.rpm


3.安裝PHP 5.48
下載PHP 5.4.8 (tar.gz)後,解壓縮並安裝
tar -zxvf  php-5.4.8.tar.gz
cd  php-5.4.8
./configure --with-mysqli=/usr/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs
make
make test
make install

4.安裝phpMyAdmin 3.5.3
下載phpMyAdmin-3.5.3-all-languages.tar.gz後,解壓縮安裝
tar -zxvf phpMyAdmin-3.5.3-all-languages.tar.gz
cd phpMyAdmin-3.5.3-all-languages
vim Documentation.txt 安裝資訊
cp config.sample.inc.php config.inc.php
vim config.inc.php
第十七行改為 $cfg['blowfish_secret'] = 'ba17c1ec07d65003';後存檔
開啟網頁http://localhost/phpMyAdmin/

若無法開啟php網頁,則編輯apache安裝位置裡的conf/httpd.conf檔,加入

    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .php .phtml

5.登入phpMyAdmin與MySQL連結
登入MySQL
mysql -u root -p
新增使用者
GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY 'password';
登入phpMyAdmin
http://localhost/phpMyAdmin/index.php
輸入帳密
完成

沒有留言:

張貼留言

[解決異常] Sequel Pro 無法連線到本機 MySql 8.0 database

不久前換新的mac筆電,必須重新安裝本機的Mysql,於是就直接安裝到mysql-8.0.28的版本,過去一直習慣用 Sequel Pro 操作 database,結果發生 MySQL Authentication plugin 'caching_sha2_passwor...