update configure

This commit is contained in:
Guobao Jiang 2014-02-13 18:28:59 +08:00
parent 74959675af
commit 98b2dfb507
3 changed files with 17 additions and 8 deletions

View File

@ -33,7 +33,7 @@ http {
#gzip on;
server {
listen 8080;
listen 80;
server_name localhost;
#charset koi8-r;
@ -41,7 +41,7 @@ http {
#access_log logs/host.access.log main;
location / {
root html;
root /vagrant_data/data;
index index.html index.htm;
}
@ -51,16 +51,16 @@ http {
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
root /vagrant_data/data;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
# ref http://askubuntu.com/questions/134666/what-is-the-easiest-way-to-enable-php-on-nginx
# start php5 sudo service php5-fpm restart
location ~ \.php$ {
root html;
# fastcgi_pass 127.0.0.1:9000; # ubuntu old
fastcgi_pass unix:/var/run/php5-fpm.sock; # ubuntu 12.10 or newer
root /vagrant_data/data;
fastcgi_pass 127.0.0.1:9000; # ubuntu old
# fastcgi_pass unix:/var/run/php5-fpm.sock; # ubuntu 12.10 or newer
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

View File

@ -26,7 +26,10 @@ echo "-----------------------------------"
echo "configure this virtual machine"
echo "user:`whoami`, home=$HOME"
mkdir ${iHome}/github/
if [ ! -d ${iHome}/github/ ];then
mkdir ${iHome}/github/
fi
cd ${iHome}/github/
git clone https://github.com/aborn/configure.git
chmod u+x ${iHome}/github/configure/configure

View File

@ -9,7 +9,6 @@
################################################################
echo
echo "-----------------------------------"
echo "postinstall start."
VAGRANTPATH="/vagrant_data"
# change source list
@ -18,11 +17,18 @@ cp ${VAGRANTPATH}/sources.list /etc/apt/
sudo apt-get update
echo
echo "-----------------------------------"
echo "postinstall start."
echo "install some necessary software."
sudo apt-get install -y \
emacs zsh vim g++ build-essential \
make git ghostscript
# install php5
# sudo apt-get install php5-common php5-cli php5-fpm
# compile install php3 need to install following,
./php-deps.sh
echo "postinstall finished."
echo "-----------------------------------"
echo