2016-01-22 181 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 :-) 再次感谢!