Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroendesloovere/ffc197fcd17f5bea32b0 to your computer and use it in GitHub Desktop.
Save jeroendesloovere/ffc197fcd17f5bea32b0 to your computer and use it in GitHub Desktop.
Sylius + MAC + MAMP PRO installation

Sylius

Usage

Installation

composer create-project -s dev sylius/sylius-standard sylius

Which installs the sylius standard in a new folder, named sylius

cd sylius
php app/console sylius:install

Running the server

app/console server:run

http://127.0.0.1:8000

Accessing the shop

In order to see the shop, access the web/app_dev.php file via your web browser.

Possible problems

How I installed INTL extension I've managed to get intl extension installed using the following instructions

How I fixed database for Mac + MAMP In your app/config/config.yml add unix_socket

doctrine:
    dbal:
        driver:   %sylius.database.driver%
        host:     %sylius.database.host%
        port:     %sylius.database.port%
        dbname:   %sylius.database.name%
        user:     %sylius.database.user%
        password: %sylius.database.password%
        charset:  UTF8
        unix_socket: "%sylius.database.unix_socket%" # only when using MAMP

And add it into your ```app/config/parameters.yml

# This file is auto-generated during the composer install
parameters:
    sylius.database.driver: pdo_mysql
    sylius.database.host: localhost # by default MAMP uses localhost
    sylius.database.port: 8888 # by default MAMP uses 8888
    sylius.database.name: sylius # your own database name you've created in MAMP phpmyadmin
    sylius.database.path: null
    sylius.database.user: root
    sylius.database.password: root # this is the default MAMP password
    sylius.database.unix_socket: /Applications/MAMP/tmp/mysql/mysql.sock # only when using MAMP

Memory limit problem Then I had a memory limit problem. schermafbeelding 2016-02-11 om 17 49 12

Which I fixed by doing:

vi /etc/php.ini

Then changed

memory_limit = 1G

Pressed esc and then ctrl-z and again ctrl-z

Then did

php app/console sylius:install
@MOL2
Copy link

MOL2 commented Jun 28, 2023

Thanks a lot

@jeroendesloovere
Copy link
Author

Glad I'd helped you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment