1.3. Installation

1.3.1. Tools

Procedure 1.1. Install required tools first

  1. Install phing and phpdocumentor (phpdoc)

    				pear channel-discover pear.phing.info
    				pear install --alldeps phing/phing
    				

  2. The following PHP extensions are required:
    Multi-Byte String (ext_mbstring)
    MySQL (ext_mysql)
    MySQLi (ext_mysqli)

1.3.2. Create a new project

Procedure 1.2. How to create a new project

  1. open a shell or cmd.exe

  2. cd into the naos.framework.v5 directory

  3. adjust the build.properties file

  4. type

    phing -f development/create-project.xml

    and follow the instructions

  5. if the build script complains about missing directories, create them and repeat the previous step

  6. cd into the new application directory

  7. type

    				phing -f ../naos.framework.v5/development/build-config-apache.xml
    				phing -f ../naos.framework.v5/development/build-config-odf.xml
    				

  8. if the build script complains about missing directories, create them and repeat the previous step

  9. add the new apache.conf in the application configuration directory via an include statement to your Apache, e.g.
    Include "/webapplications/youapplication/configuration/apache.conf"
    Attention: mod_rewrite and mod_alias are required!

  10. You can run your application now. Just open the following URL:
    http://yourhost/yourapplication/

1.3.3. Run an existing application

Procedure 1.3. How to install an existing application

  1. open a shell or cmd.exe

  2. cd into the existing application directory

  3. type

    phing -f ../naos.framework.v5/development/build-config-apache.xml
  4. if the build script complains about missing directories, create them and repeat the previous step

  5. add the new apache.conf in the application configuration directory via an include statement to your Apache, e.g.
    Include "/webapplications/youapplication/configuration/apache.conf"
    Attention: mod_rewrite and mod_alias are required!

  6. You can run your application now. Just open one the following URL:
    http://yourhost/yourapplication/