PDA

View Full Version : mambo newb, can't get past install3.php


EvilYoda
February 3rd, 2004, 22:01
It keeps on telling me that my details are incorrect and/or empty, even though I've made sure that the absolute path is right, my email's obviously quite simple, and the password is simple...is there a requirement for the password (i.e., at least one char and one digit?)

Other than that, from what I've seen and read about mambo, it looks great! I guess I might just have to do the manual install tomorrow, I just wanted to see if I could get a quick test going.

Thanks!

alwarren
February 3rd, 2004, 22:05
Did you create a database and assign it a username and password before installing?

EvilYoda
February 4th, 2004, 13:32
yep, did that...otherwise, would it even let me that far into MOS installation?

I get home around 10 tonight, so I guess I'll have some fun manual installation time. :)

spignataro
February 4th, 2004, 16:36
actually manual installation isnt that hard...i do alot of manual installations faster then i can do web based....but then again it is all to what you get use to....

but it sounds like your having a database issue. Are you running this locally?? Windows or Linux Machine?

EvilYoda
February 4th, 2004, 20:34
Remotely, my host is crediblehost...looks like I might not have time to do the install after all, damn work is piling up.

Although, one question...yesterday, I was going through the manual install, until one of the last steps, the part with the importing of the SQL into the DB...I'm not sure on how to telnet to their server to use a command prompt, is there any other way I could do this, with say, phpmyadmin or something?

alwarren
February 4th, 2004, 20:46
Although, one question...yesterday, I was going through the manual install, until one of the last steps, the part with the importing of the SQL into the DB...I'm not sure on how to telnet to their server to use a command prompt, is there any other way I could do this, with say, phpmyadmin or something?
phpMyAdmin is the best way to do that. Here's how:

1) Extract the Mambo installation package to your local machine.
2) Start phpMyAdmin on your remote machine.
3) Browse to your database.
4) Click the SQL tab.
5) Click Browse.
6) Locate the sql files in the mambo/sql folder (on your local machine).
7) Highlight the file you want to import.
8) Click open.
9) Click Go.

EvilYoda
February 4th, 2004, 21:20
Okay, well I really wanted this done soon, so I'm trying again...so I uploaded it to foo.com/mambo, then I make a database for it, then I assign a user to that DB, uncomment last 6 lines of mambo.sql, import mambo.sql and help.sql, (all done through phpmyadmin), copy configuration.php-dist to configuration.php after editing for user/pass, DB name and path. Other than that, what attributes/permissions should the folders be at, I'm still a little unsure from the FAQ?

Other than that, I just log into foo.com/mambo/administrator/ and go from there, right?

Lastly, how do I install all of this so foo.com is all I need to get to my Mambo page? Thanks! :)

alwarren
February 4th, 2004, 21:32
Here are the permissions from /mambo/documentation/install.html:

chmod -R 707 images
chmod -R 707 media
chmod -R 707 uploadfiles
chmod -R 707 components
chmod -R 707 language
chmod -R 707 modules
chmod -R 707 templates
chmod -R 707 administrator/backups
chmod -R 707 administrator/components
chmod 744 configuration.php

Remember to rename or delete your installation folder.

EvilYoda
February 4th, 2004, 22:13
Okay, well I'm gonna run through it again, and I'll probably have time to do it at work too...but how do I go about making it so that my main page (foo.com) is the Mambo area, as opposed to foo.com/mambo/ as it is now?

EvilYoda
February 4th, 2004, 22:45
<sigh>...looks like I've been out of the loop for too long, as I am getting this final error msg when I try logging into the admin

Warning: database(configuration.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(): Failed opening 'configuration.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(offline.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 76

Warning: database(): Failed opening 'offline.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 76


Lastly, I tried doing the "auto"-install, and I still get that damn error msg saying something is wrong in my database details. Is this a common error? Something I've missed?

I really want this up and working so I can start to make my template and fool around with the site :)

Raydian
February 4th, 2004, 22:55
The best way to deal with this is to post your configuration.php less the vitals (password, username).

Just xxxxxxx them out.

Gayle
February 5th, 2004, 00:00
Warning: database(configuration.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(): Failed opening 'configuration.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(offline.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 76

Warning: database(): Failed opening 'offline.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 76
This error is caused by a bug (you should get a more helpful message) but what it means is your database username or password are incorrect.

spignataro
February 5th, 2004, 07:19
you will want to see if you there is a database actually made for this

Gayle
February 5th, 2004, 07:30
you will want to see if you there is a database actually made for this
Database is there otherwise the line numbers on the error would be different.

spignataro
February 5th, 2004, 07:33
true...i didnt take into account the numbers of the lines

Gayle
February 5th, 2004, 07:33
true...i didnt take into account the numbers of the lines
I only know cos I made the bug report :D

spignataro
February 5th, 2004, 07:34
hehehe....i think it is best to actually place up an error message instead of having php push out just information that is hard to understand

Gayle
February 5th, 2004, 07:36
It's actually meant to put the site offline, it just doesn't work (hence the bug report).

EvilYoda
February 5th, 2004, 09:43
okay...I'll post the configuration.php file as soon as I can, but that might not be until 10PM tonight :)

But thanks for the constant help...guess I'll be back later :)

EvilYoda
February 5th, 2004, 18:57
So here's my configuration.php file...someone help me out, I just want this to work :)

$mosConfig_offline = '0';
$mosConfig_host = 'localhost'; // This is normally set to localhost
$mosConfig_user = xxxxxxx; // MySQL username
$mosConfig_password = xxxxxx; // MySQL password
$mosConfig_db = 'mambo'; // MySQL database name
$mosConfig_dbprefix = 'mos_'; // Do not change unless you need to!

$mosConfig_lang = 'english'; // Site language
$mosConfig_absolute_path = '/home/joehsu/public_html/mambo'; // No trailing slash
$mosConfig_live_site = 'http://www.joehsu.com'; // No trailing slash
$mosConfig_sitename = 'EvilYoda.com'; // Name of Mambo site
$mosConfig_shownoauth = '1'; // Display links & categories users don't have access to
$mosConfig_emailpass = '1'; // Send new registration passwords via e-mail
$mosConfig_offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
$mosConfig_UseBanner = '0'; // Use banners 0 = No, 1 = Yes
$mosConfig_lifetime = '1800'; // Session time
$mosConfig_MetaDesc = 'Mambo Open Source - the dynamic portal engine and content management system';
$mosConfig_MetaKeys = 'mambo, mambo open source, Mambo, Mambo Open Source';
$mosConfig_debug = '0';
$mosConfig_locale = 'en_GB';
$mosConfig_offset = '0'; // Local time offset
$mosConfig_hideAuthor = '0';
$mosConfig_hideCreateDate = '0';
$mosConfig_hideModifyDate = '0';
$mosConfig_hidePdf = '0';
$mosConfig_hidePrint = '0';
$mosConfig_hideEmail = '0';
$mosConfig_enable_log_items = '0';
$mosConfig_enable_log_searches = '0';
$mosConfig_sef = '0';
$mosConfig_vote = '0';
$mosConfig_gzip = '0';
$mosConfig_multipage_toc = '0';
$mosConfig_allowUserRegistration = '1';
$mosConfig_error_reporting = -1;
$mosConfig_error_message = 'This site is temporarily unavailable.<br />Please contact your System Administrator.';
$mosConfig_link_titles = '0';
setlocale (LC_TIME, $mosConfig_locale); // Country locale
?>

alwarren
February 5th, 2004, 21:39
Change[code:1:586366ba4e]$mosConfig_live_site = 'http://www.joehsu.com'; // No trailing slash
[/code:1:586366ba4e]To[code:1:586366ba4e]$mosConfig_live_site = 'http://www.joehsu.com/mambo'; // No trailing slash
[/code:1:586366ba4e]

EvilYoda
February 5th, 2004, 21:56
I'm just not cut out to do this...I should just pick up a PHP book, even though the code looks decently simple. bah.

Warning: database(configuration.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(): Failed opening 'configuration.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 75

Warning: database(offline.php): failed to open stream: No such file or directory in /home/joehsu/public_html/mambo/classes/database.php on line 76

Warning: database(): Failed opening 'offline.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/joehsu/public_html/mambo/classes/database.php on line 76

thesprinklerguys
February 5th, 2004, 23:12
Just a few questions for clarity. Where exactly are your mambo files located?
Are they in a dir called mambo or did you put them in your base dir "public_html"?
Second, when you installed using the web installer were you able to finish the install?
If yes, the first time you attempted to visit your site did you get the warning about the installation dir needing to be removed or did you get the errors you currently get?

If you still have the files in the mambo dir did you change $mosConfig_live_site = 'http://www.joehsu.com'; to $mosConfig_live_site = 'http://www.joehsu.com/mambo'; like alwarren suggested?

alwarren
February 6th, 2004, 00:06
If you still have the files in the mambo dir did you change $mosConfig_live_site = 'http://www.joehsu.com'; to $mosConfig_live_site = 'http://www.joehsu.com/mambo'; like Gayle suggested?
Ahem... I'm not that pretty. :lol:

thesprinklerguys
February 6th, 2004, 00:08
Sorry alwarren lol :D Must have been reading too fast. :D

spignataro
February 6th, 2004, 09:02
did you check your database connection?

EvilYoda
February 6th, 2004, 10:34
It's installed into a mambo folder, and yes, I had changed the config file to what alwarren had indicated...

I might try installing it to the main folder (I guess that's how I run the main site as mambo, right?) and doing it again...and yeah, I have deleted the installation folder.

thesprinklerguys
February 6th, 2004, 13:58
Your database name is incorrect in configuration.php, some servers require something like user_youdbname, try something like joehsu_mambo.

tonyskyday
February 6th, 2004, 14:05
Your database name is incorrect in configuration.php, some servers require something like user_youdbname, try something like joehsu_mambo.

In that case, might the db name also be user_database?

thesprinklerguys
February 6th, 2004, 14:10
In that case, might the db name also be user_database?Yes it would, should. The only way I can recreate the error line numbers is with the wrong db name. A wrong username creates a different line number error. Also a wrong username and dbname create a different line error, so I have concluded that the dbname is incorrect. Make any sense?

spignataro
February 6th, 2004, 14:22
In that case, might the db name also be user_database?Yes it would, should. The only way I can recreate the error line numbers is with the wrong db name. A wrong username creates a different line number error. Also a wrong username and dbname create a different line error, so I have concluded that the dbname is incorrect. Make any sense?

no you lost me at hello....lol

yes it does make sence...i think in the next release we need to implement some sort of fault error message to get ride of the line errors

EvilYoda
February 6th, 2004, 23:48
Well, I'm actually the admin site right now, but I can"t seem to get the right admin user & pass...lol

edit: nvm, I'm far too hasty, I got in :)

thesprinklerguys
February 7th, 2004, 03:57
Well, I'm actually the admin site right now
What did you do to get it working? I only ask to help others who may be having the same trouble.

EvilYoda
February 7th, 2004, 18:01
heh, I read the end of the instructions, and noted where it said to log in as "admin/admin"...I had thought that my account was in there already. ;) ^_^

Now, my last question...to make my main site (test.com, not test.com/mambo) the MOS page, do I just install everything to /public_html ? And then in the config file, it'll be test_mambo and home/test/public_html/, right?

thesprinklerguys
February 7th, 2004, 18:07
heh, I read the end of the instructions, and noted where it said to log in as "admin/admin"...I had thought that my account was in there already. ;) ^_^

Now, my last question...to make my main site (test.com, not test.com/mambo) the MOS page, do I just install everything to /public_html ? And then in the config file, it'll be test_mambo and home/test/public_html/, right?
If you want Mambo at yourdomain.com yes put the files in your main dir /public_html.
In cofiguration.php use "home/test/public_html" no trailing slash and "http://www.yourdomain.com" no trailing slash.