使用统一服务器快速设置轻量级Windows Web服务器

不久前,我介绍了XAMPP,介绍了如何在PC上进行设置。由于博客的流量已经达到一定水平,所以我最后要做的就是弄乱设计,不小心将网站关闭,然后损害网站的声誉。

在很大程度上,XAMPP为我提供了很好的服务,但我一直在寻找一种竞争对手的服务,该服务将使XAMPP所做的一切都做得更好。我很高兴地说,我发现了另一个适合该账单的轻量级Web服务器应用程序-统一服务器。

运行统一Web服务器

在我跳入之前告诉您有关Uniform Server软件的信息,我应该解释一下为什么发现XAMPP时我不只是停止浏览。

The reason is that, while it installed a PHP/MySQL-based web server that could mirror my blog well – setting it up, configuring and maintaining the service wasn’t quite as streamlined as I would have liked. While it does come with the Admin PHP app for setting up MySQL, it is not quite as easy to configure the PHP install if you want to.

Uniform Server, on the other hand, does everything XAMPP can do, plus it gives you much easier access to configure and tweak settings as you see fit. It also allows you to enable Perl scripting if you so desire.

要设置Uniform Server,只需下载ZIP文件并将其放在USB设备上或要在其中存储Web服务器文件的PC目录。在该根文件夹中,您会找到 Start_as_program.exe Start_as_service.exe 。运行该程序将启动服务器配置应用。

它还将提示您立即更改root MySQL密码,以提高安全性。完成此操作后,您将回到该程序的主服务器设置屏幕。就像XAMPP一样,当您要激活Web服务器时,只需单击“ 同时启动",Apache Web服务器和MySQL数据库都将在 http:// localhost

如果在将自己的文件放入 / www 子目录之前先进入 http://localhost/index.php ,请看下一页。这就是您第一次知道服务器正常运行的方式。

在Uniform Server应用程序中,单击“ 服务器配置"按钮以查看Web服务器的所有方面。您可以在此应用中进行修改。这与以前的Uniform Server版本略有不同,后者以前将基于Web的管理页面用于所有这些配置设置。现在,所有这些操作都通过此本地运行的,基于非浏览器的应用程序完成。

As you can see, from this app you can configure a list of server settings, without ever having to mess around with trying to track down the right config files on the web server. This app will find them all for you.

例如,单击“ Apache" 按钮以查看您所有的Apache Web服务器设置可以访问和更改,以及可以从此处查看所有日志文件。

单击PHP以访问可以在此服务器上更改的PHP设置。这真的很好,尤其是在经历了尝试修改XAMPP服务器上的PHP设置之后。以前从未做过,这真是令人沮丧的经历。有了The Uniform Server,一切都在这里为您布置。您仍然需要知道如何进行更改,但至少不必浪费时间寻找正确的ini和配置文件。

单击“ 编辑基本配置" "来查看所有PHP设置,您可以直接在此应用程序内直接更改它们-无需文件编辑。都是由菜单驱动的。

此外,Uniform Server应用程序中还包括执行MySQL数据库备份。很好,因为我的Web托管帐户上有一个内置应用程序,该应用程序具有InMotion Hosting,可进行一键式数据库备份-因此,在本地安装的Blog版本中也具有相同功能确实非常好。

对我来说,测试这种“轻量级" Web服务器服务是否完整的最快方法是在本地Web服务器安装之上运行WordPress安装脚本。我认为,如果可以实现这一目标,那么它几乎可以在任何基于PHP的博客上运行。

So, using the Uniform Server app, I launched phpMyAdmin (I didn’t have to figure out where the tool was located), and created a test MySQL database table with a new user. Finally, I copied down the latest version of WordPress, edited the config.php file with the db name and user, and then ran the install script from http://localhost/wp-admin/install.php.

安装脚本在本地Windows Web服务器上运行时没有任何毛刺。很好!

The bottom line is that after running all of these tests, I’ve decided to switch from using XAMPP to using Uniform Server instead. It’s just easier and faster to set up and configure.

您是否尝试过XAMPP和Uniform Server?你喜欢哪个?您是否知道其他任何运行更好的轻量级Web服务器?在下面的评论部分中分享您的想法。

通过Shutterstock的Web服务器图像

标签: Web开发 Web服务器 网站管理员工具