At the time of writing the Stack is running on Ubuntu 14.04 which can be downloaded from here. Since it is 64Bit make sure that Visualization is enabled in the bios settings.
Import the VM in VMware Player or Virtual box, make sure that the network settings are configured correctly so that the VM gets an IP accessible from the host machine. I personally configured it to Bridged Adapter for this exercise and have a habit of Regenerating the MAC Address.
If the VM does not get assigned an IP the configuration is wrong and I wouldn’t bother trying to fix it from inside the VM (you could) but I rather fix it from the hyper-visor settings because the stack is pre-configured to work.
Login and change password
Visit the IP in the browser to check if it is working in my case http://192.168.101.12
Enabling Laravel
Bitnami LAMP Stack comes with several pre-configured frameworks of which all are disabled by default. One must enable the framework that is required. ( I am nto sure if you can enable more than one at the same time)
Steps:
cd /opt/bitnami/apache2/conf/bitnami
sudo vi bitnami-apps-prefix.conf
Remove the hash from laravel’s line and save and close :wq
Restart Apache
sudo /opt/bitnami/ctlscript.sh restart apache
The location where Laravel apps Live is
/opt/bitnami/frameworks/laravel/app/http
Browser URL
http://192.168.101.12/laravel/ where 192.168.101.12 is your VM’s IP
Configuring FTP
Enabling FTP for easy editing/upload of files ( Note this is a development machine for experimentation so I will not go on explaining issues with FTP and security, but you should consider reading about the risks. )
sudo vi /etc/vsftpd.conf
go to the bottom of the file and change
listen_address=127.0.0.1
to
listen_address=0.0.0.0
:wq
Allow connections to port 21 (FTP port)
sudo ufw allow 21
Restart FTP
sudo service vsftpd restart
Change bitnamiftp password
sudo passwd bitnamiftp
Configure Filezilla
Connected
Now you may play around with Laravel through FTP 🙂
Let external connections to MySQL
1)
cd /opt/bitnami/mysql
sudo vi my.cnf
Comment out
bind-address = 127.0.0.1
by putting a # infront of it and Esc :wq
2)
mysql -u root -p
grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option
restart mysql
cd /opt/bitnami
sudo ./ctlscript.sh restart mysql
Open Port in firewall
sudo ufw allow 3306