Yii Framework Forum: Authentification Problems On Linux Machine - Yii Framework Forum

Jump to content

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

Authentification Problems On Linux Machine Rate Topic: -----

#1 User is offline   ArtyK 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-May 13

Posted 18 May 2013 - 09:27 PM

Hi everyone

I have an issue when transferring a finished Yii-application to a linux server from a windows machine. The application works fine on windows (and also on team member's OSX). For some reason i don't see some of the elements (links) in the navbar on linux. When entering the direct URL I get a 403 insufficient rights error.

I assume it has something to do with the Yii::app()->user->checkAccess() method which fails to grant me access.

When I modify the method checkAccess in CWebUser.php to return true instead of $access the application works fine except of some missing navbar elements (direct URL works then).

Any solutions, ideas or suggestions are appreciated. Thanks in advance.


My setup:

Windows machine:
Windows 7, XAMPP, PHP 5.4.4, PHP 5.3.15

Linux:
Ubuntu 12.04.02, Apache 2.2.22, MySQL 5.5.31, PHP 5.3.10
0

#2 User is offline   ArtyK 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-May 13

Posted 22 May 2013 - 10:44 AM

Hey guys

I got it fixed but I'm not really sure what the issue was. I installed Ubuntu and other essential tools on my old laptop and it just worked. Then I transferred the application folder to the server and it also worked. The only difference to the old configuration is the newer Yii-version (1.1.13 instead of 1.1.12).

thx, solved
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