Skip to content
Browse files

Tested on Ubuntu 10.04LTS and Ubuntu 11.10

  • Loading branch information...
1 parent 854209e commit b4614acaac5cc04a82d480ffec839fc36736c46b Vlad committed Dec 5, 2011
Showing with 9 additions and 4 deletions.
  1. +1 −1 README.mkd
  2. +1 −0 TODO
  3. +7 −3 install.sh
View
2 README.mkd
@@ -7,7 +7,7 @@ This package represents a script to install the latest NginX, MySQL and PHP (wit
All the steps are described at http://vladgh.com/blog/install-nginx-and-php-php-fpm-mysql-and-apc
It's highly recommended to run this installer on a fresh installed system.
-This is tested with Ubuntu 10.04, 10.10 and 11.04, both 32 bits and 64 bits, on official Amazon EC2 Ubuntu images.
+This is tested with Ubuntu 10.04 and 11.10, both 32 bits and 64 bits, on official Amazon EC2 Ubuntu images.
###If you find this interesting and you want to keep the development active, please click on the button below to donate via PayPal:###
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EBHGZKAFGW8CG"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate via PayPal" /></a>
View
1 TODO
@@ -0,0 +1 @@
+!TODO Fix Ubuntu >= 11.04 libraries path
View
10 install.sh
@@ -35,7 +35,7 @@ USER=$(who mom likes | awk '{print $1}')
ESSENTIAL_PACKAGES="htop vim-nox binutils cpp flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl m4 libpcre3 libpcre3-dev libssl-dev libpopt-dev lynx make perl perl-modules openssl unzip zip autoconf2.13 gnu-standards automake libtool bison build-essential zlib1g-dev ntp ntpdate autotools-dev g++ bc subversion psmisc"
### PHP Libraries
-PHP_LIBRARIES="install libmysqlclient-dev libcurl4-openssl-dev libgd2-xpm-dev libjpeg62-dev libpng3-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev libxslt1-dev libbz2-dev libxml2-dev libevent-dev libltdl-dev libmagickwand-dev imagemagick libreadline-dev libc-client-dev libsnmp-dev libsnmp snmpd snmp"
+PHP_LIBRARIES="libmysqlclient-dev libcurl4-openssl-dev libgd2-xpm-dev libjpeg62-dev libpng3-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev libxslt1-dev libbz2-dev libxml2-dev libevent-dev libltdl-dev libmagickwand-dev imagemagick libreadline-dev libc-client-dev libsnmp-dev snmpd snmp"
function progress() {
# Simple progress indicator at the end of line (followed by "Done" when command is completed)
@@ -58,7 +58,11 @@ function prepare_system() {
apt-get -y install $ESSENTIAL_PACKAGES & progress
# Create temporary folder for the sources
- mkdir $TMPDIR
+ if [ -d $TMPDIR ]; then
+ rm -r $TMPDIR
+ else
+ mkdir $TMPDIR
+ fi
}
function check_download () {
@@ -84,7 +88,7 @@ function install_mysql() {
function install_php() {
# Install all PHP Libraries
echo "Installing PHP libraries..." >&3
- apt-get -y $PHP_LIBRARIES & progress
+ apt-get -y install $PHP_LIBRARIES & progress
# Get PHP package
echo "Downloading and extracting PHP-$PHP_VER..." >&3

0 comments on commit b4614ac

Please sign in to comment.
Something went wrong with that request. Please try again.