[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:19:16 PDT 2006
I tried
// Your front controller href
$config['Solar_Uri_Action']['path']
# Your public directory href
$config['Solar_Uri_Public']['path'] $config['Solar_Uri']['path']
AND
// Your front controller href
$config['Solar_Uri_Action']['path']
# Your public directory href
$config['Solar_Uri_Public']['path'] $config['Solar_Uri']['path']
Both didn't work.
On 8/17/06, solar-talk-request at lists.solarphp.com <
solar-talk-request at lists.solarphp.com> wrote:
>
> Send solar-talk mailing list submissions to
> solar-talk at lists.solarphp.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.killersoft.com/mailman/listinfo/solar-talk
> or, via email, send a message with subject or body 'help' to
> solar-talk-request at lists.solarphp.com
>
> You can reach the person managing the list at
> solar-talk-owner at lists.solarphp.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of solar-talk digest..."
>
>
> Today's Topics:
>
> 1. How to make Solar work if you install it in a subfolder of
> server root? (grab mail)
> 2. Re: How to make Solar work if you install it in a subfolder
> of server root? (Rodrigo Moraes)
> 3. Re: How to make Solar work if you install it in a subfolder
> of server root? (Rodrigo Moraes)
> 4. How to make Solar work if you install it in a subfolder of
> server root? (grab mail)
> 5. Re: How to make Solar work if you install it in a subfolder
> of server root? (Jeff Surgeson)
> 6. Solar & APC (Rodrigo Moraes)
> 7. Re: How to make Solar work if you install it in a subfolder
> of server root? (grab mail)
> 8. Re: How to make Solar work if you install it in a subfolder
> of server root? (Rodrigo Moraes)
> 9. Re: How to make Solar work if you install it in a subfolder
> of server root? (Antti Holvikari)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 17 Aug 2006 03:57:25 -0700
> From: "grab mail" <grabmail at gmail.com>
> Subject: [Solar-talk] How to make Solar work if you install it in a
> subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <1d3dd0340608170357w49ca4d3bwdde7aaf059982bd2 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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.
>
> Can someone enlighten me?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.killersoft.com/pipermail/solar-talk/attachments/20060817/3321e72e/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Thu, 17 Aug 2006 08:04:53 -0300
> From: "Rodrigo Moraes" <rodrigo.moraes at gmail.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <a1f380380608170404kd8f16a6h10acf461af6c136e at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 8/17/06, grab mail wrote:
> > So to reach solar index.php, my url would be
> > http://localhost/solar/public_html/ instead of simply
> > http://localhost/
>
> Hi,
> I think you can add a config to Solar_Uri_Action in your config file:
>
> $config['Solar_Uri_Action'] > 'path' => '/solar/public_html/',
> );
>
> Or something like this. Let me know if you've solved it.
>
> rodrigo
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 17 Aug 2006 08:11:18 -0300
> From: "Rodrigo Moraes" <rodrigo.moraes at gmail.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <a1f380380608170411s351927aao1399de46fb5694f5 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hmmm. looking at it, I think it should be Solar_Uri *and*
> Solar_Uri_Action, so this would also be needed:
>
> $config['Solar_Uri'] > 'path' => '/solar/public_html/',
> );
>
> I wish we had a 'router' inside our FrontController. I'll play with
> this once I have some time. It seems that ZF's one could be simplified
> and used as a Solar router.
>
> rodrigo
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 17 Aug 2006 05:13:51 -0700
> From: "grab mail" <grabmail at gmail.com>
> Subject: [Solar-talk] How to make Solar work if you install it in a
> subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <1d3dd0340608170513g153202e7ua797c77b32f7afb7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Doesn't work. It'll only work if i add the following line in
> Controller_Front fetch()
>
> $uri->setPath('');
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.killersoft.com/pipermail/solar-talk/attachments/20060817/5781c95f/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Thu, 17 Aug 2006 14:23:32 +0200
> From: Jeff Surgeson <solar at 3hex.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Cc: grab mail <grabmail at gmail.com>
> Message-ID: <200608171423.33394.solar at 3hex.com>
> Content-Type: text/plain; charset="iso-8859-6"
>
> > 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
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 17 Aug 2006 09:42:11 -0300
> From: "Rodrigo Moraes" <rodrigo.moraes at gmail.com>
> Subject: [Solar-talk] Solar & APC
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <a1f380380608170542w69e1a46ap24f1a7c7913ecf95 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> If you also use Solar in a server with APC cache, may have suffered
> from an error like this one:
>
> Cannot access parent:: when current class scope has no parent in
> /.../Solar/View/Helper/FormSubmit.php on line 47
>
> As we know, FormSubmit *has* a parent, but this is an APC bug [1] and
> the only way I found to fix this was to load most used Solar classes
> right after Solar::start():
>
> Solar::loadClass('Solar_Struct');
> Solar::loadClass('Solar_Sql_Row');
> Solar::loadClass('Solar_Sql_Rowset');
> Solar::loadClass('Solar_View_Helper');
> Solar::loadClass('Solar_View_Helper_FormElement');
> ...
>
> I don't think that "don't use APC" is a solution in any way, because
> it dramatically increases server performance.
>
> If you know other workarounds, please share.
>
> thanks,
> rodrigo
>
> [1] http://pecl.php.net/bugs/bug.php?idS14
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 17 Aug 2006 06:07:27 -0700
> From: "grab mail" <grabmail at gmail.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar at 3hex.com
> Cc: solar-talk at lists.solarphp.com
> Message-ID:
> <1d3dd0340608170607q22637571q2c5bc1fc5e1723c4 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.htm
>
> ------------------------------
>
> Message: 8
> Date: Thu, 17 Aug 2006 10:11:18 -0300
> From: "Rodrigo Moraes" <rodrigo.moraes at gmail.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <a1f380380608170611t30bcd66anbe5389a182e2f4c7 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 8/17/06, grab mail wrote:
> > I tried to set
> >
> > $config['Solar_Uri_Public']['path'] > > '/solar/public_html/';
> > $config['Solar_Uri']['path'] > >
> > Didn't work.
>
> This should work, shouldn't it, Paul?
>
> rodrigo
>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 17 Aug 2006 16:12:35 +0300
> From: "Antti Holvikari" <anttih at gmail.com>
> Subject: Re: [Solar-talk] How to make Solar work if you install it in
> a subfolder of server root?
> To: solar-talk at lists.solarphp.com
> Message-ID:
> <de67283d0608170612g4108c261k7b2cac7f6ca978b6 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> On 8/17/06, grab mail <grabmail at gmail.com> wrote:
> > 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'] > > '/solar/public_html/';
> > $config['Solar_Uri']['path'] >
> It should be '/solar/public_html/index.php';
>
> --
> Antti Holvikari <http://phphalo.com>
>
>
> ------------------------------
>
> _______________________________________________
> solar-talk mailing list
> solar-talk at lists.solarphp.com
> http://mail.killersoft.com/mailman/listinfo/solar-talk
>
>
> End of solar-talk Digest, Vol 16, Issue 24
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20060817/b128082b/attachment-0001.htm
More information about the solar-talk
mailing list