Installation on Linux (Ubuntu)

60 views
Skip to first unread message

uhusiano Kenya

unread,
Feb 3, 2012, 10:03:21 AM2/3/12
to SubjectsPlus
Anyone with instructions on installation on Linux (ubuntu) or LAMP
server?
Much appreciated.

Nathan Schwartz

unread,
Feb 5, 2012, 3:26:31 PM2/5/12
to subjec...@googlegroups.com
I've seen a lot of websites on LAMP installation.

http://www.howtoforge.com/ubuntu_lamp_for_newbies
http://tuxtweaks.com/2010/04/installing-lamp-on-ubuntu-10-04-lucid-lynx/





--
You received this message because you are subscribed to the Google Groups "SubjectsPlus" group.
To post to this group, send email to subjec...@googlegroups.com.
To unsubscribe from this group, send email to subjectsplus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/subjectsplus?hl=en.


Andrew Darby

unread,
Feb 6, 2012, 8:58:28 AM2/6/12
to subjec...@googlegroups.com
As for SubjectsPlus itself, the instructions on the wiki are pretty
much assuming you're working in a LAMP environment:

http://www.subjectsplus.com/wiki/index.php?title=SubjectsPlus_Wiki

There are some notes there under Overview and Requirements about what
you need to have in place for everything to work smoothly.

uhusiano Kenya

unread,
Feb 6, 2012, 12:26:56 PM2/6/12
to SubjectsPlus
Andrew,
I did install on ubuntu and everything seems fine when i go to
localhost/sp but with these errors

exception 'Exception' with message 'Could not connect to database
server.' in /var/www/sp/control/includes/classes/sp_DBConnector.php:37
Stack trace: #0 /var/www/sp/subjects/index.php(20): sp_DBConnector-
>__construct('root', 'kohadb', 'sp', '127.0.1.1') #1 {main}

Please help.

EM Njoroge

uhusiano Kenya

unread,
Feb 6, 2012, 12:27:16 PM2/6/12
to SubjectsPlus
I did install on ubuntu and everything seems fine when i go to
localhost/sp but with these errors

exception 'Exception' with message 'Could not connect to database
server.' in /var/www/sp/control/includes/classes/sp_DBConnector.php:37
Stack trace: #0 /var/www/sp/subjects/index.php(20): sp_DBConnector-
>__construct('root', 'kohadb', 'sp', '127.0.1.1') #1 {main}

Please help.

EM Njoroge


On Feb 6, 4:58 pm, Andrew Darby <agda...@gmail.com> wrote:

Andrew Darby

unread,
Feb 6, 2012, 12:31:50 PM2/6/12
to subjec...@googlegroups.com
Well, you have a problem with your connection to the database.
Double-check these variables in control/includes/config.php

$hname = "";
$uname = "";
$pword = "";
$dbName_SPlus = "";

to make sure you have the right values in there. Is your database
named "sp" without any other prefix or anything?

uhusiano Kenya

unread,
Feb 7, 2012, 10:02:23 AM2/7/12
to SubjectsPlus
Can anyone send me their config.php for comparison please...

This is my screenshot of the error: http://screencast.com/t/nJ4TsqkgPj


EM Njoroge
evan.n...@googlemail.com

Andrew Darby

unread,
Feb 7, 2012, 10:16:42 AM2/7/12
to subjec...@googlegroups.com
Hi. I think your connection information is still wrong.

$uname and $pword are the username and password to connect to MySQL.
I'm not sure how you do/did this when you set up MySQL. I think by
defaul the user is "root" and the password is "" (i.e., empty). This
is something one should change. You might want to create a user
specifically for subjectsplus, like, sp_user and then give them the
permissions + password. Here's a post about retrieving/resetting your
password:

http://stackoverflow.com/questions/4371/how-do-i-retrieve-my-mysql-username-and-password

I can't vouch for this method.

$dbName_SPlus is whatever name you have give the database that stores
SubjectsPlus. "sp" is what I happen to call it, and works as well as
any name.

Do you have any sort of gui interface to look at MySQL like phpMyAdmin
or SQLyog? I tend to use these tools or cpanel to manage databases,
so I'm not up on how you do it by the command line. Though I'm sure
google would have some ideas.

Andrew

uhusiano Kenya

unread,
Feb 19, 2012, 9:10:55 AM2/19/12
to SubjectsPlus

I managed to hack it, I discovered that at the Baseurl I needed to add
http://
and that solved it all. Thanks for your help.

On Feb 7, 6:16 pm, Andrew Darby <agda...@gmail.com> wrote:
> Hi.  I think your connection information is still wrong.
>
> $uname and $pword are the username and password to connect to MySQL.
> I'm not sure how you do/did this when you set up MySQL.  I think by
> defaul the user is "root" and the password is "" (i.e., empty).  This
> is something one should change.  You might want to create a user
> specifically for subjectsplus, like, sp_user and then give them the
> permissions + password.  Here's a post about retrieving/resetting your
> password:
>
> http://stackoverflow.com/questions/4371/how-do-i-retrieve-my-mysql-us...
>
> I can't vouch for this method.
>
> $dbName_SPlus is whatever name you have give the database that stores
> SubjectsPlus.  "sp" is what I happen to call it, and works as well as
> any name.
>
> Do you have any sort of gui interface to look at MySQL like phpMyAdmin
> or SQLyog?  I tend to use these tools or cpanel to manage databases,
> so I'm not up on how you do it by the command line.  Though I'm sure
> google would have some ideas.
>
> Andrew
>
> On Tue, Feb 7, 2012 at 10:02 AM, uhusiano Kenya
>
>
>
> <evan.njor...@googlemail.com> wrote:
> > Can anyone send me their config.php for comparison please...
>
> > This is my screenshot of the error:http://screencast.com/t/nJ4TsqkgPj
>
> > EM Njoroge
> > evan.njor...@googlemail.com
Reply all
Reply to author
Forward
0 new messages