我是Symfony的新手,我无法安装在我的MAC book pro(版本10.9.5)上。 我去了终端并执行了这段代码(正如我在MyDocuments中创建的“symphony”文件夹中所解释的那样):
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$
但是没有安装,文件夹symphony是空的......我应该先安装别的吗?我迷路了...
感谢您的帮助。
答案 0 :(得分:0)
你也是终端新手。您所做的只是您在主根目录/
中下载了symfony安装程序,其中包括/ var,/ usr等主要内容。
答案 1 :(得分: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
答案 2 :(得分: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
我设法在我的本地服务器MAMP中更改了我的php.ini中的时区(因为我在Mac上工作),但是不知道如何在phar档案中使用这个NewCommand.php。
现在我应该检查如何将我的php文件与来自MAMP的php5.3.29链接..以便能够使用symfony。不知道如何在MAC上做这件事,会寻找它..
答案 3 :(得分:0)
现在它有效!我在文件夹/ etc中修改了php.ini来更改时区。现在已经安装了symfony ..现在唯一要做的就是学习symfony :-) 再次感谢!