Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I tried this on a clean install of Sylius on my Bluehost server and got it to work.</p> <p>I had previously installed the <code>intl</code> extension on my BlueHost server following <a href="https://my.bluehost.com/cgi/help/534" rel="nofollow">https://my.bluehost.com/cgi/help/534</a></p> <p>The <code>intl</code> extension is not required. See below. (I was attempting to install it before I realized I didn't need it)</p> <p>After installing the extension, phpinfo() said the version of ICU was 4.2.</p> <p>Note: on BlueHost you have to use <code>php-cli</code> instead of <code>php</code> to run php scripts from the command line</p> <p>To install Sylius I ran:</p> <pre><code>wget http://getcomposer.org/composer.phar php-cli composer.phar create-project sylius/sylius -s dev </code></pre> <p>When running create-project, I recieved the error:</p> <pre><code>Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for symfony/icu 1.2.x-dev -&gt; satisfiable by symfony/icu[1.2.x-dev]. - symfony/icu 1.2.x-dev requires lib-icu &gt;=4.4 -&gt; the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. Problem 2 - symfony/icu 1.2.x-dev requires lib-icu &gt;=4.4 -&gt; the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - symfony/intl 2.3.x-dev requires symfony/icu &gt;=1.0-RC,&lt;2.0 -&gt; satisfiable by symfony/icu[1.2.x-dev]. - Installation request for symfony/intl 2.3.x-dev -&gt; satisfiable by symfony/intl[2.3.x-dev]. </code></pre> <p>I then used <code>cd sylius</code> to move into the new directory made from the partial project install.</p> <p>From the section on <a href="http://symfony.com/doc/current/components/intl.html" rel="nofollow">http://symfony.com/doc/current/components/intl.html</a> about ICU and deployment problems I added <code>"symfony/icu": "1.1.*",</code> (or add <code>"symfony/icu": "1.0.*",</code> if you do not have the <code>intl</code> extension installed) to the require section of composer.json</p> <p>I then ran <code>php-cli composer.phar update</code> to get all the dependencies which takes a while (make sure you reference composer.phar correctly as it was downloaded into the parent directory)</p> <p>After all the packages were downloaded, it asked for config parameters such as Database info</p> <p>Then I ran <code>php-cli app/console sylius:install</code></p> <p>I ran <code>php-cli app/console doctrine:fixtures:load</code> and recieved the error:</p> <pre><code>[RuntimeException] The country resource bundle could not be loaded for locale "en" </code></pre> <p>From info at <a href="https://github.com/symfony/symfony/issues/5279#issuecomment-12477297" rel="nofollow">https://github.com/symfony/symfony/issues/5279#issuecomment-12477297</a> and <a href="https://github.com/kbsali/sf2-icu" rel="nofollow">https://github.com/kbsali/sf2-icu</a> I ran</p> <pre><code>wget https://github.com/kbsali/sf2-icu/tarball/master -O sf2-icu.tgz tar xzvf sf2-icu.tgz mv kbsali-sf2-icu-XXXX/4.2 vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/ rm -rf kbsali-sf2-icu-XXXX sf2-icu.tgz </code></pre> <p>and then edited <code>vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php</code> and changed </p> <pre><code>const ICU_DATA_VERSION = '49'; </code></pre> <p>to</p> <pre><code>const ICU_DATA_VERSION = '4.2'; </code></pre> <p>I ran <code>php-cli app/console doctrine:fixtures:load</code> again and loaded all of the Data Fixures until LoadOrdersData failed with the error:</p> <pre><code>[ErrorException] Warning: array_keys() expects parameter 1 to be array, object given in /home5/ozzieorc/public_html/sylius_clean/sylius/vendor/fzaninotto/faker/src/Faker/Provider/Base.php line 127 </code></pre> <p>Then made the changes described at <a href="https://github.com/Sylius/Sylius/pull/216/files" rel="nofollow">https://github.com/Sylius/Sylius/pull/216/files</a> - hopefully this becomes part of the master branch and doesn't have to be changed when installing sylius</p> <p>and ran <code>php-cli app/console doctrine:fixtures:load</code> a third time</p> <p>I added my IP to the array of valid IP addresses in <code>web/app_dev.php</code> so I can run app_dev.php remotely from the BlueHost servers</p> <p>In your browser you can go to <code>web/app_dev.php</code> and login to the admin area with</p> <pre><code>Username: sylius@example.com Password: sylius </code></pre> <p>as the page suggests</p> <p>Hopefully this helps anyone having problems with installing Sylius. It took me a while to figure it out. Let me know if there are any better ways of going about this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload