简体   繁体   English

在Xamp上安装Symfony时访问被拒绝?

[英]Access Denied on Install Symfony on Xamp?

I am new in Symfony and dont know how to install Symfony on my Xamp server. 我是Symfony的新手,不知道如何在Xamp服务器上安装Symfony。 In symfony webm, when i want to download it, Through this command c:> php -r "readfile(' http://symfony.com/installer ');" > symfony` 在symfony webm中,当我要下载它时,通过此命令c:> php -r "readfile(' http://symfony.com/installer ');" > symfony` c:> php -r "readfile(' http://symfony.com/installer ');" > symfony` then Access denied is occur on my cmd. c:> php -r "readfile(' http://symfony.com/installer ');" > symfony`然后访问被拒绝发生在我的cmd上。 在此处输入图片说明

I am also beginner to symfony and had a same problem. 我也是symfony的初学者,遇到了同样的问题。 I think you also need to install composer first to make it working. 我认为您还需要先安装作曲家才能使其正常运行。 I download the composer from https://getcomposer.org/download/ and then installed it. 我从https://getcomposer.org/download/下载了作曲家,然后安装了它。 After that the symfony installer command worked for me. 之后,symfony安装程序命令对我有用。 Try it and Good luck. 试试吧,祝你好运。

I just had a similar problem, it was not allowing me to download the symfony file (and displaying "Access denied") because I had a folder named Symfony . 我只是有一个类似的问题,它不允许我下载symfony文件(并显示“拒绝访问”),因为我有一个名为Symfony的文件夹。 Renaming the folder solved the project problem. 重命名文件夹解决了项目问题。

可能您无权访问c:\\目录-这是Windows 7、8,...的默认设置。创建一些文件夹(例如c:\\ symfony_project)并尝试readfile('http://symfony.com/installer');" > symfony该文件夹中的readfile('http://symfony.com/installer');" > symfony

For those who are still facing the problem, here how I solved mine. 对于那些仍然面临问题的人,这是我如何解决我的问题。 First you have to open XAMPP as administrator by clicking right click on XAMPP make sure its closed first after opening it as admin enable Apache and mysql then open shell, then head to htdocs and make sure there is composure installed and then paste the installing of symfony there. 首先,您必须以管理员身份打开XAMPP,方法是右键单击XAMPP,确保先以管理员身份打开XAMPP,然后先启用Apache和mysql,然后打开shell,然后转到htdocs,并确保已安装composure,然后粘贴symfony的安装。那里。 I hope it works after that. 我希望那以后可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM