USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Installing phpbb
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER
View previous topic :: View next topic  
Author Message
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sat May 22, 2004 12:57 am    Post subject: Installing phpbb Reply with quote

Well, this is *kinda* a linux question, but I'll ask anyway... Smile


I've got a friend of mine that wants me to setup a phpbb based forum on one of his websites. I know a little bit about it, but as far as creating the sql databases and some other items I'm not too familiar with. I've read the install documentation but I'm lookin for something a bit more detailed. Anyone care to help?


Back to top
View user's profile Send private message
crouse
Site Admin


Joined: 17 Apr 2003
Posts: 11857
Location: Iowa

PostPosted: Sat May 22, 2004 5:06 am    Post subject: Reply with quote

Well, I know a "little" bit about phpbb Wink

What do you need to know ???????


Back to top
View user's profile Send private message Visit poster's website AIM Address
nukes
Linux Guru


Joined: 29 Aug 2003
Posts: 4558

PostPosted: Sat May 22, 2004 9:45 am    Post subject: Reply with quote

Pretty much, you install SQL, PhP etc along with their apache extensions. (there are packages to do all of this for you)
Then you copy the base phpbb to the htdocs directory. After that it's a fairly straightforward process IIRC.
That said, take crouse's advise over mine as I haven't done that sort of thing for ages. Smile



_________________
Gentoo x86-64 2.6.29.1
FreeBSD 7-CURRENT
Arch x86 2.6.30
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
maillion
Advanced Member


Joined: 30 Mar 2004
Posts: 791
Location: Texas, USA, Terra

PostPosted: Sat May 22, 2004 12:27 pm    Post subject: Reply with quote

crouse wrote:
Well, I know a "little" bit about phpbb Wink

What do you need to know ???????


Just a little? Very Happy


Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2004
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Sat May 22, 2004 2:27 pm    Post subject: Reply with quote

The biggest probs I ran into, were permissions related.

chown 0755 -R /var/www/html/phpbbdir/
and then individually remove access to the public to the important files.

(config.php, etc...)



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sat May 22, 2004 5:10 pm    Post subject: Reply with quote

Well, the problems I think I'll run into the most will be the permissions. praetorian (from techimo, dunno if he browses these boards or not) showed me a little bit as far as starting the sql server and creating a database and user via the command line. I *almost* had it running on my Fedora box, just to test it out, but my hostname wasnt set right and was causing some headaches.


Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2004
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Sun May 23, 2004 12:31 am    Post subject: Reply with quote

I actually create the sql database in knoqeuror.
I zip to the /var/lib/mysql directory and create a folder called phpbb
voila, database is created, i then change the permissions and ownership of the folder by right-clicking it.

I know these guys prefer the command line, so here:

# mkdir /var/lib/mysql/phpbb
# chmod 0755 /var/lib/mysql/phpbb
#chown mysql.doc /var/lib/mysql/phpbb

as for the hostname, try:

# kwrite /etc/apache/httpd.conf
(gedit for Gnome and kwrite for KDE)
And look for your hostname, it should be set to your address.
mine is http://doczayus.homedns.org:8080
If you don't have a Hostname, your IP should work.
Not 127.0.0.1, and not 192.xxx.xxx.xxx
Those are internal addresses.

Hope this helps.

(ps: correct me if I'm wrong)


Back to top
View user's profile Send private message Visit poster's website
crouse
Site Admin


Joined: 17 Apr 2003
Posts: 11857
Location: Iowa

PostPosted: Sun May 23, 2004 2:05 am    Post subject: Reply with quote

CubKid wrote:
Well, the problems I think I'll run into the most will be the permissions. praetorian (from techimo, dunno if he browses these boards or not) showed me a little bit as far as starting the sql server and creating a database and user via the command line. I *almost* had it running on my Fedora box, just to test it out, but my hostname wasnt set right and was causing some headaches.


99% of the time - the hostname is : localhost

the thing that always stuck me was mysql database usernames and user permissions, once I figured those out, it was a piece of cake......... phpbb almost runs itself as far as the setup goes, once you database is installed, running the phpbb setup screen (admin) it's fairly easy to finish setting up the board.


Back to top
View user's profile Send private message Visit poster's website AIM Address
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sun May 23, 2004 4:29 am    Post subject: Reply with quote

Quote:
99% of the time - the hostname is : localhost



Right, but there is an option when installing Fedora where you can set it. Like a n00b I am I set it to Fedora... lol


On another note, I do have one of those no-ip.com addresses. How would I go about doing that, change the hostname on the fedora box to cubkid.no-ip.com or something like that? I know that I can just put my external IP in the config page at the site, but what about on the "Server" itself? Sorry, wandering off topic. Smile


Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2004
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Sun May 23, 2004 5:42 pm    Post subject: Reply with quote

yea, use the no-ip address.

that way, if your IP changes, you wont have to update your httpd.conf all the time.

DynDNS has apps that can auto update your IP through a Cron job.

Maybe your No-IP has something of the sort too?



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sun May 23, 2004 5:43 pm    Post subject: Reply with quote

ok, after going through all of that, and even reformatting the fedora box to get the hostname right (and I put fedora core 2 on it for the heck of it), I still managed to not get it running. Heres the error from the installation page:

Quote:

phpBB : Critical Error

Could not connect to the database


I'm thinkin I missed something.. Smile


Back to top
View user's profile Send private message
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sun May 23, 2004 5:46 pm    Post subject: Reply with quote

DocZayus wrote:
yea, use the no-ip address.

that way, if your IP changes, you wont have to update your httpd.conf all the time.

DynDNS has apps that can auto update your IP through a Cron job.

Maybe your No-IP has something of the sort too?



Just saw that after I hit submit on the last post.


I'll have to look into it and also configure my router accordingly if needed.


Back to top
View user's profile Send private message
crouse
Site Admin


Joined: 17 Apr 2003
Posts: 11857
Location: Iowa

PostPosted: Sun May 23, 2004 6:49 pm    Post subject: Reply with quote

phpBB : Critical Error

Could not connect to the database


------------

means your

MYSQL username/password andor database name are incorrect.


Back to top
View user's profile Send private message Visit poster's website AIM Address
CubKid
Member


Joined: 14 Apr 2004
Posts: 111

PostPosted: Sun May 23, 2004 9:01 pm    Post subject: Reply with quote

Well, as far as I know they're right (dont quote me on that though), but I'm not really sure how to check. I even got (not so) smart and tried to do the installation using root/<root password> instead of the user/pass. That didnt work either.. lol


Back to top
View user's profile Send private message
crouse
Site Admin


Joined: 17 Apr 2003
Posts: 11857
Location: Iowa

PostPosted: Sun May 23, 2004 10:20 pm    Post subject: Reply with quote

The easiest way I've found to work with mysql is to install webmin....

Using webmin you can

Create the database
Create usernames and passwords for mysql
Allow (Username) access to (database)

If you don't have webmin installed, I highly recommend installing webmin, it will simplify your life. You can do all the above via the command line, but webmin is much easier to use for me.


Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2003-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2001-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse