Posts

Showing posts from July, 2018

Heroku tutorials, definitions and useful commands

I followed the  PHP  and  Python  Heroku tutorials from their official website. While doing so, I saved some notes that might help you in installing the required software for using Heroku locally on your machine. These notes might assist you if you find yourself blocked while following one of the two tutorials because of an error message for example. Let's get started! NOTE:  the following notes make use of PHP 7.2.7, Python 3.6.4, Composer 1.6.5, and Heroku CLI 7.7.7 Contents 1. Notes for Tutorial 1: Getting Started on Heroku with PHP      1.1  Prerequisites      1.2 Install Composer (Linux/Unix/macOS)      1.3  Install PHP dependencies locally 2. Notes for Tutorial 2: Getting Started on Heroku with Python      2.1 Prerequisites      2.2  Install Python dependencies locally      2.3  Postgres issue 1: No manual entry for psql [macOS]      2.4  Postgres issue 2: could not connect to Postgres database 3. Important Heroku definitions 4. Heroku commands     4.1 Import

Install the MAMP (Mac, Apache, MySQL, PHP) stack

Image
There are two ways that you could install ( freely ) the whole MAMP stack: installing the MAMP (version 4.5) software bundle is the easiest way since it is a one-click-solution for setting up a personal webserver install each components (Apache, MySQL, and PHP) separately. This second method consists in installing Apache and PHP with Homebrew, and MySQL with the  package Installer . It is the hardest method but it enables you more control over the installation process, e.g you can install specific versions of each components, or install extra PHP extensions. NOTE:  MAMP 4.5, Apache 2.4.33, MySQL 8.0.11, PHP 7.2.7, and phpMyAdmin 4.8.2 are installed in the following tutorial Contents 1. Method 1: install the MAMP software bundle 2. Method 2: install each components (Apache, MySQL, and PHP) separately      2.1 Apache+PHP           2.1.1 Install Apache+PHP           2.1.2  Change Apache's default ports           2.1.3  Start the Apache server           2.1