php - sonata installation on windows xampp -
php - sonata installation on windows xampp -
i want install sonata on windows 8 xampp.
i utilize comand php composer.phar create-project sonata-project/sandbox:2.3.x-dev , after download error. found error me 2 lines:
in bin\load.data.php
rm -rf ./app/cache/*
i can comment that
-d memory_limit=1024m -d max_execution_time=600 ./app/console doctrine:fixtures:load --verbose --env=dev --no-debug
if increment memory limit 1024m , time 600 in php.ini
, remove part, still error:
executing : c:\users\felek\desktop\xampp\php\php.exe ./app/console doctrine:fix tures:load --verbose --env=dev --no-debug careful, database purged. want go on y/n ? [runtimeexception] aborted exception trace: () @ c:\users\felek\desktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony \src\symfony\component\console\helper\dialoghelper.php:115 symfony\component\console\helper\dialoghelper->ask() @ c:\users\felek\desktop\ xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\symfony\component\console \helper\dialoghelper.php:242 symfony\component\console\helper\dialoghelper->askconfirmation() @ c:\users\fe lek\desktop\xampp\htdocs\sonata\sandbox\vendor\doctrine\doctrine-fixtures-bundle \doctrine\bundle\fixturesbundle\command\loaddatafixturesdoctrinecommand.php:73 doctrine\bundle\fixturesbundle\command\loaddatafixturesdoctrinecommand->execute () @ c:\users\felek\desktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\ src\symfony\component\console\command\command.php:252 symfony\component\console\command\command->run() @ c:\users\felek\desktop\xamp p\htdocs\sonata\sandbox\vendor\symfony\symfony\src\symfony\component\console\app lication.php:896 symfony\component\console\application->doruncommand() @ c:\users\felek\desktop \xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\symfony\component\consol e\application.php:193 symfony\component\console\application->dorun() @ c:\users\felek\desktop\xampp\ htdocs\sonata\sandbox\vendor\symfony\symfony\src\symfony\bundle\frameworkbundle\ console\application.php:96 symfony\bundle\frameworkbundle\console\application->dorun() @ c:\users\felek\d esktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\symfony\component\ console\application.php:124 symfony\component\console\application->run() @ c:\users\felek\desktop\xampp\ht docs\sonata\sandbox\app\console:34 doctrine:fixtures:load [--fixtures[="..."]] [--append] [--em="..."] [--purge-wit h-truncate] error occurs when running command!
i tried remove , install database 1 time again without result. can solve error?
i managed find solution. first opened script , alter line:
$bin . ' -d memory_limit=1024m -d max_execution_time=600 ./app/console doctrine:fixtures:load --verbose -env=dev --no-debug',
to:
$bin . ' -d memory_limit=1024m -d max_execution_time=600 ./app/console doctrine:fixtures:load --verbose --no-interaction --env=dev --no-debug',
adding --no-interaction fixed problem.
i tried running
php -d memory_limit=1024m -d max_execution_time=600 ./app/console doctrine:fixtures:load --verbose -env=dev --no-debug
in console first , got errors hint missing fileinfo extension. doesn't have case worth checking.
i had uncomment extension=php_fileinfo.dll in php.ini file. ( 1 in same folder php.exe, not apache one).
php symfony2 xampp sonata
Comments
Post a Comment