SnippetMaster Support Forums
Return to main website
 
January 18, 2006, 02:56:18 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 18, 2006, 02:56:18 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Can someone please help me with the config.inc.php « previous next »
Pages: [1] Print
Author Topic: Can someone please help me with the config.inc.php  (Read 171 times)
bishwa

Posts: 3


[-] Can someone please help me with the config.inc.php
« on: December 03, 2005, 08:14:57 PM »

Hi, This looks like a great little product and if I can get it to work it may open up a good opportunity for me to target a specific market and new clients. I'm quite happy to buy the pro version once I can test it properly.

I'm having problems setting it up though, any help with the configuration would be greatly appreciated! I've followed all the instructions as best as I can and tried a number of variations with the $PATH and $ROOT configuration, but I just can't seem to get it to work.

With the current configuration this is where I'm at:
From the browser http://www.golive.net.au/snippetmaster/templates/login.html returns the login page, but it immediately displays this error:  *** Invalid username and/or password! ***

If I enter demo / demo for user and password and it just returns a 404 error.

Snippetmaster is uploaded to my server and is placed in a directory called snippetmaster within my public_html directory.

The latest config is:

//       $PATH settings will then be the same. DO NOT add a trailing slash.
   $PATH = "/home/golive.net.au/public_html/snippetmaster";

// This is the FULL path to the directory where your website files are
// located on your server (Your web root). DO NOT add a trailing slash.
   $ROOT = "/home/golive.net.au/public_html";

// Set to the full url to access the value you set for $ROOT
   $PREVIEW = "http://www.golive.net.au";

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.golive.net.au";

Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 33


[-] Re: Can someone please help me with the config.inc.php
« Reply #1 on: December 04, 2005, 01:35:00 AM »

There is one obvious error here:

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.golive.net.au";

Should be

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.golive.net.au/snippetmaster";

The new version of SnippetMaster, currently in Beta testing will automatically set up the right paths!!

Report to moderator   Logged

Kelvyn
bishwa

Posts: 3


[-] Re: Can someone please help me with the config.inc.php
« Reply #2 on: December 04, 2005, 03:17:57 AM »

Ok I gave that a try, still the same result / problem?

How stable is the latest beta version, is it worth my while installing that instead?

Thanks for you help!
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 33


[-] Re: Can someone please help me with the config.inc.php
« Reply #3 on: December 04, 2005, 04:24:32 AM »

If you look at this thread

http://www.snippetmaster.com/forums/index.php/topic,717.0.html

you will see a way to determine the correct php server path and also a note on where to access the beta version for testing purposes. Note that this is beta and is on a time limited license, but a full should soon be released.
Report to moderator   Logged

Kelvyn
bishwa

Posts: 3


[-] Re: Can someone please help me with the config.inc.php
« Reply #4 on: December 04, 2005, 06:32:06 PM »

Hi again, yes that worked a treat, the result was:

/home/goliven/public_html/snippetmaster - not /home/golive.net.au/public_html/snippetmaster as I had presumed.

I made the changes to config.inc.php, then typed http://www.golive.net.au/snippetmaster into my browser and it works! Thanks for your help with this I really appreciate it.

If you're reading this to try and work out your own config problem, then the procedure that I have just followed is the place to start. Points to remember about this:
1. The path (to your files on the server) is not neccesarily what you see in say your ftp client (mine just showed the file structure as golive.net.au/public_html/snippetmaster, so I used that in my config.inc.php.

2. Different server applications / webhosts may use different naming conventions when creating your account and file structure. From what I have seen here in the forums though, the /home seems to be a common beginning to the path (would you agree Jenkinhill? please correct me if I'm wrong)

3. One thing that confused me in the begining, when reading through the instructions, is the term 'web root', what would my web root therefore be, goliven? and is it preferable to upload snippetmaster into the web root rather than public_html as I have done? can someone perhaps post an explanation / examples of these definitions, file structures / paths to help us newbies at the begining of our foray into the snippetmaster world, if you could actually map it out visually it would be even better, or if you want to pass a few examples on to me then I will do it?

When I set up this web site on my server (running apache server) the Web Host Manager software automatically assigned a username to the account based on the domain name. In this case my domain name golive.net.au was turned into the username goliven. Then it created the following directory set up based on this username /home/goliven/ and that contains (along with some other directories) the public_html directory, which is where I upload my actual web site to. public_html is also where I uploaded snippetmaster to.

So the following is what is correct for my particular server set up, the bold text is what I had to correct based on the result I received from the path.php file that I ran as a test (as reccomended by Jenkinhill in the previous post)

// NOTE: If you put SnippetMaster in your "web root" directory, the $ROOT and
//       $PATH settings will then be the same. DO NOT add a trailing slash.
   $PATH = "/home/goliven/public_html/snippetmaster";

// This is the FULL path to the directory where your website files are
// located on your server (Your web root). DO NOT add a trailing slash.
   $ROOT = "/home/goliven/public_html";

// Set to the full url to access the value you set for $ROOT
   $PREVIEW = "http://www.golive.net.au";

[font=Verdana]I also got this bit below wrong and just had to add /snippetmaster to the url[/font]

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.golive.net.au/snippetmaster";
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Can someone please help me with the config.inc.php « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.5.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!