Localhost不显示与服务器中相同的组件 [英] Localhost not displaying same components as in the server

查看:74
本文介绍了Localhost不显示与服务器中相同的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,几天前,我让本地主机从Wamp运行到我正在处理的文件连接到我的服务器(通过bitbucket到我可以在aptana中使用git的位置),并且一切正常(无论显示什么)当然,当一切都保持最新时,我的localhost上的Wamp服务器将显示在我的bluehost服务器上.

Okay so a few days ago I had my localhost running off of Wamp to where the files I was working on were connected to my server (through bitbucket to where I can use git in aptana) and everything was working fine (whatever displayed on my localhost off of Wamp server displayed on my bluehost server of course when everything was up to date).

我必须重新安装Wamp,然后将项目从bitbuckit再次克隆到我的www目录(通过aptana)到我的本地主机将再次连接到服务器的位置,并且还将数据库导入到应该完全相同的安装位置在服务器上.

I had to re-install Wamp and I cloned my project again from bitbuckit into my www directory (through aptana) to where my localhost would be connected to my server again and also imported the database to where the setup should be exactly as on the server.

这一次,当我进入计算机上的本地主机以显示组件/网页时,它不会显示所有内容.它仅显示整个网站上所有页面和组件所使用的背景.

This time when I go to my localhost on my computer to display the components/webpages it doesn't display everything. It only displays the background of my pages and components being used on all across the entire site.

由于localhost上的所有内容都与服务器(代码和数据库)完全相同,因此应该像在服务器上一样显示.

Since everything on the localhost is exactly the same as server (code and database) it should display like it does on the server.

这可能是什么原因造成的?

What could be causing this?

Wamp中是否存在可能导致组件无法显示的配置?

Are there configurations in Wamp that could be causing components to not display?

我已经多次安装了Wamp,并在Xampp上尝试了此操作,并且发生了相同的事情.

I have re-installed Wamp multiple times as well as trying this on Xampp and the same thing is happening.

任何帮助将不胜感激!

推荐答案

因此,事实证明,我正在安装的Wamp/Xampp版本(是新版本)的php版本与该版本的php版本不兼容已退出bluehost服务器(当前位于5.2.17).

So it turns out that the Wamp/Xampp version I was installing (which were the new versions) had php versions which wasn't compatible with the php version that is off of bluehost server (which is currently at 5.2.17).

所以我安装了Xampp版本1.7.1(支持php版本5.2.8).

So I installed Xampp version 1.7.1 (which supports php version 5.2.8).

现在我的本地计算机正在完全按照我的服务器运行...一切都应正常显示!

And now my local is working exactly as my server...EVERYTHING is displaying as it should!

这篇关于Localhost不显示与服务器中相同的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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