2016-01-22 179 views
0

我是Symfony的新手,我無法安裝在我的MAC book pro(版本10.9.5)上。 我去了碼頭和執行該代碼(如解釋,但一個文件夾中的「交響樂」我在我的文檔創建):在Mac上安裝Symfony 2

MacBook-Pro-de-Sophie:~ sophiejarlier$ cd Documents 
MacBook-Pro-de-Sophie:Documents sophiejarlier$ sudo curl -LsS https://symfony.com/installer -o /symfony 
MacBook-Pro-de-Sophie:Documents sophiejarlier$ 

但什麼也沒有安裝,文件夾交響樂是空的......我應該安裝以前的其他事情?我迷路了...

感謝您的幫助。

回答

0

你也是新的終端。你所做的只是你在主根目錄下載了symfony安裝程序/其中主要的東西是/ var,/ usr等。

0

你忘記了安裝部分。

使用移動的symfony安裝程序(剛剛下載):

$ sudo mv /symfony /usr/local/bin/symfony 

給執行權限:

$ sudo chmod +x /usr/local/bin/symfony 

然後,進入你的網絡服務器目錄(默認/Library/WebServer/Documents)(打開終端)。
做你通過執行以下命令來安裝:

$ symfony new name_of_your_project 

你的項目是當前目錄的文件夾name_of_your_project中創建。

所有的指令都從documentation

0

感謝來了很多的幫助。 Symfony的安裝工作已經..但我現在有一些配置變化...這裏是我安裝後出現的消息:

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///usr/local/bin/symfony/src/Symfony/Installer/NewCommand.php on line 282 
✕ Symfony 3.0.1 was successfully installed but your system doesn't meet its 
technical requirements! Fix the following issues before executing 
your Symfony application: 

* date.timezone setting must be set 
    > Set the "date.timezone" setting in php.ini* (like Europe/Paris). 

After fixing these issues, re-check Symfony requirements executing this command: 

    php designerToolbox/bin/symfony_requirements 

Then, you can: 

    * Change your current directory to /Applications/MAMP/htdocs/designerToolbox 

    * Configure your application in app/config/parameters.yml file. 

    * Run your application: 
     1. Execute the php bin/console server:run command. 
     2. Browse to the http://localhost:8000 URL. 

    * Read the documentation at http://symfony.com/doc 

我設法更改時區,我的php.ini在我的地方服務器MAMP(因爲我在Mac上工作),但不知道如何在phar檔案中的NewCommand.php中執行操作。

現在我應該檢查如何將我的php文件與來自MAMP的php5.3.29鏈接。以便能夠使用symfony。不知道如何在MAC上做到這一點,將尋找它..

0

現在它的工作!我修改了文件夾/ etc中的php.ini來改變時區。現在安裝symfony ..現在要做的唯一事情就是學習symfony :-) 再次感謝!