[Solar-talk] How to make Solar work if you install it in a subfolder of server root?
grab mail
grabmail at gmail.com
Thu Aug 17 06:07:27 PDT 2006
Thanks. That works.
However, the uri path problem still exists.
http://localhost/Solar/public_html/
looks for Solar page
404: Page 'Solar' unknown.
How to tell Solar URI that my public root starts at
http://localhost/Solar/public_html/
I tried to set
$config['Solar_Uri_Public']['path'] $config['Solar_Uri']['path']
Didn't work.
The only way i made it work is by hacking into the
Solar_Controller_Front::fetch function as add
$uri->setPath
On 8/17/06, Jeff Surgeson <solar at 3hex.com> wrote:
>
> > I am currently doing a lot of projects, so i cannot afford to put
> > index.phpat the server root.
> > So my structure is as follows:
> > /public_html/project1/public_html/index.php
> > /public_html/project2/public_html/index.php
> > ....
> > /public_html/solar/public_html/index.php
> >
> > So to reach solar index.php, my url would be
> > http://localhost/solar/public_html/ instead of simply http://localhost/
> >
> > However, i can't seem to find any way i can tell Solar where my public
> root
> > is.
>
> I also work with a number of projects in my root folder so had the same
> problem at first. You need to add your solar vendor dir path and the dir
> where your index.php file is to your include path. This is what I put in
> my
> index.php file to get it to work, obviously replace with your own
> specifics.
> I also do not install solar via pear but download and copy Solar to a
> directory in my web root. This is not the recommended way it just works
> for
> me as I do not control my remote web server so need to add solar myself.
>
> define('WEB_ROOT', '/var/www/localhost/htdocs' );
> define('SITE_DIR', '/project1/public_html/'); //where you index.php is
>
> define('LIB_ROOT', WEB_ROOT .'/Solar');
> define('VEN_ROOT', WEB_ROOT .'/dir_where_solar_vendor_app_files'); //where
> your app files are.
>
> set_include_path(
> WEB_ROOT . PATH_SEPARATOR .
> SITE_DIR . PATH_SEPARATOR .
> LIB_ROOT . PATH_SEPARATOR .
> VEN_ROOT . PATH_SEPARATOR
> );
>
> // solar config path
> define('SOLAR_CONFIG_PATH', VEN_ROOT .'/Solar.config.php');
>
> // Load and start Solar
> require_once('Solar.php');
> Solar::start();
>
> // Instantiate and run the front controller
> $front > $front->display();
>
> // Done!
> Solar::stop();
>
> --
> Jeff Surgeson / South Africa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20060817/357e4d09/attachment.htm
More information about the solar-talk
mailing list