Perfomatic/Installation: Difference between revisions

Line 40: Line 40:
     # Install MacPorts (http://macports.org/)
     # Install MacPorts (http://macports.org/)


    # Install and select python 2.5
    sudo port install python25
    sudo port install python_select
    sudo python_select python25
    sudo port install py25-mysql
    # Get the graph server source from CVS
     cd ~/devel
     cd ~/devel
    # ...or wherever you keep dev stuff.
     cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d graphs-cvs mozilla/webtools/new-graph
     cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d graphs-cvs mozilla/webtools/new-graph


    # Link the checkout into your home ~/Sites/
     ln -s `pwd`/graphs-cvs ~/Sites/
     ln -s `pwd`/graphs-cvs ~/Sites/


    # Install pysqlite2, required in some spots and handy to have.
    curl -O http://oss.itsystementwicklung.de/download/pysqlite/2.4/2.4.1/pysqlite-2.4.1.tar.gz
    tar -zxf pysqlite-2.4.1.tar.gz
    cd pysqlite-2.4.1
    sudo python setup.py install
    # Set up mysql5 (if necessary) and create a database
     sudo port install mysql5
     sudo port install mysql5
     # follow directions and complete installation  
     # follow directions and complete installation  
Line 52: Line 65:
     mysql5 -uroot o_graphs < sql/schema.sql
     mysql5 -uroot o_graphs < sql/schema.sql


     sudo port install python25
     # Get apache2 up and running
    sudo port install python_select
    sudo python_select python25
    sudo port install py25-mysql
 
    curl -O http://oss.itsystementwicklung.de/download/pysqlite/2.4/2.4.1/pysqlite-2.4.1.tar.gz
    tar -zxf pysqlite-2.4.1.tar.gz
    cd pysqlite-2.4.1
    sudo python setup.py install
 
     sudo port install apache2
     sudo port install apache2


     # Make sure .cgi runs CGI scripts
     # Ensure sure .cgi is recognized to CGI scripts
     # Uncomment line 383:
     # Uncomment line 383:
     # AddHandler cgi-script .cgi
     # AddHandler cgi-script .cgi


     # Be sure to disable Apple's apache
    # Ensure that userdir_module is enabled, around line 113 of /opt/local/apache2/conf/httpd.conf
 
    # Ensure that ExecCGI and FollowSymLinks options are enabled in /opt/local/apache2/conf/extra/httpd-userdir.conf
 
     # Be sure to disable Apple's apache and switch to MacPorts'
     sudo /usr/sbin/apachectl stop
     sudo /usr/sbin/apachectl stop
     sudo /opt/local/apache2/bin/apachectl start
     sudo /opt/local/apache2/bin/apachectl start


    # Import some data (this needs expanding)
     mkdir data
     mkdir data
     curl http://build-graphs.mozilla.org/db/dhtml/bl-bldlnx01_fx-linux-tbox-head > data/sample1.txt
     curl http://build-graphs.mozilla.org/db/dhtml/bl-bldlnx01_fx-linux-tbox-head > data/sample1.txt
Confirmed users
920

edits