Though problems I'm going to discuss are for symfony 1.2, I guess it applicable to 1.0 and 1.1 as well.
I finally got symfony works on Godaddy shared hosting, I guess if I were running any sort of Dedicated hosting, these problem cocould not have happened, as I have full control.
The first problem hit me is PHP version, symfony needs PhP5, and Godaddy supports PhP5-good. however, it seems Godaddy's default PHP is still PhP4 so have to set alias to make sure symfony script is interpreted by PhP5 instead of PhP4:
Alias symfony = '/usr/local/PHP/bin/PHP/path/to/symfony-1.2.7/data/bin/symfony'
After this, I got the problem, saying:
/Usr/local/PhP5/bin/PHP: Symbol 'client _ errors 'has different size in shared object, consider re-linking
And turned out it was because of MYSQL client lib problem-I don't know the detail yet, but seems/usr/local/PhP5/bin/PHP and/web/cgi-bin/PhP5 are both linked to/usr/lib/MySQL/libmysqlclient. so.15, which works for/Web one but not the/usr one. I did some tests and found/usr/lib/libmysqlclient. so.14.0.0 works perfect with/usr/local/PhP5/bin/PHP, so put this into my. bash_profile:
Ld_preload =/usr/lib/libmysqlclient. so.14.0.0
Note that/usr/lib/libmysqlclient. so.10.0.0 doesn't work well as it's too old to support modern (new) password encrypt/authentication.
By now I can use symfony do the development job, But problem are still there while I'm trying to browse from browser, the first thing is rewrite rules-these lines shoshould be uncommented from Web /. htaccess:
Rewritebase/
Rewritecond % {request_uri} \... + $
Rewritecond % {request_uri }! \. Html $
Rewriterule. *-[l]
Then I met the problem (which took me longest time to solve) with error:
Empty module and/or action after parsing the URL "/index. php "(/).
Actually I shoshould have got it solve earlier if I search on the web, there is a great article talking about the solution, and my problem got solved just after 1st part of solution mentioned by the blog-adding following lines to "all" section of apps/frontend/config/factories. yml:
request: param: path_info_key: REQUEST_URI
Be careful with intending, original blog seems not doing the right thing and put "request" and "Param" in same level, which is wrong.
Alright, by this time you will be able to play with symfony on Shared hosting with Godaddy.