简体   繁体   English

Symfony-在CentOS服务器上安装

[英]Symfony - install on a CentOS server

I'm trying to install Symfony for the first time, following the official guide . 按照官方指南 ,我正在尝试首次安装Symfony。 So, installing the symfony installer went smoothly, then running symfony new my_project_name creates the folder under /home/myuser/public_html/my_project_name . 因此,顺利安装symfony安装程序,然后运行symfony new my_project_name/home/myuser/public_html/my_project_name下创建了文件夹。 Then, trying to open mydomain.com results in a 403 Forbidden page. 然后,尝试打开mydomain.com导致进入403 Forbidden页面。 If I try to open mydomain.com/my_project_name it's also a 403 Forbidden . 如果我尝试打开mydomain.com/my_project_name那么它也是403 Forbidden

Looking in the Apache configuration, I see user apache and group apache. 在Apache配置中,我看到了用户apache和组apache。 So I'm trying to chown the whole project folder to apache.apache - doesn't help. 所以我想chown整个项目文件夹apache.apache -没有帮助。

Tried to run composer install or composer update - doesn't help either. 试图运行composer installcomposer update -均无济于事。

Any help would be appreciated. 任何帮助,将不胜感激。

You can follow the official guide on how to setup the web server for apache / nginx : https://symfony.com/doc/current/setup/web_server_configuration.html 您可以按照官方指南了解如何为apache / nginx设置Web服务器: https : //symfony.com/doc/current/setup/web_server_configuration.html

You might be missing something in your virtualhost. 您可能在虚拟主机中缺少某些内容。

The "no input file specified" seems to be related to an .htaccess issue. “未指定输入文件”似乎与.htaccess问题有关。 Related topic : No input file specified - apache and php-fastcgi 相关主题:未指定输入文件-apache和php-fastcgi

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

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