 |
outshine.com feedback on the poetry, PHP code, Perl code, etc.
|
| View previous topic :: View next topic |
| Author |
Message |
aboyd Site Admin

Joined: 10 Jan 2004 Posts: 519 Location: USA
|
Posted: Wednesday, 06 July 2005, 22:54 Post subject: READ ME FIRST IF YOU'RE STUCK |
|
|
If you get errors trying to run phpBB Blog, odds are enormously good that your settings file is wrong. If you're sure your settings file is correct, odds are good that it is wrong anyway. I know this because right now, the last 20+ posts in this forum were all having the same problem. So please, use this to verify that settings.php is correct.
First up is the $blog_url variable. This should be set to a Web address, a URL. This is what you type in your browser to view the blog. It has to start with "http://" and then the name of your Web site, and then whatever else is needed to get to the blog. If you put the blog folder at the top level of your Web site, it would be like this:
| Code: | | $blog_url = 'http://www.yoursite.com/blog/'; |
Of course, change "yoursite.com" to be your domain name. Or if you do not own your own domain name, it might look like this:
| Code: | | $blog_url = 'http://webhostingcompanyname.com/~username/blog/'; |
OK? Your $blog_url may be slightly different, but no matter what, it starts with "http://" and ends with a slash. And if you enter it into a browser, it'll take you to the blog.
The next variable is $phpbb_url. This is very similar to $blog_url, but not exactly the same. It is a Web address, a URL. If you put it into your Web browser, it should take you to your phpBB forums. Here are examples of what it would look like if you called your phpBB directory "phpBB2" (the default) or "forums":
| Code: | | $phpbb_url = 'http://www.yoursite.com/phpBB2/'; |
or...
| Code: | | $phpbb_url = 'http://www.yoursite.com/forums/'; |
And if you don't own your own domain name, here is one example of how it might look:
| Code: | | $phpbb_url = 'http://www.webhostingcompanyname.com/~username/phpBB2/'; |
Note that no matter what, this starts with "http://" and ends with a slash.
Next up, $phpbb_root_path. This is the location of the phpBB files on the server. This is not a Web address. This does not begin with "http://" and is not a URL. It starts with a slash, and then follows a pattern of: directory name, slash, directory name, slash, and so on. To figure out what this is, you do NOT use a Web browser. You open a shell (telnet, command-line) to your server, login, use the "cd" command to get into your phpBB directory, and then you type "pwd" at the command line to learn what your path is. The other way is to use a FTP program such as FileZilla, and connect to your server, get into the phpBB directory, and then look for the path, usually near the upper right of the FileZilla window. Here are two examples. Yours will not be exactly either of these, but should follow the same pattern:
| Code: | | $phpbb_root_path = '/home/outshine/web/forum/'; |
or...
| Code: | | $phpbb_root_path = '/home/a/aboyd/public_html/phpBB2/'; |
or...
See? $phpbb_root_path should never be just a few letters or a single word. It starts and ends with a slash. It has multiple directories listed, one after another, with slashes in between. The first directory is the root level, or main folder of the server. It's not your folder. It is the main starting point that everything else is under. Then, each subdirectory is added on. You're creating a path from the main root or base of the server down to your phpBB directory.
If you don't know what "cd" is, or how to use a command line, or how to get the path from an FTP program, then you need tutorials that are beyond the scope of these forums. If anyone reading this is in that position, find another product as mine will drive you nuts.
The next variable to double-check is the $forum variable. This should only be a number. It's not a URL, not a path, not a Web address. You extract the number from a URL, but you do not copy the whole URL. OK? To get this number, use a Web browser to go into your forums. Most forums have multiple discussion areas. For example, here, I have the phpBB Blog forum, which we are in, but I also have a poetry forum, and a few others. You need to pick the ONE discussion area that you are going to use. Click into it. Now, look at the URL (or Web address) that your browser is showing for that discussion area. Part of that address looks like this:
...except that f might equal 5 or 17 or some other number. Grab that number, and use it for $forum, like this:
or...
Good? See how it's only ever a number? Yours should only be a number.
At this point, you should save your setting.php file, upload it to the server, and try viewing the blog again. It should work. If it does, congratulations. If it doesn't, well, at least you've got the basics out of the way, and you're free to ask for more help.
-Tony
_________________ Publisher Database - tools & forums for writers
Last edited by aboyd on Monday, 02 January 2006, 15:54; edited 11 times in total |
|
| Back to top |
|
 |
aboyd Site Admin

Joined: 10 Jan 2004 Posts: 519 Location: USA
|
Posted: Wednesday, 06 July 2005, 23:24 Post subject: For special cases |
|
|
For special cases
The typical setup for phpBB Blog is like this: a user has a homepage, and somewhere on the homepage, they add a link to their blog. In other words, the blog is not the main part of their site -- it's just a subdirectory. Everything in my original post above caters to that typical setup.
However, if you want the blog to be your homepage, things are a little different. Not much, but enough to warrant comment. Here is a walkthrough.
First, you won't upload the blog directory to your server. Instead, you'll upload the individual files. They will simply be loose at the top level. So let's say, in the "normal" scenario, you'd put the phpBB2 directory at the top level, and you'd put the blog directory at the top level. When you telnet or FTP to your site, the listing of the HTML files (in a "normal" scenario) might look like this:
| Code: | blog
index.html
phpBB2 |
OK? Well, if you want the blog to be your homepage, there is no blog folder. All the files are loose at the top, with a listing that looks more like this:
| Code: | blog.php
blog_mini.php
images
index.php
phpBB2
rss.php
settings.php
stylesheets
trackback.php |
OK? The file, index.php replaces index.html (if you have an index.html -- and to be safe, you may just want to rename index.html to index.bak or something). Once everything is loaded on the server with all your other top-level HTML files, it's time to work on settings.php. This is similar to what was discussed in my original post before this, so I'm not going to repeat all those steps. Refer to the original post if you don't understand the proper format for each of these variables.
But let's have a quick mention of the $blog_url variable, just to see how it's different. This is a Web address. In this case, it probably doesn't end in /blog/ because there is no blog directory in use. For example:
| Code: | | $blog_url = 'http://www.yoursite.com/'; |
Keep that idea in mind as you set the other variables -- $phpbb_url, $phpbb_root_path, & $forum. Refer to my previous post (above) for details.
If you follow this overview closely -- and if you remember to do common sense things, like changing "yoursite.com" in all my examples to be your actual domain name then you should be successful with phpBB Blog. Good luck.
-Tony
_________________ Publisher Database - tools & forums for writers
|
|
| Back to top |
|
 |
|
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38
You must set the ad_network_ads_441.txt file to be writable (check file name as well).
Powered by phpBB © 2001, 2005 phpBB Group
|