Yii Framework Forum: Webapp testdrive - Blank Page and Error Messages - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Webapp testdrive - Blank Page and Error Messages Rate Topic: -----

#1 User is offline   mano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-March 09

Posted 26 March 2009 - 11:53 AM

Hi Guys,

i have installed everything and seems to work. At first i have some permisson problems but not i can create a webapp.

I start with the testdrive tutorial and create that successfully.

my Yii sources (like framework) is here: /srv/www/vhosts/domainname/yii/..

my webapp is here /srv/www/vhosts/domainname/httpddocs/new/testdrive

After that i get always a blank page. And i cant find anything in any log file. What happens here ? Im very frustrated now because i try all out but maye i missed one small thing .... i hope you guys have a good idea for me.

Cheers
Mano
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 26 March 2009 - 12:04 PM

Did you turn on error display in your php.ini?
0

#3 User is offline   mano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-March 09

Posted 26 March 2009 - 12:26 PM

YEEES, i put that in my  vhost.conf (plesk):

php_admin_flag display_errors ON
php_admin_flag error_reporting 2047

0

#4 User is offline   mano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-March 09

Posted 26 March 2009 - 12:52 PM

oh ... now it works i put this inside my vhost:
php_value display_errors On
php_value error_reporting 6143

that works and prints out this:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/srv/www/vhosts/domain/yii/framework/yii.php) is not within the allowed path(s): (/srv/www/vhosts/domain/httpdocs:/tmp) in /srv/www/vhosts/domain/httpdocs/new/testdrive/index.php on line 10

Warning: require_once(/srv/www/vhosts/domain/yii/framework/yii.php) [function.require-once]: failed to open stream: Operation not permitted in /srv/www/vhosts/domain/httpdocs/new/testdrive/index.php on line 10

Fatal error: require_once() [function.require]: Failed opening required '/srv/www/vhosts/domain/yii/framework/yii.php' (include_path='.:.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/domain/httpdocs/new/testdrive/index.php on line 10


0

#5 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 26 March 2009 - 01:17 PM

So it's caused by open_basedir restriction setting. You should be able to solve it?
0

#6 User is offline   mano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-March 09

Posted 26 March 2009 - 01:23 PM

no i have no idea what happens ......
0

#7 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 26 March 2009 - 01:25 PM

You should either put the Yii installation under /srv/www/vhosts/domain/httpdoc or modify your apache setting about open_basedir.
0

#8 User is offline   mano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-March 09

Posted 26 March 2009 - 01:27 PM

sorry ... yes i got it ... it works !!! but thanks for the kick  ;D
0

#9 User is offline   doddatika 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 02-April 09

Posted 02 April 2009 - 10:14 PM

Quote

You should either put the Yii installation under /srv/www/vhosts/domain/httpdoc or modify your apache setting about open_basedir.



Hi,

I am running WAMP on Windows. How do i do it there?

This is the very first time.

Please help. I am trying it out.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users