Designinglives

16/11/14 AMPPS , error

Unable to change PHP version in AMPPS

Lately I switched from MAMP to AMPPS but I’m still a bit unsure if that was the right move. I got a bit tired with the MAMP interface and not having an easy softaculous installer for testing, though things worked perfect. Today I finally was able to solve a problem I was having with AMPPS for the last few weeks, I was unable to change the PHP version although all settings were fine. Typing this inside the terminal temporarily fixes it:

cd /Applications/AMPPS 

./Ampps.app/Contents/MacOS/Ampps
0 likes no responses
14/11/14 error , laravel 5

Custom ‘Not found HTTP exception’

When you start doing routing and add some rules, in the beginning it’s easy to make a lot of mistakes. Because I didn’t want others to see the output laravel throws on the screen I decided to start looking for a solution to add custom error pages. In Laravel 5 you can get this done by going into app- Http - Kernel.php.

Here you should add the following to make sure the right class is called and a Response object can be made.

use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Response;

Continue reading

0 likes no responses
14/11/14 error , homestead , laravel 5 , vagrant

Vagrant timeouts

Ever since I upgraded my virtualbox I was having issues with vagrant when I returned from standby. The pages I was trying to load kept going until they gave me a gateway timeout.

The following command seems to solve the virtualbox issue and will ensure your vagrant box will be running better then ever after a return from standby!

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist

Continue reading

0 likes no responses
11/11/14 error , installation , laravel 5

Mcrypt PHP extension required

During my Laravel install I had some issues using the terminal, they all turned out to be linked to one issue:

Mcrypt PHP extension required

To solve this we need to open the bashrc file again which we also used during our install. Add the following line at the bottom of the script, this will ensure the use of AMPPS php, you can also use the MAMP path if wanted. Save the file (ctrl+x) and make sure the file is loaded again.

nano ~/.bashrc
export PATH="/Applications/AMPPS/php/bin:$PATH"
source ~/.bashrc

Continue reading

0 likes no responses