|
转自易软开源论坛的darkblue :
我的系统是xpsp2,安装了GreenAMP,解压到d:\greenamp中.下面是详细步骤.
1.打开D:\greenamp\Apache\conf\httpd.conf
修改Port 80为Port 8080.(改成一个未被占用的端口,因为通常80都被IIS占了)
2.打开D:\greenamp\Geting_Started.php
修改$port = 80;为$port = 8080;
3.打开D:\greenamp\www\phpMyAdmin\config.inc.php
修改:
$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '/' . $_SERVER['HTTP_HOST']. (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : ''). substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')+1);
为:
$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '/' . $_SERVER['HTTP_HOST']. substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')+1);
4.在"我的电脑" -->"管理" --> "服务" 里重新启动服务"GreenAMP-Apache"。
5.使用类似http://localhost:8080/phpmyadmin/可以正常访问网站. |
|