Installation using Amazon EC2 step_02.php


(Freedomoss) #1

Hi,


I am trying to install MySource using Amazon EC2 under Ubuntu OS Server 10.04 LTS and I am getting the message below:



PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/mysource/core/include/init.inc on line 30



Fatal error: Uncaught exception 'Exception' with message 'Could not create database connection: DBError!:could not find driver' in /var/www/mysource/core/include/mysource.inc:3355

Stack trace:

#0 /var/www/mysource/core/include/mysource.inc(222): MySource->changeDatabaseConnection('db')

#1 /var/www/mysource/core/include/init.inc(243): MySource->init()

#2 /var/www/mysource/install/step_02.php(57): require_once('/var/www/mysour…')

#3 {main}

thrown in /var/www/mysource/core/include/mysource.inc on line 3355



Any help would appreciate very much!



Regards,


(Benjamin Pearson) #2

[quote]
Hi,



I am trying to install MySource using Amazon EC2 under Ubuntu OS Server 10.04 LTS and I am getting the message below:



PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/mysource/core/include/init.inc on line 30



Fatal error: Uncaught exception 'Exception' with message 'Could not create database connection: DBError!:could not find driver' in /var/www/mysource/core/include/mysource.inc:3355

Stack trace:

#0 /var/www/mysource/core/include/mysource.inc(222): MySource->changeDatabaseConnection('db')

#1 /var/www/mysource/core/include/init.inc(243): MySource->init()

#2 /var/www/mysource/install/step_02.php(57): require_once('/var/www/mysour…')

#3 {main}

thrown in /var/www/mysource/core/include/mysource.inc on line 3355



Any help would appreciate very much!



Regards,

[/quote]



a. What version? It looks like you are running a 3.x version under PHP 5.3 which is not supported, try getting version 4.0.0 for PHP 5.3

b. The database driver is missing or wrong, you need either Oracle (oci8) or PostgreSQL (pgsql)


(Freedomoss) #3

[quote]
a. What version? It looks like you are running a 3.x version under PHP 5.3 which is not supported, try getting version 4.0.0 for PHP 5.3

b. The database driver is missing or wrong, you need either Oracle (oci8) or PostgreSQL (pgsql)

[/quote]





Thanks Benj! I installed or using MySource ver. 3.28.5. Okay, I will try getting the ver. 4.0 for PHP 5. I am using PostgreSQL ver. 8.4, which is packaged by Ubuntu.



Does the driver is already part of the ver. 4.0.0?



Regards,


(Benjamin Pearson) #4

[quote]
Thanks Benj! I installed or using MySource ver. 3.28.5. Okay, I will try getting the ver. 4.0 for PHP 5. I am using PostgreSQL ver. 8.4, which is packaged by Ubuntu.



Does the driver is already part of the ver. 4.0.0?



Regards,

[/quote]



Matrix always has had PostgreSQL support, more so this version in later version (your version should be fine with 8.4). It looks more like your setup is missing a PEAR library or PHP doesn't PostgreSQL support


(Arekczer) #5

[quote]
Hi,



I am trying to install MySource using Amazon EC2 under Ubuntu OS Server 10.04 LTS and I am getting the message below:



PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/mysource/core/include/init.inc on line 30



Fatal error: Uncaught exception ‘Exception’ with message ‘Could not create database connection: DBError!:could not find driver’ in /var/www/mysource/core/include/mysource.inc:3355

Stack trace:

#0 /var/www/mysource/core/include/mysource.inc(222): MySource->changeDatabaseConnection(‘db’)

#1 /var/www/mysource/core/include/init.inc(243): MySource->init()

#2 /var/www/mysource/install/step_02.php(57): require_once(’/var/www/mysour…’)

#3 {main}

thrown in /var/www/mysource/core/include/mysource.inc on line 3355



Any help would appreciate very much!



Regards,

[/quote]

Hi,



Did you check for requirements like is on this page?

You should have installed:

  • PHP 5.2.x - for MSM 3.2x. Only MSM 4.0 can use php 5.3.
  • PEAR and required modules
  • Postgresql 8.4 or 8.3

    or
  • Oracle



    If you have all of them, please post on forum output of:

    php -m

    pear list



    Regards

    Arek