PHP的安装无法正常工作 [英] Installation of PHP not working fine

查看:96
本文介绍了PHP的安装无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我是PHP的初学者.
作为设置系统的一部分,我已经下载并安装了EasyPHP-5.3.5.0.安装很好,安装后将同时启动Apache和MySql.
但是当我转到http://localhost/home时,它显示了加载页面的问题.

稍后,当我尝试使用http://127.0.0.1:8888/home时,便可以获取主页.我想知道我的机器到底出了什么问题.
有人可以帮我吗.

谢谢
Mithun

Hello,

I am a beginner with the PHP.
As part of setting up my system, I have downloaded and installed EasyPHP-5.3.5.0. The installation was fine and both the Apache and MySql are started after the installation.
But when I go to http://localhost/home, it shows problem loading the page.

Later when I try with http://127.0.0.1:8888/home, I am able to get the home page. I would like to know what exactly is the problem in my machine.
Can someone help me on this.

Thanks
Mithun

推荐答案

HI

您的Apache在端口8888而不是80上运行.如果其他任何Web服务器(如IIS)已经占用了端口80,则会发生这种情况.如果您重视php.然后将IIS的端口更改为任何其他端口,并如下所示修改您的Apache安装的httpd.conf.找到并更改这些行,如图所示.重新启动电脑.

听80
ServerName localhost:80
HI

Your Apache runs on the port 8888, not on 80. This will happen if any other web server like IIS already occupy the port 80. If you give importance to php. Then change the port of IIS to any other port and modify the httpd.conf of you apache installation as below. Find and change these lines as shown. Restart the pc.

Listen 80
ServerName localhost:80


这是安装HTTP的方式.没有什么问题;您只需要知道如何使用本地主机寻址即可.

它与http://127.0.0.1:8888/home一起使用,等效地址为不是 http://localhost/home,您应该改用http://localhost:8888/home.
即使是初学者也应该理解8888是端口号(URL中缺少端口规范意味着默认值,对于HTTP是80),否则,该初学者将以错误的步骤开始.

—SA
This is how you installed the HTTP. There is nothing wrong with it; you only need to know how to use local host addressing.

It it works with http://127.0.0.1:8888/home, the equivalent address is not http://localhost/home, you should use http://localhost:8888/home instead.
Even a beginner should understand 8888 is the port number (missing port specification in URL means the default, which is 80 for HTTP), otherwise this beginner begins with wrong steps.

—SA


这篇关于PHP的安装无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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