Error configuring symfony2 web server

Asked 1 years ago, Updated 1 years ago, 74 views

http://jobeet.symfony.gr.jp/day-1-starting-up-the-project.html#symfony-2-3-2

Based on the above site, we set up a web server for the creation of the symfony2 project.
Failed to boot due to apache error.

Error: Apache shutdown unexpectedly.
17:15:36 [Apache] This may be due to a blocked port, missing dependencies, 
17:15:36 [Apache]improper privileges, a crash, or a shutdown by another method.
17:15:36 [Apache] Press the Logs button to view errors logs and check
17:15:36 [Apache] the Windows Event Viewer for more clouds
17:15:36 [Apache] If you need more help, copy and post this
17:15:36 [Apache] entire log window on the forums

The settings are as follows:

[Machine]

Windows

[apache:httpd.conf]

DocumentRoot "C:/xampp/htdocs" <Directory
 "C:/xampp/htdocs" >

[apache:httpd-vhosts.conf]

<VirtualHost*:80>
     ServerName jobet.local
     DocumentRoot/var/www/jobet/web
     DirectoryIndex app.php
     ErrorLog/var/log/apache2/jobet-error.log
     CustomLog/var/log/apache2/jobet-access.log combined
     <Directory"/var/www/jobet/web">
         AllowOverride All
         Allow from All
      </Directory></VirtualHost>

[C:\Windows\System32\drivers\etc\hosts]

127.0.0.1jobet.local←Additional

[jobet project storage location]

C:\var\www\jobeet

Does anyone know what's wrong with the above settings?
Thank you for your cooperation.

apache symfony2

2022-09-29 21:29

1 Answers

It appears to be an Apache configuration file error.Is the last </VirtualHost> missing?If you want to try Symphony, you may not want to configure a virtual host.

cd C:/xampp/htdocs
php symfony new my_project

Create a project in and access http://localhost/my_project/web/app_dev.php/app/example to see Homepage.

If you're not familiar with Apache configuration, it's common for Apache to not move due to minor misconfiguration, so you might want to cool down and work on something else during that time.


2022-09-29 21:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.