I'm trying to run Symfony PHP application on windows using PHP inbuilt server or Apache2 server. Symfony version is 2.0.10, PHP version is 5.6.28.
When I'm using Apache server pointed to the Symfony application web directory, opening site in browser just lists directory content, instead of running the application. When I use PHP inbuilt server started at the same location ( web directory of the project folder ) opening in browser site root results in 404 resource not found error, so the Symfony application is not started. When I try to start symfony application using console command php app/console server:run, error appears, saying that server:start command doesn't exist. I couldn't make Symfony homepage to show (means to start the app).
the Apache2 httpd.conf file content is:
ServerRoot "c:/Apache24"
Listen 80
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule php5_module C:/PHP/php5apache2_4.dll
<IfModule php5_module>
DirectoryIndex index.html index.php
AddHandler application/x-httpd-php .php
PHPIniDir "C:/PHP"
</IfModule>
DocumentRoot "C:\projects\MySymfonyApp\web"
<Directory "C:\projects\MySymfonyApp\web">
DirectoryIndex app.php
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>