WAMP服务器未显示图像 [英] WAMP Server not displaying images

查看:106
本文介绍了WAMP服务器未显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,我不知道该在Google中搜索什么.基本上我已经安装了WAMP服务器并安装了OPen购物车

I'm having a problem which I don't know what to search in google. Basically I have installed WAMP server and Installed OPen Cart

我可以在本地计算机上查看我的电子商务站点,但是当我在远程计算机上打开它时,它不会加载任何图像.它只显示文字

I am able to view my ECommerce site on my local computer but when I open it in on a remote computer it doesn't load any images. It only shows texts

我的情况: 如果我在以下位置加载PHP页面

My scenario: if I load the PHP page at

http://192.168.1.101/

它工作正常.我可以查看放在根目录中的WAMP服务器页面,但是当我在以下位置加载电子商务页面时

it works fine. I am able to view the WAMP server page which I put in the root directory but when i load the ecommerce pages at

http://192.168.1.101/clothing/

它不加载图像.好像PHP脚本无法正常工作.有趣的是,当我浏览时,它可以在本地计算机上正常工作

it doesn't load the images. As if the PHP scripts are not working on it. Funny thing is it works fine on my local machine when I browse

http://127.0.0.1/clothing/

感谢您的帮助!

推荐答案

<opencart main directory>/config.php中添加这些行(如果尚不存在):

Add these lines (if isn't there yet) in <opencart main directory>/config.php :

// HTTP
define('HTTP_SERVER', 'http://192.168.1.101/clothing/admin/');
define('HTTP_CATALOG', 'http://192.168.1.101/clothing/');
define('HTTP_IMAGE', 'http://192.168.1.101/clothing/image/');

// HTTPS
define('HTTPS_SERVER', 'http://192.168.1.101/clothing/admin/');
define('HTTPS_IMAGE', 'http://192.168.1.101/clothing/image/');

请注意地址192.168.1.101和目录名称clothing.每次重命名目录或从其他地址访问网站时,都必须更改它.

Note the address 192.168.1.101 and directory name clothing. You have to change it everytime you rename the directory or access your site from different address.

这篇关于WAMP服务器未显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆