All posts tagged php

PHP fatal error when installing or updating dependencies with Composer

When installing or updating dependencies with Composer it may be possible that you see a PHP fatal error like: $ composer update Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 79 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 100 This problem has been documented in Composer on issue . . . Read more

How do I install / upgrade PHP using YUM and RPM packages?

ServerGrove provides a Yum repository with the latest PHP versions packages in RPM. This makes dead simple to install and upgrade PHP. Follow these steps to setup the repository in your server and install / upgrade PHP: Setup ServerGrove repository If you have not installed the repository, download the RPM . . . Read more

How to change PHP configuration settings for a VPS

You can overwrite PHP settings in your PHP installation by creating a custom configuration file that is read by PHP, named zzz_custom.ini. This guarantees that your changes will not be removed by upgrades to the PHP installation and ensures that your changes will overwrite other values loaded by default. Inside . . . Read more

How do I install a PHP extension?

The most commonly used extensions are available in our Centos and Ubuntu repositories. To install an extension in Centos, follow these steps: $ yum install php53-soap In Ubuntu: $ apt-get install php53-soap Replace php53 with php54 for PHP 5.4 Other extensions may be installed with PECL. pecl download memcache tar . . . Read more

How to use PHP Swift mail library

We have added this library to all our servers, so now you can use it without having to upload it to the server. Here are the steps to use it: The library is located in /usr/local/php/Swift and it will kept up to date with new releases. “` require_once “Swift/lib/Swift.php”; require_once . . . Read more