🔔 🔔 🔔 Duyuru: 24. Yılımıza özel indirimler sizleri bekliyor ! Kampanya Kodu : TDATA2024 | Detaylı bilgi için tıklayınız.

Symfony installation and configuration


Symfony installation and configuration


Symfony is a PHP Web Development Framework.

Symfony is a framework, a set of tools and a development methodology.

Beyond the tools, Symfony is also a Philosophy and a Community.

 

 

First, check that you have installed and configured a Web server (such as Apache) with PHP 5.3.8 or higher. For more information on Symfony2 requirements, see the requirements reference.

Start by visiting the Symfony2 download page at http://symfony.com/download. On this page, you’ll see the Symfony Standard Edition, which is the main Symfony2 distribution. There are 2 ways to get your project started:

Symfony installation and Configuration

Method 1 :

Composer is a dependency management library for PHP, which you can use to download the Symfony2 Standard Edition.

curl -s https://getcomposer.org/installer | php

Composer is an executable PHAR file, which you can use to download the Standard Distribution

php composer.phar create-project symfony/framework-standard-edition <symfony install path>

Example

php composer.phar create-project symfony/framework-standard-edition /home/user/public_html/symfony

This command may take several minutes to run as Composer downloads the Standard Distribution along with all of the vendor libraries that it needs. Update database details, mailer details while this process.

Once completed,

updated your ISP ipaddress in web/config.php , web/app_dev.php in the top of remotehost
settings.

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
'your isp ip address',

browse config.php file to Configuration and Setup.

http://yourdomain.com/symfony/web/config.php

Configure your Symfony Application online or Bypass configuration and go to the Welcome page

http://yourdomain.com/symfony/web/app_dev.php/

Thats all…

Method 2 :

Download an Archive

You can also download an archive of the Standard Edition. Here, you’ll need to make two choices:

Download http://symfony.com/download either a .tgz or .zip archive – both are equivalent, download whatever you’re more comfortable using;
Download the distribution with or without vendors. If you’re planning on using more third-party libraries or bundles and managing them via Composer, you should probably download “without vendors”.

Goto your installation path

# for .tgz file
$ tar zxvf Symfony_Standard_Vendors_2.3.###.tgz

# for a .zip file
$ unzip Symfony_Standard_Vendors_2.3.###.zip

updated your ISP ipaddress in web/config.php , web/app_dev.php in the top of remotehost
settings.

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
'your isp ip address',

browse config.php file and update.

http://yourdomain.com/Symfony/web/config.php

Updating Vendors

Depending on how you downloaded Symfony, you may or may not need to update your vendors right now. But, updating your vendors is always safe, and guarantees that you have all the vendor libraries you need.

Step 1: Get Composer (The great new PHP packaging system)

curl -s http://getcomposer.org/installer | php

Make sure you download composer.phar in the same folder where the composer.json file is located (this is your Symfony project root by default).

Step 2: Install vendors

$ php composer.phar install

This command downloads all of the necessary vendor libraries – including Symfony itself – into the vendor/ directory.

 

Bu cevap yeterince yardımcı oldu mu?

Diğer Dökümanlar


  • cPanel security settings checklist

    You always use cpanel recommended Security Settings to avoid hacking and other suspicious activity. These  cPanel Server Hardening & Security tips will help prevent from hacking. cPanel...

  • sendmail Not running with correct effective GID

    Wed Sep 04 04:11:11 2014] [error] [client 11.44.33.22] sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?, It may be the problem with your sendmail binary...

  • How to enable NAT behind the cpanel ?

    Most of webhosting providers currently used NAT service for their users. When you install cPanel & WHM, the installer will detect whether your server is on a NAT-configured network. If the...

  • Unable to allocate memory for pool

    Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0 APC or Alternative PHP Cache (APC) is a free and open opcode cache for PHP. APC allows for caching of opcode generated...

  • Install FFmpeg, Mplayer, Mencoder, MP4Box, Flvtool2

    You can use the following tutorial to install ffmpeg and other video modules in your centos server. FFmpeg is an audio/video conversion tool. It includes libavcodec, the leading open source codec...