This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » [Tutorial] installing symfony for OVH  (4) 1 Vote(s)
icon1.gif  [Tutorial] installing symfony for OVH [message #10307] Thu, 17 August 2006 12:58 Go to next message
Fred  is currently offline Fred
Messages: 10
Registered: August 2006
Location: France
Junior Member
OVH is a well-know french host. This tutorial explains how to run a symfony app on a shared server with ovh, and can also be useful to people trying to install symfony on other shared hosts.

1 - OVH doesn't accept the magic_quotes_gpc and register_globals default settings and forbids modifications of theses properties. So you need to add a php.yml in the config/ directory with :
check:
  magic_quotes_gpc:            on
  register_globals:            on


2 - Warning: In the database.yml, the host (or hostspec) can't be localhost but sql# (the hostname given by OVH) and Creole must be installed (in lib/ by exemple - lib/creole and lib/jargon) if you don't use the sandbox.

3 - At OVH, the web root directory is "www". So rename your web directory to www/ and add in config/config.php
$sf_root_dir = sfConfig::get('sf_root_dir');
$sf_upload_dir_name = sfConfig::get('sf_upload_dir_name');
sfConfig::add(array(
  'sf_web_dir_name' => $sf_web_dir_name = 'www',
  'sf_web_dir'      => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name,
  'sf_upload_dir'   => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name.DIRECTORY_SEPARATOR.$sf_upload_dir_name,
));


4 - Modify the www/.htaccess mod_rewrite config:
SetEnv PHP_VER 5
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteCond %{REQUEST_URI} !frontend_dev\.php
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ /index.html [QSA]
  RewriteRule ^([^.]+)$ /$1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ /index.php [QSA,L]
  RewriteRule ^frontend_dev\.php/(.*)$ /frontend_dev.php [QSA,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"[QSA,L]


This should be enough since there is no more .php5 extension problem thanks to the "SetEnv PHP_VER 5" (Thanks Emriln).

(Tested on Horrors Of The Black Museum)

If "SetEnv PHP_VER 5" doesn't work Evil or Very Mad , ignore step 4 above but continue as follows:

4 - Modify in apps/myapp/config/settings.yml the no_script_name option:
prod:
  .settings:
    no_script_name:           off


5 - For the .php5 extension problem, see http://www.symfony-project.com/trac/ticket/813

6 - Rename index.php to index.php5

7 - Modify the www/.htaccess mod_rewrite config:
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteCond %{REQUEST_URI} !\.php5
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ /index.html [QSA]
  RewriteRule ^([^.]+)$ /$1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ /index.php5 [QSA,L]
  RewriteRule ^index\.php5/(.*)$ /index.php5 [QSA,L]
  RewriteRule ^frontend_dev\.php5/(.*)$ /frontend_dev.php5 [QSA,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"

[Updated on: Fri, 18 August 2006 10:16] by Moderator

icon14.gif  Re: [Tutorial] installing symfony for OVH [message #10374 is a reply to message #10307 ] Thu, 17 August 2006 23:09 Go to previous messageGo to next message
stonelnd  is currently offline stonelnd
Messages: 8
Registered: March 2006
Location: france
Junior Member
thank you very much !
this works well excepted for the SetEnv PHP_VER 5
and with some changes made to the /apps/myapp/config/config.php file
(i'm running on the basic 1000gp offer)
so i'm gonna look back to symfony now Very Happy

edit: relation with database is ok without installing creole again

[Updated on: Mon, 21 August 2006 03:41]

Re: [Tutorial] installing symfony for OVH [message #11152 is a reply to message #10307 ] Tue, 29 August 2006 19:25 Go to previous messageGo to next message
Emriln  is currently offline Emriln
Messages: 9
Registered: August 2006
Junior Member
What did you change in /apps/myapp/config/config.php ?
Re: [Tutorial] installing symfony for OVH [message #11159 is a reply to message #11152 ] Tue, 29 August 2006 20:21 Go to previous messageGo to next message
Fred  is currently offline Fred
Messages: 10
Registered: August 2006
Location: France
Junior Member
Nothing !
Re: [Tutorial] installing symfony for OVH [message #11168 is a reply to message #10307 ] Wed, 30 August 2006 00:19 Go to previous messageGo to next message
Emriln  is currently offline Emriln
Messages: 9
Registered: August 2006
Junior Member
My question was for stonelnd because I have the congratulation page, but my apps doesn't seems to work... I still have the "No input file specified" error.

I've uploaded my app directory, and the content of lib/model/
I've cleared the cache, modify config/databases.yml and config/propel.ini to use the database on my server.

I there something missing ?
Re: [Tutorial] installing symfony for OVH [message #11184 is a reply to message #11168 ] Wed, 30 August 2006 10:53 Go to previous messageGo to next message
Fred  is currently offline Fred
Messages: 10
Registered: August 2006
Location: France
Junior Member
Have you re-build the model ?
You don't need modify propel.ini and your databases.yml must look like:
prod:
  propel:
    param:
      hostspec: sqlX
      database: ovh account
      username: ovh account
      password: ovh password

all:
  propel:
    class:          sfPropelDatabase
    param:
      phptype:  mysql
      host:     localhost
      database: database name
      username: dev username
      password: dev password
      compat_assoc_lower: true
      compat_rtrim_string: true


try in .htaccess without
RewriteCond %{REQUEST_FILENAME} !-f


But if you see the congratulation page, it seems that the problem comes somewhere else.
Re: [Tutorial] installing symfony for OVH [message #11332 is a reply to message #11184 ] Sat, 02 September 2006 17:19 Go to previous messageGo to next message
stonelnd  is currently offline stonelnd
Messages: 8
Registered: March 2006
Location: france
Junior Member
hello, Fred are you sure ?
I had to change in the app/config/config.php file, the line :
// PEAR config
  if ((include(SF_ROOT_DIR.'/lib/symfony/pear.php')) != 'OK')

it's a sandbox installation
Re: [Tutorial] installing symfony for OVH [message #11371 is a reply to message #11332 ] Mon, 04 September 2006 10:19 Go to previous messageGo to next message
Fred  is currently offline Fred
Messages: 10
Registered: August 2006
Location: France
Junior Member
Weird!

You don't need to modify this, i think, you should not do that.
Re: [Tutorial] installing symfony for OVH [message #11409 is a reply to message #11371 ] Mon, 04 September 2006 17:02 Go to previous messageGo to next message
stonelnd  is currently offline stonelnd
Messages: 8
Registered: March 2006
Location: france
Junior Member
yes, Embarassed i don't know why i made this change, there's no need
Re: [Tutorial] installing symfony for OVH [message #11715 is a reply to message #10307 ] Fri, 08 September 2006 12:27 Go to previous messageGo to next message
emmanuel  is currently offline emmanuel
Messages: 1
Registered: September 2006
Location: FRANCE
Junior Member
Salut Fred !
On est également chez OVH avec une appli symfony et j'espère que tes infos vont aider notre développeur. Si tu pouvais me communiquer ton mail ou tél ici : info@web-conseil.net on aura peut-etre besoin de ton aide (rémunération a l'appui...)
Merci de nous aider.
Cordialement.
Manu
Re: [Tutorial] installing symfony for OVH [message #16091 is a reply to message #11715 ] Fri, 17 November 2006 09:03 Go to previous messageGo to next message
mensonge  is currently offline mensonge
Messages: 27
Registered: September 2006
Junior Member
Hello.

Has someone resolved the "No input file specified." problem in OVH installation ?

When I call "path.../index.php" I have no problem but when I call "path.../index.php/" I have a "No input file specified." message.

A message on OVH forum talks about that :
http://forum.ovh.com/archive/index.php/t-5461.html

Any idea ? Is there a way to know which file is not found ?

(I have a "start1G" account in OVH.)
"No input file specified." problem in OVH installation [message #16092 is a reply to message #16091 ] Fri, 17 November 2006 09:18 Go to previous messageGo to next message
mensonge  is currently offline mensonge
Messages: 27
Registered: September 2006
Junior Member
Hello again.

As say in :
http://forum.ovh.com/archive/index.php/t-5461.html

I add "mod_gzip_on Off" in my .htaccess in /web and the "No input file specified." disappeared.

I don't know if it could have later consequences on Symfony operations but it is OK for the moment.

Maybe a line could be added in the Trac Wiki ?
http://www.symfony-project.com/trac/wiki/InstallingSymfonyOn OVH
Re: [Tutorial] installing symfony for OVH [message #16110 is a reply to message #10307 ] Fri, 17 November 2006 11:37 Go to previous messageGo to next message
COil  is currently offline COil
Messages: 466
Registered: September 2006
Faithful Member

Yes feel free to update. Smile


my Symfony Blog - http://www.strangebuzz.com
The symfony web debug bar as a standalone library : PEAR::PHP_Debug
Re: [Tutorial] installing symfony for OVH [message #17289 is a reply to message #16110 ] Mon, 04 December 2006 21:58 Go to previous messageGo to next message
riceums  is currently offline riceums
Messages: 18
Registered: September 2006
Junior Member
Hello

I proceed the installation in OVH with this tutorial, but something is still wrong in my config :
- I renamed my "web" directory in "www"
- In my app_dir/config/config.php file, i added the code lines
- I've modified the .htaccess

If I want to test, I have to enter the url
www.my_domain.com/www/index.php
All seems ok expected the path for all web resources : www/ is required in all my web resources url !

Maybe I need to configure a virtual directory ?
Something wrong in my install ?
Re: [Tutorial] installing symfony for OVH [message #17309 is a reply to message #17289 ] Tue, 05 December 2006 08:39 Go to previous messageGo to next message
mensonge  is currently offline mensonge
Messages: 27
Registered: September 2006
Junior Member
Maybe you can try to put a symlink (symbolic link) in "my_domain.com" redirecting to your "www" folder.

You can see how to do this in http://www.symfony-project.com/trac/wiki/InstallingSymfonyOn SharedHostNoSsh

[Updated on: Tue, 05 December 2006 08:39]

Re: [Tutorial] installing symfony for OVH [message #17428 is a reply to message #17309 ] Thu, 07 December 2006 00:32 Go to previous messageGo to next message
riceums  is currently offline riceums
Messages: 18
Registered: September 2006
Junior Member
Ok, thank you for your help, but problem was "just" that files were in the wrong directory.
All the app directories (apps, batch, cache, config...) must be copied into the / directory of the server, and the content of the web directory in the /www directory of the server.
Then, don't forget to clear the cache

Then other problem but corrected with other comments (mod_gzip_on Off).

Thank you mensonge for your help and comments.

Now I will try the symbolic links for all javascript include problems (use_helper generate include with url like "/sf/js/prototype/prototype.js")
Re: [Tutorial] installing symfony for OVH [message #19149 is a reply to message #10307 ] Sun, 07 January 2007 22:48 Go to previous messageGo to next message
Sylvio  is currently offline Sylvio
Messages: 58
Registered: May 2006
Location: Avignon, France
Member
Hi I have a problem with OVH too:

This website :
http://www.ehandicap-record.com/index.php work fine

but if I access it by :
http://www.ehandicap-record.com

All the Symfony generated url (for css, js, links, images, ...) are incorrect, they take the absolute path (???) instead of web path :
ex:
"/home/ehandica/www/css/main.css" instead of "/css/main.css"
"/home/ehandica/www/fr/contact/index.html" instead of "/fr/contact/index.html"

I don't manage to find the problem.
I use Symfony 1.0 Beta3

[Updated on: Sun, 07 January 2007 22:51]


Sylvain Papet - Web Developper
Com-Océan / www.com-ocean.com
Re: [Tutorial] installing symfony for OVH [message #19270 is a reply to message #19149 ] Mon, 08 January 2007 22:02 Go to previous messageGo to next message
Sylvio  is currently offline Sylvio
Messages: 58
Registered: May 2006
Location: Avignon, France
Member
Resolved: it work by adding at the beginning of index.php :
$_SERVER['SCRIPT_NAME']='/index.php';


Sylvain Papet - Web Developper
Com-Océan / www.com-ocean.com
Re: [Tutorial] installing symfony for OVH [message #20147 is a reply to message #19270 ] Mon, 22 January 2007 10:38 Go to previous messageGo to next message
_k20_  is currently offline _k20_
Messages: 68
Registered: July 2006
Member
Hi,

My symfony application, with ovh, don't work with this htaccess file (error 404). I deleted all exept SetEnv PHP_VER 5, and now it works.

!

[Updated on: Thu, 25 January 2007 14:51]

Re: [Tutorial] installing symfony for OVH [message #27167 is a reply to message #10307 ] Sun, 13 May 2007 21:44 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Hi,

I did the tutorial from step 1 to step 4.

When i call www.mydomain.com or www.mydomain.com/index.php nothing happen. I have a blank page.
When i call www.mydomain.com/frontend_dev.php it works.

I have an app backend. I call www.mydomain.com/backend_dev.php and www.mydomain.com/backend.php it works.

Any Ideas ?



Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #27421 is a reply to message #27167 ] Wed, 16 May 2007 19:33 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

It's ok, I clear the cache Confused


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #29507 is a reply to message #10307 ] Sat, 16 June 2007 03:45 Go to previous messageGo to next message
amsmams  is currently offline amsmams
Messages: 69
Registered: May 2007
Location: Dakar, Sénégal. Africa
Member
Hello,
I have a 240plan on OVH.

I have follow the tutorial but i got this error?

Fatal error: Class 'sfConfig' not found in home.10.9/myaccount/config/config.php on line 8.

I use the sandbox for this application.

Thanks for any help.

[Updated on: Sat, 16 June 2007 03:46]

icon10.gif  Re: [Tutorial] installing symfony for OVH [message #29651 is a reply to message #29507 ] Mon, 18 June 2007 15:18 Go to previous messageGo to next message
amsmams  is currently offline amsmams
Messages: 69
Registered: May 2007
Location: Dakar, Sénégal. Africa
Member
The problem was where to paste the new config attributes. For my installation (maybe because it's a sandbox), i put the config extentions in apps/myapp/config/config.php like stonelnd said instead of /config/config.php.

Therefore, those who use sandbox can try the two issues for there setup.

Thanks for this tuto... Smile
Re: [Tutorial] installing symfony for OVH [message #33356 is a reply to message #10307 ] Tue, 14 August 2007 12:35 Go to previous messageGo to next message
Nab4  is currently offline Nab4
Messages: 11
Registered: May 2007
Junior Member
After deploying a few applications on OVH here's what I learned from it :

1 - using "check" for magic_quotes_gpc and register_globals doesn't remove the warning, which is a bit annoying in dev and fills up logs with useless lines in prod. You can disable it by adding this to config/php.yml :

warn:
  register_globals: 1
  magic_quotes_gpc: 1


2 - On shared hosting, you can't send emails using smtp, the only possibility is to use the mail() command. So you need to specify it to symfony by adding this line to mailer.yml (in apps/name/module/config/ folder)

all:
  mailer:     mail


Don't add any other thing (no smtp name, login, pass... nothing).

And another thing on shared hosting, you cannot use shell or php scripts to send emails periodically, only way is to go through a web page (due to OVH shared hosting architecture, scripts and php called from apache are executed in a totally different environment, one allowing mails through mail(), the other blocking all emails)

3 - no_script_name can cause problems with URL, this seems to be caused by the apache gzip module having trouble with symfony URL (sometimes it can't find the data to compress), you can disable this module by adding this to the .htaccess file in your www directory :

<IfModule mod_gzip.c>
  mod_gzip_on           Off
</IfModule>
Re: [Tutorial] installing symfony for OVH [message #55075 is a reply to message #10307 ] Sat, 28 June 2008 10:45 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
Hi,

First, big thanks for this procedure Smile

I've spent my evening yesterday trying to install my symfony project on my new OVH server... I've subscribed to the "90 plan" offer, and followed this tuto, but whatever I do, I finish on this page :

Application error
symfony application failed to start properly"[QSA,L]


I've tried without freezing my project (twice), and with freezing it, same result...

Here is the files tree of my home:

apps/
batch/
cache/
cgi-bin/
config/
data/
doc/
lib/
log/
plugins/
requetes/
symfony
symfony.php
symfony_project/ (that's the source of symfony 1.0.16)
test/
www/


In addition, when I execute the symfony command using ssh, I get this error :

$ ./symfony 
X-Powered-By: PHP/4.4.8
Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home.10.34/humourpoa/data/symfony/bin/symfony.php</b> on line <b>42</b><br />


Does somebody see something I missed?
Is this procedure up to date for the new OVH offers?
Re: [Tutorial] installing symfony for OVH [message #55134 is a reply to message #55075 ] Mon, 30 June 2008 09:45 Go to previous messageGo to next message
Nab4  is currently offline Nab4
Messages: 11
Registered: May 2007
Junior Member
Quote:

$ ./symfony
X-Powered-By: PHP/4.4.8
Content-type: text/html


http://www.symfony-project.org/book/1_0/03-Running-Symfony
"Being a PHP 5 framework, symfony requires PHP 5."
Re: [Tutorial] installing symfony for OVH [message #55136 is a reply to message #55075 ] Mon, 30 June 2008 09:57 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Hello,

First you have to freeze project to run your project on a 90 plan.

Through ssh you have to use php5 symfony command. Ovh install both php4 and php5, but php4 is the default one.


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #55137 is a reply to message #55134 ] Mon, 30 June 2008 09:58 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
Nab4 wrote on Mon, 30 June 2008 09:45

Quote:

$ ./symfony
X-Powered-By: PHP/4.4.8
Content-type: text/html


http://www.symfony-project.org/book/1_0/03-Running-Symfony
"Being a PHP 5 framework, symfony requires PHP 5."

yep, OVH supports both PHP4 & PHP5, but the default setting is PHP4, that's why we have to insert "SetEnv PHP_VER 5" in the .htaccess file.
But the command line tool isn't in the web (or www) directory. So I don't know how we can use the command line tool... Anyway, it is a secondary problem, I still have a 500 error Sad


edit: lionel, I've already tried to freeze my project, it didn't work better... Sad but I'll try again if it works for you
how do I use php5 for ssh command line?

[Updated on: Mon, 30 June 2008 10:04]

Re: [Tutorial] installing symfony for OVH [message #55141 is a reply to message #10307 ] Mon, 30 June 2008 10:23 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Yes you have to freeze because ovh do not install symfony on servers.

After freeze look up your config/config.php project file and you will understand that this command copy symfony file in your project and configures it.

You add Set_env in .htaccess, it's just for the web request, not for command line.

In the root of your hosting you typed : ./symfony so try php5 symfony or php5 symfony.php

If project is not freeze, you will get errors.


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #55145 is a reply to message #55141 ] Mon, 30 June 2008 10:28 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
thanks
php5 command is not recognized Sad
$ php5
-ovh: php5: command not found


but I've found the right command Smile (*proud*)

~$ php.BETA symfony    
X-Powered-By: PHP/5.2.6
Content-type: text/html

available pake tasks:
  clear-cache                > clear cached information
  clear-controllers          > clear controllers
...

yahoo!

[Updated on: Mon, 30 June 2008 10:30]

Re: [Tutorial] installing symfony for OVH [message #55146 is a reply to message #10307 ] Mon, 30 June 2008 10:32 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Have you try php.BETA symfony ?


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #55150 is a reply to message #55146 ] Mon, 30 June 2008 11:12 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
lionel wrote on Mon, 30 June 2008 10:32

Have you try php.BETA symfony ?

yep, that's it! the command line works fine! thanks Smile
I'll work on my 500 error now...
Re: [Tutorial] installing symfony for OVH [message #55166 is a reply to message #10307 ] Mon, 30 June 2008 12:40 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
I started from scratch (again), using freeze command before uploading, and I still get the 500 error message "symfony application failed to start properly"... Confused

Am I in the case "If "SetEnv PHP_VER 5" doesn't work, ignore step 4 above but continue as follows:" ??
Re: [Tutorial] installing symfony for OVH [message #55178 is a reply to message #10307 ] Mon, 30 June 2008 14:14 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Nope, it's a problem of rewriting.

Try this chunk of code. It uses rewriting to redirect all request to google.fr

SetEnv PHP_VER 5
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteRule ^(.*)$ http://www.google.fr [R,L]
</IfModule>
# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"


And could you post your .htaccess file please ?


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #55205 is a reply to message #10307 ] Mon, 30 June 2008 20:53 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
I've tried your code, I'm successfully redirected to google.fr
So the rewriting seems to work fine, good point...

here is my htaccess file...

SetEnv PHP_VER 5
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteCond %{REQUEST_URI} !frontend_dev\.php
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ /index.html [QSA]
  RewriteRule ^([^.]+)$ /$1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ /index.php [QSA,L]
  RewriteRule ^frontend_dev\.php/(.*)$ /frontend_dev.php [QSA,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"
Re: [Tutorial] installing symfony for OVH [message #55207 is a reply to message #10307 ] Mon, 30 June 2008 21:37 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
And if I delete the .htaccess file (or rename it), I still get the default 500 error page...
I don't understand why... Sad

[Updated on: Mon, 30 June 2008 21:37]

Re: [Tutorial] installing symfony for OVH [message #55208 is a reply to message #10307 ] Mon, 30 June 2008 22:05 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
Argl !! I've finally found the problem ! And as expected, it was a very small ******* bug... I've taken a look at the ovh doc, and the solution was in ! A permission problem on my root directory ! It was 755 instead of 705... (I don't remember having changed it, anyway... maybe !)

Thanks a lot lionel!


edit: it's the sync command who changes the root directory permissions...

[Updated on: Mon, 30 June 2008 22:19]

Re: [Tutorial] installing symfony for OVH [message #55220 is a reply to message #10307 ] Tue, 01 July 2008 02:38 Go to previous messageGo to next message
lionel  is currently offline lionel
Messages: 14
Registered: March 2007
Location: Montpellier
Junior Member

Laughing I love when I help without give solution Rolling Eyes


Présentation gratuite de symfony par Fabien Potencier.
Le 09 Octobre à Montpellier.
infos : http://s.ymfony.com
Re: [Tutorial] installing symfony for OVH [message #55364 is a reply to message #10307 ] Wed, 02 July 2008 14:11 Go to previous messageGo to next message
gregoire_m  is currently offline gregoire_m
Messages: 50
Registered: May 2008
Location: France
Member
It works, but I have strange behaviors on this server, that I don't have on my computer or on other servers... Such as a template which is not found, whereas it exists and has the right permissions, and this problem is fixed by itself, without any action of me...
Re: [Tutorial] installing symfony for OVH [message #57639 is a reply to message #10307 ] Sat, 02 August 2008 08:39 Go to previous messageGo to previous message
OverSoul  is currently offline OverSoul
Messages: 1
Registered: August 2008
Junior Member
Hello,

I post here because my problem concern 90Plan of OVH.

Since thursday 31 july, OVH have install Apache2 on 90Plan and the .htaccess don't work ever.

Because I am noob in .htaccess, I ask here if someone say how corrige the htaccess to work it on Apache 2.

my error message : Internal Server Error.

I use this .htaccess :
Quote:


SetEnv PHP_VER 5
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteCond %{REQUEST_URI} !frontend_dev\.php
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ /index.html [QSA]
RewriteRule ^([^.]+)$ /$1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ /index.php [QSA,L]
RewriteRule ^frontend_dev\.php/(.*)$ /frontend_dev.php [QSA,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"




Thank you very much

Previous Topic:cannot make it work on netfirms, see the error
Next Topic:sf_sandbox installtion error on windows xampp server
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software