i still new to vagrant and a little confused by it. i installed a pre-configured vagrant box (this enabled me to install a zend 3 framework) . i now want to do two things.
i want to to be able to use my command line to see what packages (php, mysql etc) are installed with it. in short i want to see how its configured.
below is the vagrant file. i am able to access the php from
http://localhost:8080/ but have no idea how to access the
php files/php info or to determine whether
mysql is install. (and if mysql is not install- how to install it and make it available to my project)
@script = <<SCRIPT
# Install dependencies
apt-get update
apt-get install -y apache2 git curl php7.0 php7.0-bcmath php7.0-bz2 php7.0-cli php7.0-curl php7.0-intl php7.0-json php7.0-mbstring php7.0-opcache php7.0-soap php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-zip libapache2-mod-php7.0
# Configure Apache
echo "<VirtualHost *:80>
DocumentRoot /var/www/public
AllowEncodedSlashes On
<Directory /var/www/public>
Options +Indexes +FollowSymLinks
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
AllowOverride All
</Directory>
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'bento/ubuntu-16.04'
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder '.', '/var/www'
config.vm.provision 'shell', inline: @script
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--name", "ZF Application - Ubuntu 16.04"]
end
end