Testing symphony. Part 1

Ne-am apucat sa ne jucam un pic cu symphony. Prima parte instalarea. Având ca sistem de operare un hibrid intre TFM server si TFM workstation ( ca de obicei ) am intrat direct in el cu instalarea:

bash-3.1# pear upgrade PEAR Nothing to upgrade bash-3.1# pear channel-discover pear.symfony-project.com Adding Channel "pear.symfony-project.com" succeeded Discovery of channel "pear.symfony-project.com" succeeded bash-3.1# pear install symfony/symfony downloading symfony-1.0.8.tgz ... Starting to download symfony-1.0.8.tgz (1,908,095 bytes) ...........................................done: 1,908,095 bytes install ok: channel://pear.symfony-project.com/symfony-1.0.8 Pina acuma foarte frumos. E momentul sa vedem ca si merge. bash-3.1# symfony -V symfony version 1.0.8 încerc sa creez un proiect . Cum la mine apache-ul e configurat cu root-ul in /var/www/html in documentaţie zice cam aşa: bash-3.1# mkdir /var/www/html/tfm bash-3.1# cd /var/www/html/tfm bash-3.1# symfony init-project tfm >> dir+ /var/www/html/tfm/log >> dir+ /var/www/html/tfm/web >> dir+ /var/www/html/tfm/web/js >> dir+ /var/www/html/tfm/web/css >> file+ /var/www/html/tfm/web/css/main.css >> dir+ /var/www/html/tfm/web/images >> dir+ /var/www/html/tfm/web/uploads >> dir+ /var/www/html/tfm/web/uploads/assets >> file+ /var/www/html/tfm/web/.htaccess >> file+ /var/www/html/tfm/web/robots.txt >> dir+ /var/www/html/tfm/plugins >> dir+ /var/www/html/tfm/batch >> dir+ /var/www/html/tfm/doc >> dir+ /var/www/html/tfm/test >> dir+ /var/www/html/tfm/test/bootstrap >> file+ /var/www/html/tfm/test/bootstrap/functional.php >> file+ /var/www/html/tfm/test/bootstrap/unit.php >> dir+ /var/www/html/tfm/test/functional >> dir+ /var/www/html/tfm/test/unit >> dir+ /var/www/html/tfm/lib >> dir+ /var/www/html/tfm/lib/model >> dir+ /var/www/html/tfm/apps >> dir+ /var/www/html/tfm/config >> file+ /var/www/html/tfm/config/schema.yml >> file+ /var/www/html/tfm/config/properties.ini >> file+ /var/www/html/tfm/config/config.php >> file+ /var/www/html/tfm/config/databases.yml >> file+ /var/www/html/tfm/config/propel.ini >> file+ /var/www/html/tfm/config/rsync_exclude.txt >> dir+ /var/www/html/tfm/cache >> dir+ /var/www/html/tfm/data >> dir+ /var/www/html/tfm/data/model >> dir+ /var/www/html/tfm/data/sql >> file+ /var/www/html/tfm/symfony >> tokens /var/www/html/tfm/config/properties.ini >> tokens /var/www/html/tfm/config/propel.ini >> tokens /var/www/html/tfm/config/propel.ini >> tokens /var/www/html/tfm/config/config.php >> chmod 777 /var/www/html/tfm/cache >> chmod 777 /var/www/html/tfm/log >> chmod 777 /var/www/html/tfm/web/uploads >> chmod 777 /var/www/html/tfm/symfony >> chmod 777 web/uploads/assets bash-3.1# symfony init-app frontend >> dir+ /var/www/html/tfm/apps/frontend/modules >> dir+ /var/www/html/tfm/apps/frontend/lib >> file+ /var/www/html/tfm/apps/frontend/lib/myUser.class.php >> dir+ /var/www/html/tfm/apps/frontend/templates >> file+ /var/www/html/tfm/apps/frontend/templates/layout.php >> dir+ /var/www/html/tfm/apps/frontend/i18n >> dir+ /var/www/html/tfm/apps/frontend/config >> file+ /var/www/html/tfm/apps/frontend/config/settings.yml >> file+ /var/www/html/tfm/apps/frontend/config/i18n.yml >> file+ /var/www/html/tfm/apps/frontend/config/logging.yml >> file+ /var/www/html/tfm/apps/frontend/config/config.php >> file+ /var/www/html/tfm/apps/frontend/config/routing.yml >> file+ /var/www/html/tfm/apps/frontend/config/view.yml >> file+ /var/www/html/tfm/apps/frontend/config/security.yml >> file+ /var/www/html/tfm/apps/frontend/config/filters.yml >> file+ /var/www/html/tfm/apps/frontend/config/app.yml >> file+ /var/www/html/tfm/apps/frontend/config/cache.yml >> file+ /var/www/html/tfm/apps/frontend/config/factories.yml >> tokens /var/www/html/tfm/apps/frontend/config/settings.yml >> file+ /var/www/html/tfm/web/index.php >> file+ /var/www/html/tfm/web/frontend_dev.php >> tokens /var/www/html/tfm/web/index.php >> tokens /var/www/html/tfm/web/frontend_dev.php >> chmod 777 /var/www/html/tfm/cache >> chmod 777 /var/www/html/tfm/log >> chmod 777 /var/www/html/tfm/web/uploads >> chmod 777 /var/www/html/tfm/symfony >> chmod 777 web/uploads/assets >> dir+ /var/www/html/tfm/test/functional/frontend Mbon. Pina aici totul pare sa fi mers conform documentatiei. Pina acuma imi place ce vad. Sa il vedem efectiv la lucru. Ah, ce nu v-am spus este ca am gasit un editor de php de linux care chiar imi place. Il cheama Komodo-Edit. Nu are legatura cu symphony dar TextMate nu am gasit varianta de linux si Mac inca nu mi-am luat ( a se retine inca ) . Citind in continuare documentatia. Trebuie modificat apache.conf si adaugata urmatoarea linie: Alias /sf /usr/share/pear/symfony Restart la apache … /etc/rc.d/services/rc.apache2 restart si incercam sa vedem ce a rezultat. Luam un browser si ne ducem la : http://mytestsite/tfm/web/ Rezultatul ? symphony.webp

Cam asta a fost prima parte din symphony. Ce pot spune … Easy.

Later edit:

A trebuit sa schimb DocumentRoot al apache-uli sa pointeze catre /var/www/html/tfm/web . Daca faceam asta se intimpla urmatorul fenomen deloc de dorit : orice utilizator putea citi configurile ceea ce intr-un mediu de productie poate fi dezastruos. Prin urmare atentie mare la acest pas.

Latest Posts