Changes between Version 18 and Version 19 of InstallationGuidelines/Linux/Server/ApacheMySQL


Ignore:
Timestamp:
01/31/12 21:27:07 (13 years ago)
Author:
Fran Boon
Comment:

Apache/MySQL tuning, switch to Git

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Linux/Server/ApacheMySQL

    v18 v19  
    2424# Install Admin Tools
    2525apt-get install -y unzip psmisc mlocate telnet lrzsz vim elinks-lite rcconf htop sudo
     26# Install Git
     27apt-get install -y git-core
    2628# Email
    2729apt-get -y install exim4-config exim4-daemon-light
     
    3133########
    3234apt-get -y install mysql-server python-mysqldb phpmyadmin mytop
     35
     36# Tune for smaller RAM setups
     37sed -i 's|query_cache_size        = 16M|query_cache_size = 1M|' /etc/mysql/my.cnf
     38sed -i 's|key_buffer              = 16M|key_buffer = 1M|' /etc/mysql/my.cnf
     39sed -i 's|max_allowed_packet      = 16M|max_allowed_packet = 1M|' /etc/mysql/my.cnf
     40
     41/etc/init.d/mysql restart
    3342
    3443#########
     
    4453sed -i 's|</IfModule>|WSGIPassAuthorization On|' /etc/apache2/mods-enabled/wsgi.conf
    4554echo "</IfModule>" >> /etc/apache2/mods-enabled/wsgi.conf
     55
     56# Prevent Memory leaks from killing servers
     57sed -i 's|MaxRequestsPerChild   0|MaxRequestsPerChild 300|' /etc/apache2/apache2.conf
     58
     59# Tune for smaller RAM setups
     60sed -i 's|MinSpareServers       5|MinSpareServers 3|' /etc/apache2/apache2.conf
     61sed -i 's|MaxSpareServers      10|MaxSpareServers 6|' /etc/apache2/apache2.conf
    4662
    4763apache2ctl restart
     
    6480apt-get -y install python-imaging python-reportlab
    6581apt-get -y install python-xlwt python-xlrd
    66 apt-get -y install bzr
    6782
    6883#########
     
    95110cd web2py
    96111cd applications
    97 bzr branch lp:sahana-eden/stable eden
     112# @ToDo: Stable branch
     113git clone git://github.com/flavour/eden/git
    98114# Fix permissions
    99115chown web2py ~web2py
     
    160176cd ~web2py/applications/eden
    161177sed -i 's/deployment_settings.base.migrate = False/deployment_settings.base.migrate = True/g' models/000_config.py
    162 bzr pull
     178git pull
    163179/usr/local/bin/maintenance
    164180rm -rf compiled
     
    205221# END
    206222}}}
    207 
    208223== After Imaging ==
    209224[http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/ApacheMySQL/configure-eden-apache-mysql.sh configure-eden-apache-mysql.sh]