dynamic ip address & apache

Discuss Networking

Postby xyle_one » Wed Feb 12, 2003 2:36 am

Void Main wrote:I'm not sure what you mean by adding modules to the user. Do you mean database permissions? I just created a database "forums" and a user "forums@localhost" and put a password on it, no permissions. Then used that information in the phpBB configuration.

nevermind :oops:
i created a databse called "artforms" but i did not see an option to create a user.
(edit: playing around some more)
under postgreSQL i was able to create a database called 'forum" & a user "forum".
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 2:45 am

Ok, one more thing you are going to need. You will need to edit the FORUMHOME/includes/page_header.php. Near the bottom of the page you will find a couple of lines that look like this:

Code: Select all
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');


Comment those two lines out and add the following lines right below them:

Code: Select all
header ('Pragma: no-cache');
header ('Cache-Control: no-cache, no-store, must-revalidate');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');


Your BBS will not work properly until you do this (only a problem on Apache 2.x).
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 3:02 am

for the config i used the postgreSql 7.x database type. after i press install, it says "The PHP configuration on your server doesnt support the database that you chose". but if i choose mysql it cant connect (no user ??? )
thanks for the help by the way :P
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 3:05 am

Well I gotta tell you that I use PostgreSQL for most everything, however I had trouble trying to get the phpBB installed on PosgreSQL. I had no trouble getting it installed on MySQL. MySQL is usually faster than PostgreSQL for small databases like this anyway.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 3:09 am

well i created a user ecsyle@localhost for mysql, but i can not connect to the database.
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 3:13 am

Can you connect to the database on the command line?

$ mysql -u user -h localhost database -p

And

$ mysqlshow -u user -h localhost database -p
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 3:17 am

no. access denied.
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby xyle_one » Wed Feb 12, 2003 3:32 am

i have a user setup "ecsyle" with a password, no permissions. i restarted the sql server, and still nothing.
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 3:36 am

You *do* have mysql-server installed right? And it *is* started right? I'm trying to think if there is anything I changed to the setup from a default install and I don't believe I did. Are there any messages in the /var/log/mysqld.log file? Reset the password in webmin just to make sure... Also you might try setting the password option to "none" and see if that works (then don't use the "-p" on the command line).
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 3:40 am

its installed and running. here is something wierd. i can connect with the user root and no password. that doesnt sit right to me....
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 3:47 am

I'm an idiot, you need to set up database permissions (I just now looked at mine). Right next to the user permissions button, there should be a database permissions button. Click it and do a "create new database permissions" and use the "forums" database with your user id and grant everything to it.

forums | ecsyle | localhost | All
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 3:51 am

should i give the user the same permissions, or just the database permissions?? and, on the phpBB install page, for domain name, should i use ecsyle.is-a-geek.net?? or does it really matter?
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby Void Main » Wed Feb 12, 2003 3:54 am

User Permissions:

ecsyle | localhost | o982u34jsdfjo | None
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby xyle_one » Wed Feb 12, 2003 4:06 am

Very nice. Thaks Void Main. now its time to add some content.
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

Postby xyle_one » Wed Feb 12, 2003 4:41 pm

this kinda sucks. im at work, and tried to go to my site, and now its asking for a user name & password. shitty.
User avatar
xyle_one
programmer
programmer
 
Posts: 122
Joined: Mon Jan 13, 2003 1:02 pm

PreviousNext

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest