Oracle VirtualBox from the Commandline

Posted on August 31, 2010

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

Filed Under General | Leave a Comment

Running Apache and PHP on OS X 10.6.4

Posted on August 31, 2010

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

1> Fire up terminal.app 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.

Filed Under General | Leave a Comment

© Copyright Jeff's Blog • Powered by Wordpress • Using Detour theme created by Brian Gardner.