Nothing changed. Still theese errors: Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php) [function.require]: failed to open stream: No such file or directory in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188
Fatal error: require() [function.require]: Failed opening required '/ home/xx/public_html/api/lib/vendor/symfony/lib/plugins/ sfDoctrinePlugin/lib/database/ sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/ lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188 On May 27, 11:45 am, Tom Ptacnik <[email protected]> wrote: > I think it can be done easily... it's just about moving the web folder > somewhere else. And you have to configure you virtual in a right way > of course. > > Virtual > - classic - for you into public_html/api > don't forget for alias for vendor/symfony/data/web/sf (The Alias > statement is necessary for the images of the debug sidebar to be > displayed) > > Then the project > private_html/api = application > public_html/api = web > > 1) All stuff from /web folder move to public_html/api > 2) change the path to the web dir in ProjectConfiguration.class.php - > something like this should work: > $this->setWebDir($this->getRootDir().'/../../public_html/api); > > 3) change the path of the project in the front controllers: > index.php, frontend_dev.php, backend.dev.php .... something like > require_once(dirname(__FILE__).'/../../private_html/api/config/ > ProjectConfiguration.class.php'); > > On 24 kvě, 20:06, Ragnis <[email protected]> wrote: > > > > > I want to use the following directory strucure: > > > home > > ---xx > > ------private_html > > ---------api > > ------------apps > > ------------cache > > ------------config > > ------------... > > ------public_html > > ---------api > > ------------index.php > > ------------frontend_dev.php > > ------------... > > > But i don't know what files i need to edit to get it work. > > > ProjectConfiguration.class.php > > <?php > > //require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ > > sfCoreAutoload.class.php'; > > require_once '../../private_html/api/lib/vendor/symfony/lib/autoload/ > > sfCoreAutoload.class.php'; > > sfCoreAutoload::register(); > > > class ProjectConfiguration extends sfProjectConfiguration > > { > > public function setup() > > { > > $this->setWebDir($this->getRootDir().'../../public_html/api'); > > $this->enablePlugins('sfDoctrinePlugin'); > > } > > > } > > > frontend_dev.php > > <?php > > > // this check prevents access to debug front controllers that are > > deployed by accident to production servers. > > // feel free to remove this, extend it or make something more > > sophisticated. > > if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) && > > false) > > { > > die('You are not allowed to access this file. Check > > '.basename(__FILE__).' for more information.'); > > > } > > > //require_once(dirname(__FILE__).'/config/ > > ProjectConfiguration.class.php'); > > require_once('../../private_html/api/config/ > > ProjectConfiguration.class.php'); > > > $configuration = > > ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', > > true); > > sfContext::createInstance($configuration)->dispatch(); > > > I get an php error: > > > Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/ > > plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php) > > [function.require]: failed to open stream: No such file or directory > > in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ > > sfAutoload.class.php on line 188 > > > Fatal error: require() [function.require]: Failed opening required '/ > > home/xx/public_html/api/lib/vendor/symfony/lib/plugins/ > > sfDoctrinePlugin/lib/database/ > > sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/ > > lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ > > sfAutoload.class.php on line 188 > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
