Changes between Version 19 and Version 20 of ServerSetup

Show
Ignore:
Timestamp:
11/10/09 16:12:54 (16 years ago)
Author:
faisal (IP: 216.214.144.156)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerSetup

    v19 v20  
    3636}}} 
    3737 
    38 2. Follow guide below or http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-8.10 [[BR]] 
     382. Install php mysql nginx[[BR]] 
    3939{{{ 
    40 apt-get install mysql-server mysql-client nginx lighttpd php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached php-apc 
    41 update-rc.d -f lighttpd remove 
    42 emacs /etc/php5/cgi/php.ini 
    43 - add this line in the end of file 
    44 cgi.fix_pathinfo = 1 
    45 - save and exit (ctrl+x, ctrl+c) - make sure to add a new line in every end of file for safety 
    46 emacs /etc/rc.local 
    47 - add this line before exit 
    48 /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid 
    49 mount /mnt/Media 
    50 - save and exit 
     40apt-get install ntp ntpdate make bison flex gcc patch autoconf subversion locate unzip gettext libgd2-xpm 
     41apt-get install libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 libjpeg-dev libpng-dev 
     42apt-get install mysql-client libmysqlclient15-dev mysql-server 
     43cd /usr/local/src/ 
     44wget http://c1.simplecdn.se/nginx/php-5.3.0.tar.gz 
     45wget http://c1.simplecdn.se/nginx/php-5.3.0-fpm-0.5.12.diff.gz 
     46tar zvxf php-5.3.0.tar.gz 
     47gzip -cd php-5.3.0-fpm-0.5.12.diff.gz | sudo patch -d php-5.3.0 -p1 
     48cd php-5.3.0 
     49./configure --enable-fpm --with-mysql --with-mysqli --with-gd --with-jpeg-dir --without-sqlite --with-gettext --with-mcrypt --with-zlib --enable-mbstring --without-pgsql --with-curl --disable-debug --enable-pic --disable-pdo --disable-rpath --enable-inline-optimization --with-bz2 --with-xml --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre-regex --disable-tokenizer --disable-filter --disable-reflection --without-unixODBC --without-odbc --disable-hash 
     50make all install 
     51strip /usr/local/bin/php-cgi 
     52pecl install memcache 
     53pecl install apc-beta 
     54cp /usr/local/src/php-5.3.0/php.ini-production /usr/local/lib/php/php.ini 
     55mkdir /etc/php/ 
     56ln -s /usr/local/lib/php/php.ini /etc/php/php.ini 
     57ln -s /usr/local/etc/php-fpm.conf /etc/php/php-fpm.conf 
    5158}}} 
    52593. create folder /mnt/Media then add mount point in fstab for reboot [[BR]]