Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
December 23, 2014
Chris
Bootstrap, LAMP, Local Development, mini, PHP
1

Install MINI in 30 seconds inside Ubuntu 14.04 LTS

PreviousNext

This is a guideline on how to install MINI – an extremely simple naked PHP application – more or less automatically inside Ubuntu 14.04 LTS with just some very simple copy&paste-commands on the command line. The best thing: This will also automatically install Apache, PHP, MySQL, PHPMyAdmin, git and Composer, set a password in MySQL and PHPMyadmin and even inside the application code, download the Composer-dependencies, activate mod_rewrite and edit the Apache settings, download the script itself from GitHub and run the demo SQL statements (for demo data). This is 100% automatic (needs 30 seconds of work and +/- 5 minutes of automaticly running tasks), you’ll end up with a fully running installation of MINI. You can thank me later :)

Ah, and disclaimer: This is just the most simple possible setup, made for a quick preview and easy-to-start-with development. Here we use weak passwords, root access etc., so keep that in mind.

1. Log into your server. This script is made for a real, fresh and naked server running Ubuntu 14.04 LTS, not for 12.04, not for CentOS, not for shared hosting. Please don’t write comments and support requests saying “this does not work on my Godaddy hosting”. A developer dies every time somebody uses shared hosting or outdated linux versions.

2. Download the installer script:

wget https://raw.githubusercontent.com/panique/mini/master/_vagrant/bootstrap.sh

3. Make the script executeable:

chmod +x bootstrap.sh

4. Run the script, make sure you’re running it as sudo (otherwise you’ll have a broken installation):

sudo ./bootstrap.sh

Then the installer will run for some minutes, downloading and installing all the stuff, setting the passwords etc. When the script has finally stopped you’ll see “Voila!” on your shell.

The password for the MySQL root user and PHPMyAdmin is “12345678”.

Check your IP in the browser and you’ll (hopefully) see a running installation of MINI:

MINI

This article was written quite a while ago (7 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • New project: Building a naked PHP skeleton / boilerplate application from scratchNew project: Building a naked PHP skeleton / boilerplate application from scratch
  • MINI2, an extremely simple barebone PHP application on top of SlimMINI2, an extremely simple barebone PHP application on top of Slim
  • MINI, an extremely simple barebone PHP applicationMINI, an extremely simple barebone PHP application
  • The first micro framework written in Hack is there: hack-mvc !The first micro framework written in Hack is there: hack-mvc !
  • Preview-release of (my) “php-mvc” project (a simple php mvc barebone)Preview-release of (my) “php-mvc” project (a simple php mvc barebone)
  • SensioLabs, creator of Symfony and Silex PHP frameworks, gets $7 million capitalSensioLabs, creator of Symfony and Silex PHP frameworks, gets $7 million capital
  • PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)
  • What’s new in PHPStorm 9What’s new in PHPStorm 9
  • Experimenting with HHVM at Etsy (Link)Experimenting with HHVM at Etsy (Link)
frameworkMVCPHP
Share this

1 Comment

  • Gagan
    April 8, 2016 8:03 am

    Hi,

    I was thinking to use your script and found it very clean to use for small scale websites. But i want to know that are we not allowing to have different model class for every page that we make? If we are writing functions in Model class itself then is it a good design to follow? Or you can suggest me better way to handle it as i found your MINI extremely useful.

    Reply

Leave A Comment Cancel reply

php

Awesome list of Design Patterns with PHP code examples

Probably one of the most useful GitHub repositories ever: Dominik Liebler has published a well-reseached and well-written (PSR coding guidelines

gamescom 2014 trailers

GAMESCOM 2014: Awesome Next-Gen ingame graphics

Currently Germany’s biggest conference of the gaming industry is running, and everyday awesome stuff reaches the public. Excellent in-game sequences

vagrant

How to setup a local server (in a virtual machine) with Vagrant in PHPStorm

This is part 1 of a series on How to get a modern workflow in PHP development. Part 2 is

shadow dom

A quick video introduction into Shadow-DOM, the game-changing DOM-subtree-technology

Awesome talk by Eric Bidelman (of the Chrome team): Shadow-DOM was often heard in 2013 and seem to exist for

O’Reilly’s Learning JavaScript Design Patterns by Addy Osmani for free

Addy Osmani has published his excellent book Learning JavaScript Design Patterns for free! You can read the entire book including

css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

Soundcloud’s “VP of Engineering” about using SSDs

Excellent [german] statement from Alexander Grosse (Soundcloud’s Vice President of Engineering) about using SSDs for the main application (music data

Adobe releases Firebug-like developer tools to edit and extract PSDs

A big step in frontend-development: According to this presentation on Adobe Max 2014 Adobe has just released a very interesting

Support FLARUM, the future of PHP forum scripts (with some dollars on Kickstarter)

PHP forum scripts are horrible, let’s face it. Nearly everything that’s available is hard to install, hard to handle, hard

php

How to install sqlite driver for PHP in Ubuntu & Debian

It’s easy to install sqlite (for usage with PHP): sudo apt-get install php5-sqlite This will also restart apache (on modern

1/4

Categories

Search

php-phalcon-logo
Which PHP-framework to learn in 2014 ? PHALCON, by far the fastest ever!
O’Reilly sells EVERY ebook for -50% right now!
phpstorm-8
PHPStorm 8 (early access version) released – for free
php
PHP.net hacked, but most things are fine again
php
PHP 5.6.0 RC1 is available
[Link] Improving Smashing Magazine’s Performance: A Case Study
composer
Composer problems ? Try full reset !
phpstorm 7.0 php
How to debug code on a remote server (or in vagrant box) with PHPStorm
php
How to install PHP curl extension (in 5 seconds)
Compare 250+ cloud server plans with Cloud Cost Calculator
(Links) How to fix an extremely slow Symfony inside a Vagrant box
phpstorm 7.0 php
How to install GitHub’s, NetBeans’s and Sublime2’s syntax highlighting code colours theme in PHPStorm 6/7
phpstorm-github-code-color-syntax-theme
Get Github’s syntax highlighting colors in PHPStorm
This is an experimental advertisement
php
How to install the mcrypt php extension (to use Laravel 4)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT