Install Python using your web installs download the latest source from git make NO_CURL=1 NO_MSGFMT=YesPlease NO_TCLTK=YesPlease prefix=/usr/local install That should do it.
Archive for category How To
Task: Configure my localhost & apache to allow for ssl. Solution: Go here: http://developer.apple.com/internet/serverside/modssl.html Note: when asked for “Common Name” when creating your certificate file, instead of using the 127.0.0.1 use the domain name you are going to use for development. ie: www.mysite.local # # This is the Apache server configuration file providing SSL support. [...]
Problem: You want to have dev.yoursite.com and www.yoursite.com but you don’t want dev.yoursite.com visible to the public. Solution: If your using apache(which many of us are), .htaccess and .htpasswd to the rescue. In your .htaccess file add: SetEnvIf Host yourstagingserver.com passreq AuthType Basic AuthName “Staging Server” AuthUserFile /path/to/.htpasswd Require valid-user Order allow,deny Allow from all [...]
Apache Configuration Virtual Hosts(sites-available & sites-active): http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Configuration_Layout Security: (SSH Keys): http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security IPTables : http://cloudservers.rackspacecloud.com/index.php/Sample_iptables_ruleset APT-GET Repositories : For some reason the ubunto distro 9.04 didn’t have these added to its apt-get sources.list. So I added them. deb http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe Installing Ruby: [...]
To view a user’s groups: “id [user]” Add a user to a group : useradd -G {group-name} username Add a user to multiple groups: usermod -a -G group1,group2 username Change a users primary group: usermod -g group user Add a group to a user usermod -a -G group user Get a list of the groups: [...]
So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive. PHP is installed already so thats fine. Mysql a simple download and install. I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python. [...]
http://mark-kirby.co.uk/2008/setting-up-virtual-hosts-on-os-x-leopard/