Yii Framework Forum: Pdo Errors When Running Via Php Cli - Yii Framework Forum

Jump to content

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

Pdo Errors When Running Via Php Cli Rate Topic: -----

#1 User is offline   Ruok2bu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 30-June 12

Posted 01 August 2014 - 07:55 PM

When i run my console application as a regular user it fails with the following message:

PHP Error[2]: include(PDO.php): failed to open stream: No such file or directory
    in file /xxxx/xxxxx/backend/framework/YiiBase.php at line 427
#0 /xxxx/xxxxx/backend/framework/YiiBase.php(427): autoload()


I've been doing a lot of reading and i understand that it's doing this because it can't find PDO. The weird thing is, as root it runs fine, no errors at all.

Any idea how i can get it to run with my user?

P.S. Adding user to suders for /usr/bin/php fixes it, but i really don't want to do this.

P.S.S. It's YII v1.1.15 on Ubuntu 14.04 LTS
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