500 – 内部服务器错误_设置服务器–简介

500 – 内部服务器错误

As we’ve previously discussed, you need a server to host pages that utilize server–side scripting languages. You can, of course, use your hosting provider to serve your files, but makes several assumptions:

如前所述,您需要一台服务器来托管利用服务器端脚本语言的页面。 当然,您可以使用托管提供程序来提供文件,但要进行以下几个假设:

  1. You have a hosting provider;

    您有托管服务提供商;

    It supports PHP (the majority do, but you need to check)

    它支持PHP(大多数都支持,但是您需要检查)

    You’re okay with everyone in the world seeing your work in progress.

    全世界的每个人都可以看到您的工作进展顺利。

Particularly because of the last condition, it is very common to have a second, private, testing server as an intermediate step: something on which you can run your PHP code, testing it to see if it breaks, and only moving your PHP pages to the public server when you are confident that they are ready for prime time.

特别是由于最后一个条件,通常有第二个私有测试服务器作为中间步骤:您可以在其上运行PHP代码,对其进行测试以查看其是否损坏,然后仅将PHP页面移至当您确信公共服务器已准备就绪,可以使用公共服务器。

While there are many possibilities for the type and location of this server – within an organization, it is commonly a separate computer inside the corporate intranet and behind a firewall – it’s also very common, especially for freelance web developers, to have the server on your own machine.

尽管此服务器的类型和位置有很多可能性(在组织内部,但通常是公司内部网内部和防火墙后面的一台单独的计算机),尤其对于自由职业的Web开发人员而言,将服务器安装在您的服务器上也很常见。自己的机器。

Remember that a server is not defined by the hardware it runs on, or where it is, but by the software. In fact the most common collection of software that can be used as a server solution is free, and employed so frequently that it has gained its own acronym: LAMP, standing for:

请记住, 服务器不是由运行的硬件或在何处定义的,而是由软件定义的 。 实际上,可以用作服务器解决方案的最常见软件集合是免费的,并且使用频率很高,因此获得了自己的缩写:LAMP,代表:

Linux 大号 inux下
Free, fully–featured, open–source operating system.
免费的,功能齐全的开源操作系统。
Apache 一个帕什
Free, open source server software: at any time, more than half of the world’s web sites are served using some version of Apache.
免费的开源服务器软件:在任何时候,世界上超过一半的网站都使用某些版本的Apache进行服务。
MySQL 中号 ySQL
Database creation and query language
数据库创建和查询语言
PHP P HP
Server–side scripting
服务器端脚本

Frequently the only item in this setup that changes is the operating system, leading to further derivative acronyms: WAMP (for Windows, Apache, MySQL, PHP) and MAMP (Mac OS X). We’re going to look at setting up personal, private servers for each operating system. The lessons that follow are not intended to set up your own hosting to make your web page visible to the outside world – a move I would strong advise against – but as a “server for one" so that you may look at and test your dynamic pages while working on them on your own machine.

通常,此设置中唯一更改的项目是操作系统,从而导致进一步的缩写词: WAMP (用于Windows,Apache,MySQL,PHP)和MAMP (用于Mac OS X)。 我们将研究为每个操作系统设置个人专用服务器。 接下来的课程并非旨在建立自己的托管服务,以使您的网页对外界可见(我强烈建议您这么做),而作为“一个人的服务器”,以便您可以查看并测试您的动态页,而在您自己的计算机上进行处理。

翻译自: https://thenewcode.com/145/Setting-Up-A-Server-Introduction

500 – 内部服务器错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值