Apache-2.4.3、PHP-5.4.8、MySQL5.5.28、phpMyAdmin-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
輸入帳密
完成
下載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
輸入帳密
完成
沒有留言:
張貼留言