Symfony2 on a Shared plan

apps

#1

Hello, guys!

I’m looking forward to buy a shared plan to host one of my Symfony2 project but I can’t find any reliable information about the configuration.

Has anyone tried to run a Symfony2 project on a shared hosting?
Are all the “needed” and “recommended” extensions available?
What is the exact PHP version?

Could someone install a sample project and run the “config check” script provided with the framework?

Thanks a lot in advance!


#2

You might have better luck with a link to what you want someone to try. Sure it’s a simple google, but I would be more inclined to help if I didn’t have to google and assume that I found the same thing you’re talking about.


#3

You’re totally right. I wrongly assumed that everyone would know Symfony :slight_smile:

It’s a PHP full stack framework:



#4

Here ya go:

Note you can install your own php.ini

[servername]$ php-5.3 app/check.php
********************************
*                              *
*  Symfony requirements check  *
*                              *
********************************

php.ini used by PHP: /etc/php53/php.ini

** WARNING **
*  The PHP CLI can use a different php.ini file
*  than the one used with your web server.
*  If this is the case, please ALSO launch this
*  utility from your web server.
** WARNING **

** Mandatory requirements **

  OK        Checking that PHP version is at least 5.3.2 (5.3.5 installed)
  OK        Checking that the "date.timezone" setting is set
  OK        Checking that app/cache/ directory is writable
  OK        Checking that the app/logs/ directory is writable
  OK        Checking that the json_encode() is available
  OK        Checking that the SQLite3 or PDO_SQLite extension is available
  OK        Checking that the session_start() is available
  OK        Checking that the ctype_alpha() is available
  OK        Checking that the token_get_all() is available
  OK        Checking that the APC version is at least 3.0.17

** Optional checks **

  OK        Checking that the PHP-XML module is installed
  OK        Checking that the token_get_all() function is available
  OK        Checking that the mb_strlen() function is available
  OK        Checking that the iconv() function is available
  OK        Checking that the utf8_decode() is available
  OK        Checking that the posix_isatty() is available


[[WARNING]] Checking that the intl extension is available: FAILED
            *** Install and enable the intl extension (used for validators) ***


[[WARNING]] Checking that a PHP accelerator is installed: FAILED
            *** Install a PHP accelerator like APC (highly recommended) ***


[[WARNING]] Checking that php.ini has short_open_tag set to off: FAILED
            *** Set short_open_tag to off in php.ini ***
  OK        Checking that php.ini has magic_quotes_gpc set to off
  OK        Checking that php.ini has register_globals set to off
  OK        Checking that php.ini has session.auto_start set to off

** Optional checks (Doctrine) **

  OK        Checking that PDO is installed
  OK        Checking that PDO has some drivers installed: sqlite, mysql, sqlite2
[servername]$

#5

Wow, perfect answer. Thanks a lot!

What about the “intl” extension ? Is it available ? Is it possible to install it on a shared plan ?

Thanks a lot for this fast and complete answer !