logo
Ask your Symfony questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$20
setup/import PHP symfony framework project

Hi,
I am very new to symfony (propel), php framework. I am on a project, that I was provided a CD with symfony project on it. I have downloaded Netbeans and wampserver, both are running correctly. How can I setup this project on window 7 OS so I can make any changes to it

I will pay upto $30, but I need this to be completed today. I have installed mysql , php, used xampp linux 1.8.1. Should I configure symfony 1.4.19 or 2.0. can the files be imported to 2.0 if I configure 2.0 on the linux box.

acinc | 10/17/12 at 2:18pm Edit
Tutorial: How to assign prize money

Previous versions of this question: 10/18/12 at 3:37pm | 10/18/12 at 5:21pm

(13) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    10/17/12
    2:43pm
    Luis Cordova says:

    cp contents and inspect the directories

    if you see a composer.json it is your day

    if not you should see some deps and a bin/vendors script

    then you run it ./bin/vendors and it should install things

    then you are ready to go and setup database with commands too

    check your app/config/parameters.[ini|yml] set your values

    setup your vhost then

    then you are good

  • avatar
    Last edited:
    10/17/12
    3:55pm
    Florian Klein says:

    This is for sure a symfony1 project, given the directory structure.

    I would advice you to look at the old docs present here:

    http://www.symfony-project.org/getting-started/1_4/en/03-Symfony-Installation

    and here:

    http://www.symfony-project.org/getting-started/1_4/en/04-Project-Setup

    The first page is about how to install the vendors you need. (the symfony library itself).
    Usually, the vendor installation was made using svn externals.

    The second link explains how to setup a project using symfony1.

    Please post what is contained in your README file, it could contain install informations.

  • avatar
    Last edited:
    10/17/12
    11:09pm
    Martin Palacio says:


    This is what I can find in one of the config file:
    <?php

    // symfony directories
    $sf_symfony_lib_dir = dirname(__FILE__).'/../lib/symfony';
    $sf_symfony_data_dir = dirname(__FILE__).'/../data/symfony';


    Not just symfony 1.x, this is symfony 1.0.x!! You have to read the documentation related to version 1.0.

    Add %APP_ROOT/web/acrs config to Apache's sites-enabled folder

    can you post the contents of that file? (or any files within, if acrs is a folder). That's the key to configure it to run in apache correctly.

  • avatar
    Last edited:
    10/17/12
    2:57pm
    acinc says:

    I don’t see composer.json, the directories under project or vendor name are: apps, batch,cache, config, data ,doc ,lib, log, nbproject, plugins, test, web, files readme, symfony symfony.php
    There is a vendor/bin with out folder called vendors ( folders in bin are model, symfony, validators, mysecurity.class, mytools.class

  • avatar
    Last edited:
    10/17/12
    3:12pm
    Luis Cordova says:

    is this a sf1.x or sf2 project?

  • avatar
    Last edited:
    10/17/12
    3:18pm
    Luis Cordova says:

    it seems to me this is a sf1.x project

  • avatar
    Last edited:
    10/17/12
    3:21pm
    acinc says:

    I don't know, how can I find out by looking at the folder/files from the CD. I have installed Netbeans, wampserver. This is what I can find in one of the config file:
    <?php

    // symfony directories
    $sf_symfony_lib_dir = dirname(__FILE__).'/../lib/symfony';
    $sf_symfony_data_dir = dirname(__FILE__).'/../data/symfony';

    I think it was running in redhat linux, I can configure it oracle linux if that will be easy to configure.

  • avatar
    Last edited:
    10/17/12
    3:22pm
    Luis Cordova says:

    yes it will be easier

    also it is a sf1.x project for sure, if you want further develop it i recommend you move it to sf2 project

  • avatar
    Last edited:
    10/17/12
    3:29pm
    acinc says:

    On oracle linux, I have mysql, and apache installed, should I install wampserver and netbeans on it

  • avatar
    Last edited:
    10/17/12
    6:08pm
    Luis Cordova says:

    you don't need wampserver anymore

    just get a lampstack = apache, mysql and php and you are set

    once you do this, just play around with the info on the README or on the links below

    http://www.symfony-project.org/

    notice this is a sf1.4 project and not a sf2 so don't go to http://www.symfony.com you will be mislead

    Only go to symfony.com if you want to port your project to sf2 which i do recommend ;)

    but for minor modifications and getting you stuck on legacy code then remain with sf1.x and just do your mods.

    It seems you are a newbie, and that is why i said to move into sf2, though to port something you would better know both frameworks, they are totally different.

    Let me know via PM if any information on the readme that you cannot disclose.

  • avatar
    Last edited:
    10/17/12
    8:53pm
    acinc says:

    Below is the Readme file: I am still working on installing apache, mysql and php on linux.

    * Application:
    User Review System built on top of the symfony framework (version 1.0.21)

    * Description:
    Full suite for managing User Reviews,
    Annual Program Reviews , and Skills Test Reviews from start to finish.

    * Running and Server Config:
    - Add %APP_ROOT/web/acrs config to Apache's sites-enabled folder
    - Set ServerAdminm, ServerName, DocumentRoot, and Directory
    - memory_limit = 128M in cli/php.ini and apache/php.ini
    - post_max_size = 128M in cli/php.ini and apache/php.ini
    - magic_quotes_gpc = Off in cli/php.ini and apache/php.ini
    - upload_max_filesize = 128M in cli/php.ini and apache/php.ini
    - add "ft_mind_word_len=3" to mysql/my.cnf
    - run batch/maintenance.php, followed by batch/notifications.php as a cron job at 4:01AM EST

    * Requirements:
    - Apache Web Server 2.2.12 or equivalent
    - PHP 5.2.10 or equivalent
    - MySQL 5.1.37 or equivalent
    - sendmail 8.14.3 or equivalent

    * Details:

    Database Schema: config/schema.yml (includes name mappings between table names and model code filenames)
    Baseline Data: data/fixtures/*.yml
    CRON job scripts: batch/maintenance.php and batch/notifications.php (to be run daily at 4:01AM in serial)
    Reports: web/rep.cgi (needs to be placed in the cgi-bin directory on the server, e.g. /usr/lib/cgi-bin)

    - Code is divided into modules which reside in apps/frontend/modules/
    - Modules are subdivided into actions/ (controller code) and templates/
    - In actions/actions.class.php each public function executeActionName() maps to template/actionNameSuccess.php
    - Model/database code uses Propel, which is in lib/model
    + [phpName].php holds the subclass representing a row from the table
    + [phpName]Peer.php holds the subclass for performing query and update operations on the table
    - See the symfony website for detailed documentation: http://www.symfony-project.org/doc/1_0/
    - Help files are in web/help/

    * Authors:
    - Smith Johns [Smith@power.com]
    - Eric Rhain [Eric@power.com]
    Power Information Services, Inc.
    000-000-5500

  • avatar
    Last edited:
    10/18/12
    3:40pm
    Luis Cordova says:

    User Review System built on top of the symfony framework (version 1.0.21)

  • avatar
    Last edited:
    10/18/12
    4:31pm
    Martin Palacio says:

    Should I configure symfony 1.4.19 or 2.0.

    Neither. Your project is built with symfony 1.0.x, 1.4.x is not compatible. BUT, first of all check if the framework is included on the CD (I think it is, in your bin/symfony or lib/symfony or lib/vendor/symfony) In that case please post the content of your %APP_ROOT/web/acrs config file...some projects run as VirtualHosts in Apache, and some others run as subdirectories, thus different configurations apply.

This question has expired.



acinc, acinc had additional discourse to offer.



Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.