[Loris-dev] Loris installation

Justin Kat justin.kat at mail.mcgill.ca
Tue Jun 9 15:28:05 EDT 2015


Hi Deepak,

Check that a config.xml file exists in your project directory. It should be
properly formatted xml and basically a copy of docs/config/config.xml but
replaced with your own hostname, username, password, and database values.
And if it does exist, check that the permissions are set correctly so that
it is accessible.

Justin

On Sat, Jun 6, 2015 at 10:49 PM, Deepak Sharma <deepaks4077 at gmail.com>
wrote:

> Guys I am still getting the blank screen at main.php.
>
> I downloaded composer and ran composer install at sites/loris/ (the
> directory with the composer.json file) but now I am getting a different
> error
>
> Now the apache error log says:
>
> [Sat Jun 06 22:39:05.050433 2015] [:error] [pid 159] [client ::1:59347]
> PHP Warning:  simplexml_load_file(): I/O warning : failed to load external
> entity "" in
> /Users/lorisadmin/Sites/loris/Loris-15.4/php/libraries/NDB_Config.class.inc
> on line 106
>
> [Sat Jun 06 22:39:05.050606 2015] [:error] [pid 159] [client ::1:59347]
> PHP Fatal error:  Uncaught exception 'Exception' with message 'Could not
> load Loris config file ' in
> /Users/lorisadmin/Sites/loris/Loris-15.4/php/libraries/NDB_Config.class.inc:109\nStack
> trace:\n#0
> /Users/lorisadmin/Sites/loris/Loris-15.4/php/libraries/NDB_Config.class.inc(90):
> NDB_Config->load(NULL)\n#1
> /Users/lorisadmin/Sites/loris/Loris-15.4/php/libraries/NDB_Client.class.inc(71):
> NDB_Config::singleton(NULL)\n#2
> /Users/lorisadmin/Sites/loris/Loris-15.4/htdocs/main.php(29):
> NDB_Client->initialize()\n#3 {main}\n  thrown in
> /Users/lorisadmin/Sites/loris/Loris-15.4/php/libraries/NDB_Config.class.inc
> on line 109
>
> The #109 line in NDB_Config.class is trying to include
> ../projects/config.xml .
>
> *config.xml does not exist at that place for me.*
>
> Can anyone help me please?
>
> Thanks,
> Deepak
>
> On Thu, Jun 4, 2015 at 9:57 AM, Dave MacFarlane <
> david.macfarlane2 at mcgill.ca> wrote:
>
>> A minor correction:
>>
>> "composer install", not "composer update".
>>
>> (Install downloads and installs the required versions of the libraries,
>> update tries to update composer.json to the latest version of the libraries
>> but doesn't install them.)
>>
>> - Dave
>>
>> ------------------------------
>> Date: Thu, 4 Jun 2015 09:36:21 -0400
>> From: sekaranrathi at gmail.com
>> To: deepaks4077 at gmail.com
>> CC: loris-dev at bic.mni.mcgill.ca
>> Subject: Re: [Loris-dev] Loris installation
>>
>>
>> Hi Deepak,
>> You need to install Composer. Follow instructions in the Globally
>> section: https://getcomposer.org/doc/00-intro.md
>>
>> After its installed do composer update.
>>
>> This should fix your issue.
>>
>> Rathi
>>
>> On Thu, Jun 4, 2015 at 9:08 AM, Deepak Sharma <deepaks4077 at gmail.com>
>> wrote:
>>
>> Hi everyone!
>>
>> I managed to install Loris but I think I might have messed up somewhere.
>> I was able to setup a localhost server for the username lorisadmin. But
>> when I loaded main.php in htdocs I didnt get anything at all. There was a
>> blank space. Here are my apache logs:
>>
>> --> [Sun May 31 18:57:22.577972 2015] [:error] [pid 1432] [client
>> ::1:59853] PHP Warning:
>>  require_once(/Users/lorisadmin/Sites/loris/Loris-15.4/htdocs/../vendor/autoload.php):
>> failed to open stream: No such file or directory in
>> /Users/lorisadmin/Sites/loris/Loris-15.4/htdocs/main.php on line 17,
>> referer: http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/
>> http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/
>> <https://exchange.mcgill.ca/owa/redir.aspx?SURL=8ffuLubB-sJ-srahKpotiYdHqWPm8oVL_YsE1AlInm3_fxNR3mzSCGgAdAB0AHAAOgAvAC8AbABvAGMAYQBsAGgAbwBzAHQALwB-AGwAbwByAGkAcwBhAGQAbQBpAG4ALwBsAG8AcgBpAHMALwBMAG8AcgBpAHMALQAxADUALgA0AC8AaAB0AGQAbwBjAHMALwA.&URL=http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/>
>>
>> --> [Sun May 31 18:57:22.578036 2015] [:error] [pid 1432] [client
>> ::1:59853] PHP Fatal error:  require_once(): Failed opening required
>> '/Users/lorisadmin/Sites/loris/Loris-15.4/htdocs/../vendor/autoload.php'
>> (include_path='.:/php/includes:/usr/share/pear:/usr/local/lib/php/Smarty:../project/libraries:../php/libraries:')
>> in /Users/lorisadmin/Sites/loris/Loris-15.4/htdocs/main.php on line 17,
>> referer: http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/
>> http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/
>> <https://exchange.mcgill.ca/owa/redir.aspx?SURL=8ffuLubB-sJ-srahKpotiYdHqWPm8oVL_YsE1AlInm3_fxNR3mzSCGgAdAB0AHAAOgAvAC8AbABvAGMAYQBsAGgAbwBzAHQALwB-AGwAbwByAGkAcwBhAGQAbQBpAG4ALwBsAG8AcgBpAHMALwBMAG8AcgBpAHMALQAxADUALgA0AC8AaAB0AGQAbwBjAHMALwA.&URL=http://localhost/~lorisadmin/loris/Loris-15.4/htdocs/>
>>
>> So it seems that apache could not find vendor/autoload.php . But I did a
>> find . -name "autoload.php" search and couldnt find one either. I also did
>> the same for"vendor" and couldnt find a vendor folder. I then cloned the
>> repo again and still couldnt find vendor/autoload.php
>>
>> Can anyone help me please? Would love to get this sorted and start
>> working on the code!
>>
>> Thanks,
>> Deepak
>>
>> _______________________________________________
>> Loris-dev mailing list
>> Loris-dev at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>
>>
>>
>> _______________________________________________ Loris-dev mailing list
>> Loris-dev at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>
>
>
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20150609/6ada0df0/attachment.html>


More information about the Loris-dev mailing list