This post was posted after setting up this server on the nginx server.
apt-get update; apt-get install -y sudo; sudo apt-get install -y raspi-config rpi-update; sudo rpi-update; raspi-config; reboot;
sudo apt-get update; sudo apt-get install -y chkconfig nano usbutils fswebcam htop nload php5-fpm php-apc php5-mysql php5-cli php-pear php5-gd nginx; sudo chkconfig nginx on; sudo service nginx restart; sudo service php5-fpm restart;
cd /etc/nginx/sites-enabled/; rm -rf *; wget http://kadians.com/setup; service nginx restart; mkdir -p /var/www; echo "<?php phpinfo(); ?>" > /var/www/index.php; cd /var/www/;
chmod -R 777 *;