symfony
symfony forum
Home » support » Installation and setup » [Solved] Do not use VirtualHost
[Solved] Do not use VirtualHost [message #20787] Thu, 01 February 2007 22:48 Go to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
Hi,

If I use symfony from sandbox, I don't need to setup the web server, since the application is in the web/ root directory.

This is the desired situation that I want. If I want to go through the pear installation method, I can't put my application in the web/ root directory any more.

How could I tweak the pear installation so that it allows me to put my application in the web/ root directory, so I don't need to setup the virtual hosting?

Thanks

PS.

I searched before I posted, and only found this un-answered request:

Quote:


torspo on 2006-01-26

I really don't like the VirtualHost thing. That is what pushed me away from this project to explore other projects such as Cake, but now I'm back since I didn't like it there.

Is there a simple way to start a new app in /www_root/myapp/ that would be accessed via http://localhost/myapp/ or ~user/public_html/myapp that would be accessed via http://localhost/~user/myapp/ instead?


[Updated on: Tue, 06 February 2007 16:01]


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: Do not use VirtualHost [message #20788 is a reply to message #20787 ] Thu, 01 February 2007 23:10 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9514
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Quote:

If I want to go through the pear installation method, I can't put my application in the web/ root directory any more.

Not true. Why do you say that? Most of the stuff in the VirtualHost container can be replicated in the root server, AFAIK.

To be honest it doesn't matter if you use the root server or have VirtualHost container(s) and no root server instead. The Apache docs specifically state that both are perfectly legitimate configurations. I've no idea why the previous poster claims not to like VirtualHost "things".


Remember Palestine
Re: Do not use VirtualHost [message #20839 is a reply to message #20788 ] Fri, 02 February 2007 17:05 Go to previous messageGo to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
halfer wrote on Thu, 01 February 2007 17:10

Not true. Why do you say that?


well, I should say, not fully working. You might have fixed it in just seconds without thinking too much of it, but if unfixed, the result looks terrible, I guess the CSS is missing, and the images too.


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: Do not use VirtualHost [message #20851 is a reply to message #20787 ] Fri, 02 February 2007 18:11 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9514
Registered: January 2006
Location: West Midlands, UK
Faithful Member
It's almost certainly to do with the /sf alias not working. Try surfing to this:

http://localhost/sf/images/sf_web_debug/sf.png

The JS and the images are in the same subfolder, so I'd tweak the alias directive in your Apache root container. What is it set to presently?


Remember Palestine
Re: Do not use VirtualHost [message #20924 is a reply to message #20851 ] Sun, 04 February 2007 00:30 Go to previous messageGo to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
halfer wrote on Fri, 02 February 2007 12:11

It's almost certainly to do with the /sf alias not working.


Thanks for the help. It turns out that I simply only need to do:

 cd symfony_project
 ln -s /usr/share/php/data/symfony/web/sf web


Since the symfony installation place might be different from system to system, is there any way that I can get this '/usr/share/php/data/symfony' reported by symfony somehow?

thx


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: Do not use VirtualHost [message #20929 is a reply to message #20787 ] Sun, 04 February 2007 01:04 Go to previous message
halfer  is currently offline halfer
Messages: 9514
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yes, a symlink will do it. The Alias tends to be recommended but both are equally good, to be honest.

Quote:

Since the symfony installation place might be different from system to system, is there any way that I can get this '/usr/share/php/data/symfony' reported by symfony somehow?

I think so. Get the debug toolbar on screen (using your dev front controller, probably at http://localhost/frontend_dev.php) and click on vars & config > Settings. I think the path stuff is all in there.


Remember Palestine
Previous Topic:Please respond..
Next Topic:config
Goto Forum:
  

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