All posts in PHP and Frameworks
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
If you are setting permissions with the setfacl command when using Symfony or any other PHP framework that requires write access to certain directories or files, and you get the following error:
|
setfacl: Option -m: Invalid argument near character 3 |
This usually means that the user provided in the command does not exist, for example:
|
setfacl -R -m u:deployer:rwX -m u:apache:rwX /path |
In . . . Read more
The most commonly used extensions are available in our CentOS, Ubuntu and Debian repositories. CentOS To install an extension in CentOS, just execute the following command:
|
yum install php55-readline |
Change php55-imap for the PHP extension that you need. To search for extensions:
Ubuntu and Debian The process is basically the same. . . . Read more
ServerGrove provides a APT repository with the latest PHP versions packages in Deb format. This makes dead simple to install and upgrade PHP in Ubuntu 12 systems. Follow these steps to setup the repository in your server and install/upgrade PHP: Setup ServerGrove repository 1) Add the repository to your server . . . Read more
APC is not available in PHP 5.5, and it’s been replaced by Zend OPcache, which is included and enabled by default in PHP. Zend OPCache provides increased performance over APC, but it does not include user space caching. If you require this, consider installing APCu Since it’s now part of . . . Read more
To configure Symfony2 to send email you need to use transport: mail http://symfony.com/doc/master/cookbook/email/email.html#configuration Go to the configuration file. Search for swiftmailer and change the transport. swiftmailer: transport: mail
View the original article on our blog, HERE What is Maestro? Maestro is a tool ServerGrove built to help the deployment of symfony projects on shared hosting accounts. In a few simple steps you will have your project up and running. Maestro will only work on ServerGrove shared hosting accounts. . . . Read more
Add this to your .htaccess file: BEGIN WordPress RewriteEngine On RewriteBase /subdirectory/ RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /subdirectory/index.php [L] END WordPress
If your web application uses assetic and you require to use filters with it, you would have to find a way to do so outside the server. Our Shared Hosting service doesn’t provide the necessary tools for the most used filters, for example Java for the Yui Compressor filter or . . . Read more
If you get an error when trying to install packages, consider the following options: 1) Try downloading the pecl package and then compiling it, following steps like these: $ cd /usr/src $ pecl download apc $ tar zxf apc-1.0.tgz $ cd apc-1.0 $ phpize $ ./configure $ make && make . . . Read more