mamp 安装php,php – 在MAMP上安装Laravel
我從
Github下載了
latest version of Laravel,解壓縮它,然后將它放在MAMP中的htdocs文件夾中. MAMP運(yùn)行PHP版本5.4.10,因此符合Laravel對PHP> = 5.3.7的要求.我嘗試使用終端來輸入以下命令來安裝composer:
curl -sS https://getcomposer.org/installer | php
并且在閱讀時遇到錯誤:
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
detect_unicode = Off
A php.ini file does not exist. You will have to create one.
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
當(dāng)我嘗試加載
http://localhost:8888/laravel/public/
在我的瀏覽器中,PHP錯誤日志顯示
05-Sep-2013 16:57:03 Europe/Berlin] PHP Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/laravel/bootstrap/../vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.10/lib/php') in /Applications/MAMP/htdocs/laravel/bootstrap/autoload.php on line 17
我覺得這個錯誤有一個相當(dāng)簡單的解決方案,但是因?yàn)槲覍aravel很新,所以我需要指出正確的方向來解決這個問題.
謝謝.
總結(jié)
以上是生活随笔為你收集整理的mamp 安装php,php – 在MAMP上安装Laravel的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一、创建数据库和管理(基础使用命令)
- 下一篇: 动态规划算法php,php算法学习之动态