- Set Up Development VM
- Setup Your hosts File
- Setup Your dev Folder
Set Up Development VM
Get the Appliance (OVF File)
Import Appliance into VirtualBox
Click File > Import Appliance Ctrl+I (Do not press New)
Make sure to checkmark "Reinitialize the MAC address of all network cards" on the Appliance Import Settings screen to avoid IP conflicts if you are running multiple instances of this appliance.
Alternatively, you can create your own LAPP Stack
Add a "Shared Folder" in VM Settings
- (From Menu click 'Settings')
- VM Settings > Shared Folders > Add Shared Folder
- Folder Path:
- Choose your
devfolder (see below)
- Folder Name:
Note: Depending on the hardware of your computer, you may have to enable a "Virtualizaton" setting in your computer's BIOS settings.
Log In to the VM
The root password is likely specified in the description of the appliance.
You can also connect via ssh or a terminal program like PuTTY:
Important: Make sure you have a Host-Only Adapter specified in VirtualBox > Preferences > Network
Note: If you have other VirtualBox VMs, the IP may be different, ie.
ifconfigin the VM console to determine the virtual LAN IP address on eth1.
You can configure Centos to use a static IP with the command
eth1but there may be issues with internet connectivity more info.
Create symlink to the auto-mounted shared folder
ln -s /media/sf_skydev /share
Include your vhosts configuration file at the bottom of
service httpd restart
You may want to keep your database in a separate virtual machine. instructions to setup postgres
Note: You must run notepad as administrator
OSX & Linux
You should have the following file structure. It is recommended to put your
devfolder in Dropbox so your multiple workstations stay in sync and your work is automatically backed up.
- dev - codebases - git + cms + mysite + skyphp + svn + storage - websites httpd-vhosts.conf - mysite.dev - public_html .htaccess index.php + mysite2.dev
codebasesfolder should contain all of your codebases. You may want to organize them into
Leave this folder empty. This is where your app will save temporary files and persistent data.
Add the following line
Then add a VirtualHost block for each of your development sites
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot "/share/websites/mysite.dev/public_html" ServerName mysite.dev ErrorLog "logs/mysite.dev-error.log" CustomLog "logs/mysite.dev-access.log" common <Directory "/share/websites/mysite.dev/public_html"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
Note: Anytime you change your
httpd-vhosts.conffile, you need to restart apache.
Each website needs a
public_htmlfolder with the following two files:
- Windows 7
mklink .htaccess ..\..\..\codebases\git\skyphp\.htaccess
- OSX & Linux
ln -s ../../../codebases/git/skyphp/.htaccess
<?php # /index.php # Powered by SkyPHP (skyphp.org) # $down_for_maintenance = true; $codebase_path = '/share/codebases/git/'; $codebase_path_arr = array( $codebase_path . 'mysite/', $codebase_path . 'cms/', $codebase_path . 'skyphp/' ); $skyphp_storage_path = "/share/storage/"; include( $codebase_path . 'skyphp/sky.php' );