A Bridge to the Cloud...

Oracle GitHub Vagrant Boxes: Oracle Linux 7 LAMP stack, ready-to-run!

Simon Coter
Senior Manager, Oracle Linux and Virtualization Product Management

By Googling you can find different how-to's to build, install and configure a LAMP stack on different Linux distributions.

Most of you should already know but LAMP is an acronym that means Linux, Apache, MySQL and PHP (or Perl, or Python); on this kind of stack there are so many solution(s) built on-top and, maybe, the most famous one is Wikipedia.

Today, I'm going to share with you a ready-to-run Vagrant Box, based on Oracle Linux 7, Software Collections 3.0 and MySQL 5.7 Community Edition.

The huge difference between this LAMP stack and others is that everything is configured, ready-to-run and updated to the latest releases; so, you do not have to worry about the configuration of OL7, Yum-Channels and installation of different pieces of software; this vagrant box will manage everything!!!

At the end, thanks to the configuration of "Software Collection Library 3.0" you'll have:

  • Apache Web Server 2.4.27
  • MySQL 5.7.21
  • PHP 7.1.8

Obviously, minor releases could change in the time due to the forced installation of latest packages available.

Once booted, your VirtualBox virtual-machine will be automatically configured to expose the Apache/PHP service to the host operating system and a demo web-page is already there to verify that everything correctly works; so, by your host preferred browser just open "http://localhost:8080/info.php":

It's our intention to continue to introduce further solutions on this GitHub repository, solutions that could help Developers to get ready-to-run environments with Oracle or non-Oracle products on-top.

Actually you can find:

  • Oracle Linux 6 - OS
  • Oracle Linux 7 - OS
  • Oracle Linux 7 with Oracle Database (XE)
  • Oracle Linux 7 with Oracle Database (EE)
  • Oracle Linux 7 with DockerEngine 17.12.0
  • Oracle Linux 7 with Kubernetes 1.9.1

Further information:

Feel free to leave your comments on this blog entry!

Join the discussion

Comments ( 8 )
  • zok Saturday, August 4, 2018
    how can I download image for Oracle VM Virtual Box
  • Simon Saturday, August 4, 2018
    Hi Zok.

    you can follow the instructions available at:


  • zok Sunday, August 5, 2018
    is there any help where to put my webpage, how to connect via ftp from host computer, etc..
  • Simon Sunday, August 5, 2018
    Hi Zok,

    the webpage(s) should be saved under the path:

    /opt/rh/httpd24/root/var/www/html/ within the VM.

    That said, if you need to transfer files from the host to the guest (or vice-versa) you can use "VirtualBox shared folders": Vagrant automatically configure the folder where you have the host "Vagrantfile" as shared folder for your VM; so the same directory is available within the VM under the path "/vagrant".

  • Ricl Thursday, October 18, 2018
    Box comes up, but what user/passwords are valid?
  • Simon Thursday, October 18, 2018
    Hi Ricl,

    to get access to the running VM you just have to execute "vagrant ssh"; once done you can also get root access by "sudo".

  • daniel Wednesday, November 14, 2018
    Hi man, do you know how can one get the username/psw for mysql login? I was trying to log in with workbench via ssh.
    PS: tried vagrant/vagrant, root/root and all the combos between the two
  • Simon Wednesday, November 14, 2018
    Hi Daniel,

    you can get access to your vm by executing:

    "vagrant ssh"

    once in, you can get super-user privileges with:

    "sudo su -"

    and starting from there you can do whatever you want.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.