The phpinfo() function is disabled in the shared hosting service due to a security vulnerability in PHP 5.3: CVE-2014-4721. phpinfo() outputs information about PHP’s configuration, such as the values of PHP directives, loaded extensions and environment variables. Even though phpinfo() is disabled, you can still find that information using other . . . Read more
At the moment we do not support FastCGI on shared hosting although it is an option you can choose in Plesk. This is because the Apache configuration we use to allow Shared Hosting clients to edit php.ini settings through their .htaccess file. With our Apache configuration, the speed gains a . . . Read more
If you want to use Assetic with LESS support in shared hosting or in a server without node.js you might want to try lessphp. Note: The installation is quite simple. Add lessphp to your Composer dependencies (php composer.phar require oyejorge/less.php) Update your Symfony configuration (usually app/config/config.yml): assetic: filters: cssrewrite: ~ . . . Read more
The cron task runs in a different environment that the shell access does, and this might provoke an error related to the project paths. This is why you have to set the full path for the symfony command, just as the cron sees it. php /var/www/vhosts/example.com/symfony_projects/myProject/symfomy my:task Make sure you . . . Read more
If you use PHP in your website, many times you may get a blank page or something does not work properly. In these cases, it helps to look at the errors generated by PHP. On ServerGrove servers, display_errors is turned off for security purposes (so errors are not sent to . . . Read more
In order to make your PHP application (including Symfony and Zend Framework) aware of your time zone, set the date.timezone php configuration variable in a .htaccess file, like this: Inside an .htaccess file: php_value date.timezone America/New_York From Plesk, you can create and edit this file from the File Manager located . . . Read more
The php.ini files are not available to shared hosting users, however, you can overwrite any of the directives using the .htaccess file. Directions to change PHP configuration directives by using Apache’s .htaccess files: http://www.php.net/manual/en/configuration.changes.php http://httpd.apache.org/docs/1.3/howto/htaccess.html Reditect generator: http://www.htaccessredirect.net/
To enable/disable safe_mode, go to your account control panel, under Setup for the domain.
To increase the Max upload size for your php applications add this to your .htaccess file: <IfModule mod_php5.c> php_value upload_max_filesize 25M php_value post_max_size 25M php_value max_execution_time 800 </IfModule> NOTE: 25 M is 25 megabytes and 800 is 800 seconds.
In this case you need to change the permissions of the symfony script file by running: chmod u+x symfony Or you can run it with: php symfony cc