> For the complete documentation index, see [llms.txt](https://tony915.gitbook.io/laravel-4-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tony915.gitbook.io/laravel-4-2/intro_laravel/before_begin.md).

# 開始之前

由於 Laravel 有用到特定的 PHP 功能，所以開發時必須要注意到使用的環境及相關的設定。

## 伺服器環境

1. PHP 版本必須 >= 5.4
2. Apache 啟用 MCrypt PHP Extension

## 目錄權限

Laravel 目錄中的 app/storage 目錄必須讓伺服器有存取權限。

可以下指令設定

```
chmod -R 755 app/storage
```

或比較安全的做法

```
chown -R apache:apache app/storage
```

只針對 apache 使用者／群組做存取授權。

## 美化網址

Laravel 框架內含 public/.htaccess 檔案，可以讓網址不要出現像是 index.php 等的結尾。如果你使用 Apache 伺服器，記得必須開啟 mod\_rewrite 模組。
