I'd had the same problem. At my case, the symfony project haven't run in php5 fastcgi correctly. The SCRIPT_NAME index in php $_SERVER variable was malformed so the symfony gets crazy to for all links pages. I think this problem isn't a symfony responsability, it is a fastcgi problem.
I made a work around for this problem forcing SCRIPT_NAME value before into to symfony code as an example below: <?php define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..')); define('SF_APP', 'frontend'); define('SF_ENVIRONMENT', 'prod'); define('SF_DEBUG', false); # Bug fastcgi $_SERVER["SCRIPT_NAME"] = "/parton/index.php"; require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); sfContext::getInstance()->getController()->dispatch(); I don't know if it is the best solution so I would like to see other alternatives... -- Marco Catunda 2007/7/5, TecLliure - Marc Montañés <[EMAIL PROTECTED]>: > > I'm trying to run a symfony project in a shared host that has php4 and > php5 support (php5 as cgi). It runs perfectly in my house using apache > php5-module. > > The symfony aplication is this local directory: > > /users/pangea/marc/alt-ong > > and the web > > /users/pangea/marc/alt-ong/web > > And URL's are like this: > > http://www.pangea.org/alt-ong/ > > The default module/action load correctly but all others pages are crappy > because symfony generates the base paths (for link_to, css, images,...) > in "crazy" way. > > Example: > -------- > > Goog page: > http://www.pangea.org/alt-ong/ > > Bad path page: > http://www.pangea.org/alt-ong/index.php/page/index/alias/qui_som (path > like alt-ong/web/css/alt-ong/web/css/main.css -> repeating paths !!) > > The apache configuration for the web is this: > > /*** Start apache config ***/ > <Location /alt-ong> > AddHandler php-script .php > Action php-script /cgi-bin-sym/php-cgi > AllowOverride All > </Location> > /*** End apache config ***/ > > I've tried sf_relative_config/path_info_array/... in settings.yml and > nothing, some apache rewrite config, read all doc and i can't determine > what is the problem. > > Any idea how to resolve that ? > > Thanks in advance. > > -- > "Si has construido un castillo en el aire, no has perdido el tiempo, es > allí donde debería estar. Ahora debes construir los cimientos debajo de > él." - George Bernard Shaw, escritor irlandés > > Marc Montañés * mail: [EMAIL PROTECTED] * telf: 622216489 > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---