Trabla: Install Sylius 1.0.0 e-commerce on Windows 7 localhost via XAMPP 7.1.10
( using PHP Composer, node.js , yarn )
Sylius - eCommerce PHP framework built on top of Symfony with component-based architecture and format-agnostic rendering.
Sylius e-commerce official site - http://sylius.org/
Solving:
Steps:
1. Download and install:
- XAMPP 7.1.10 for Windows
- Composer packet manager for PHP
- Node.js
- Yarn
3.Run XAMPP Control Panel
- Open php.ini
- Find memory_limit=128M change to memory_limit=512M
- Find max_execution_time=30 change to max_execution_time=600
- Find ;extension=php_intl.dll change to extension=php_intl.dll ( remove ; )
- Find ;opcache.enable=1 change to opcache.enable=1 ( remove ; )
- Add to last line zend_extension = "C:\xampp\php\ext\php_opcache.dll"
- Save and close
- Run Apache + MySQL
4. Open browser goto http://localhost/phpmyadmin/
- Click on SQL Tab
- Copy & paste following SQL script to create DB and user
CREATE DATABASE `sylius`
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'sylius-owner'@'localhost';
CREATE USER 'sylius-owner'@'127.0.0.1';
CREATE USER 'sylius-owner'@'::1';
SET PASSWORD FOR 'sylius-owner'@'localhost' = PASSWORD('sylius123');
SET PASSWORD FOR 'sylius-owner'@'127.0.0.1' = PASSWORD('sylius123');
SET PASSWORD FOR 'sylius-owner'@'::1' = PASSWORD('sylius123');
GRANT ALL PRIVILEGES ON `sylius`.* TO 'sylius-owner'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON `sylius`.* TO 'sylius-owner'@'127.0.0.1' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON `sylius`.* TO 'sylius-owner'@'::1' WITH GRANT OPTION;
- Click Go button
5. Create folder silyus in C:\xampp\htdocs
e.g. C:\xampp\htdocs\silyus
6. Run Windows CMD execute following commands
CD C:\xampp\htdocs\silyus
composer create-project sylius/sylius-standard . 1.0.0 --no-dev
...
php bin/console sylius:install -e prod --no-debug
...
yarn install
...
yarn run gulp
7. Change DocumentRoot in Apache config
- stop Apache
- open Apache->httpd.conf
- find
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
change to
DocumentRoot "C:/xampp/htdocs/sylius/web"
<Directory "C:/xampp/htdocs/sylius/web">
- save and close
- start Apache
Enjoy Sylius 1.0.0 e-commerce on localhost !!!
P.S. Admin UrL - http://localhost/admin/login
No comments:
Post a Comment