Oracle VirtualBox from the Commandline

General — Jeff Eske on August 31, 2010 at 2:37 pm
To start a virtual machine “in the background” –
VBoxManage startvm “name_of_vm” –type vrdp
To shutdown a virtual machine –
VBoxManage controlvm “name_of_vm” poweroff

Running Apache and PHP on OS X 10.6.4

General — Jeff Eske on August 31, 2010 at 2:19 pm

Apache and PHP are there, but not started.   To enable it:

1> Fire up and cd /etc/apache2
2> sudo pico httpd.conf
3> Within httpd.conf, use ctrl-w and find LoadModule php
4> Uncomment LoadModule php5_module and LoadModule fastcgi_module lines
5> Right below that, add the following 2 lines:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

6> Save httpd.conf and close pico.

7> Goto System Preferences > Sharing and check the box for “Web Sharing”.

8> At this point, there should be a main machine website (http://localhost) and user(s) sites (http://localhost/~user)

9> Create a simple php file, containing the phpinfo() function, to see what is available within php.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | Jeff's Blog