In the intel mac era this has become fairly easy and you can use standard linux Distros. There are a few little tweaks which I will mention. I am using Ubuntu 14.04 LTS 64bit for this example. You will need to acquire a standard (non-mac) iso from ubuntu.com, and write that to a usb key… Continue reading Loading Linux on a Mac-Mini
Tag: Linux
Configuring phpmyadmin with nginx
Install the php dependencies apt-get install phpmyadmin php5-fpm Modify /etc/nginx/sites-available/default and add the following at the end of the server section location ^~ /phpmyadmin { alias /usr/share/phpmyadmin/; index index.php index.html index.htm; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } } To restrict access to a certain IP, add the following… Continue reading Configuring phpmyadmin with nginx
Installing HHVM on Amazon Linux (AWS)
HHVM Alternative to PHP, said to increase speed by up to 40%. Â Works similar to java in that it pre-compiles PHP automatically to speed up execution time. Â Used by facebook. cd /etc/yum.repos.d wget http://www.hop5.in/yum/el6/hop5.repo echo ‘priority=9’ >> hop5.repo echo ‘includepkgs=glog,tbb’ >> hop5.repo wget http://yum.sexydev.com/sexydev-amazon.repo yum install hhvm
Usernames for Amazon Linux (AWS) and Ubuntu AMI
For Amazon Linux, the username is “ec2-user”, for ubuntu it is simply “ubuntu”. To connect to them you need the key file that was generated when the instance was created, and the public DNS address. Â Use a command like: ssh -i myinstance.pem ec2-user@12.34.56.789 Note: Make sure you have opened up ssh (port 22) access to… Continue reading Usernames for Amazon Linux (AWS) and Ubuntu AMI