Posts Tagged ‘php’

New Relic PHP Agent Issue with Laravel 5.2

By Mark Davidson on December 23rd, 2015

Just a quick post for those of you trying out Laravel 5.2 that was released the other day.

When running `composer create-project laravel/laravel l52 –prefer-dist` I was seeing after the `php artisan clear-compiled` was run.

[BadMethodCallException]
Method after does not exist.

After the install was completed running any artisan command resulted in this error as well. Read & Comment ›››

Check out Lumen it’s Quite Illuminating

By Mark Davidson on April 14th, 2015

Lumen has landed the new PHP framework from Taylor Otwell the creator of Laravel, with the aim of the framework being to create a great framework for producing lightning fast micro-services and APIs.

This post is really just to bring Lumen to the top of my list to talk about. I’m really excited by the framework, Laravel is so amazing and Lumen opens up a whole new level of possibilities.

So in future posts I’m going to talk about the comparison of Lumen with Laravel and then the comparison of Lumen with the other two major PHP micro-frameworks Silex and Slim 3.

In the mean while if your excited to learn more I’d recommend starting with reading the project site, the associated documentation, Matt Stauffer really excellent post and the Laravel News announcement.

Posted in

apc-beta Install – Ubuntu 10.04

By Mark Davidson on December 15th, 2010

Recently I installed the beta version of apc using pecl under Ubuntu 10.04, it took a few attempts before I worked out what the required libraries where so here is my very quick guide to getting it installed and running.

To perform the install, first install the required libraries and second install of apc itself.

sudo apt-get install apache2 php5 php-pear php5-dev libpcre3-dev
sudo pecl install apc-beta

When install apc you will be asked a couple of questions on configuration options best to leave them as default if you don’t know what they do. Once the install is complete you should get output saying.

Build process completed successfully
Installing '/usr/lib/php5/20090626/apc.so'
install ok: channel://pecl.php.net/APC-3.1.6
configuration option "php_ini" is not set to php.ini location
You should add "extension=apc.so" to php.ini

Simply add the line as it says to you php.ini and job done. If you check your phpinfo page output you should see a section for apc saying ‘APC Support enabled’.

I know its a very simple process but second time I have had to spend time figuring out the required libraries and though I would save people time by posting this up.