OSX 上的 Git HTML 5 演示


Git HTML 5 demo on OSX

我对Web开发非常陌生,想在我的Mac上运行一个Github项目(https://github.com/remy/html5demos)。

我已经在我的Mac上下载了该项目,并困惑如何运行它。需要来自Stackoverflow所有有才华的人的帮助。

使用 php 的演示。不幸的是,安装在OSX上的apache(假设你在Snow Leopard上)默认情况下没有启用php,你需要一些管理员编辑才能启用它。

因此,首先将解压缩的文件夹remy_something移动到/Library/WebServer/Documents中,并将其重命名为简单的名称,例如"remy"。(最终路径/Library/WebServer/Documents/remy)

在"系统偏好设置"中启用 Web 共享

将浏览器指向 http://localhost/remy/index.php

if you get an rendered page - you're done, and can start playing...
if you get an error - something is terrible ;(
if you get a page where is the 1st line <?php - you're on good way - you need enable php.

要在OSX的apache中启用php,您应该阅读例如:http://www.perfectline.ee/blog/how-to-setup-apache-and-php-on-mac-os-x-snow-leopard 或您可以找到的任何其他指南。

启用 PHP 并重新启动 Apache (禁用/启用 Web 共享)后,您可以再次检查页面...