News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Martin Sikora's Blog:
Symfony 1.4 on shared webhosting
June 27, 2011 @ 11:07:36

On his blog Martin Sikora shares a solution that many a Symfony developer out there might find handy for running their application in a shared hosting environment:

Some time ago (actually when I was making this blog) I posted on stackoveflow.com a question on how to configure Symfony to run on shared webservers where you can't change your website's document root. I solved it but forgot that I was asking and left it without any answer.

The main problem is that the DOCUMENT_ROOT for the hosting service can't be changed by the users of the shared host. To solve this he modified his routing rules (sfPatternRouting class) and changed his .htaccess file to rewrite things over from just "/page" to "/web/page" instead. A simple solution, but it might be evasive if you've never configured it before.

0 comments voice your opinion now!
symfony setup shared hosting web tutorial route htaccess


blog comments powered by Disqus

Similar Posts

SocialDevelopers.net: Facebook and the Zend Framework - Part 1: Iframe Authentication

Carson McDonald's Blog: Building HipHop PHP for Fedora 12 on 64 bit and 32 bit Systems

Robert Basic's Blog: Listening to Dbus signals with PHP

HowTo Forge: Installing The PHP-MSSQL Module On CentOS 5.0

DevShed: Protecting PHP 5 Class Data with Member Visibility


Community Events

Don't see your event here?
Let us know!


extension example community version conference opinion release symfony2 series framework podcast laravel xdebug performance api introduction library interview voicesoftheelephpant php7

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework