Installing and Configuring Sf2 using Sf Installer


Melakukan instalasi dan Konfigurasi Symfony2 dengan Symfony Installer :

  1. kita download dan tempatkan symfony installer di tempat yang baik  :

    sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony

    *Beri akses untuk di eksekusi sebagai program :

    sudo chmod a+x /usr/local/bin/symfony

    *sekarang kita bisa execute symfony dengan contoh :

    yusuf@yusuf-VirtualBox:/var/www/html$ symfony

  2. Nah sekarang symfony installer kan sudah berfungsi, sekarang tinggal cara menggunaknnya :

    symfony new learning2

    *Outputnya :

    Downloading Symfony…

    4.98 MB/4.98 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%

    Preparing project…

    ✕ Symfony 2.7.3 was successfully installed but your system doesn’t meet its
    technical requirements! Fix the following issues before executing
    your Symfony application:

    * date.timezone setting must be set
    > Set the “date.timezone” setting in php.ini* (like Europe/Paris).

    After fixing these issues, re-check Symfony requirements executing this command:

    php learning2/app/check.php

    Then, you can:

    * Change your current directory to /var/www/html/learning/learning2

    * Configure your application in app/config/parameters.yml file.

    * Run your application:
    1. Execute the php app/console server:run command.
    2. Browse to the http://localhost:8000 URL.

    * Read the documentation at http://symfony.com/doc

  3. Nyalakan server :

    yusuf@yusuf-VirtualBox:/var/www/html/learning/learning2$ ./app/console server:run
    Server running on http://127.0.0.1:8000

    Quit the server with CONTROL-C.

Kembali ke daftar isi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s