Go Back   Pligg CMS Forum > Pligg Help > Installation and Upgrade Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2006, 02:53 PM
Nyx Nyx is offline
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe I'm an idiot

The faq seems unhelpful. I've uploaded pligg to the server, started the install and I get this error.

../libs/dbconnect.php is writable: No
../libs/options.php does exist.: Yes

The file dbconnect.php doesn't even exist. What should I do? I've created a database, how do I tell the script that it's there? Or is there some other problem?
Reply With Quote
  #2 (permalink)  
Old 02-23-2006, 06:15 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
we've covered this in several other threads. 6.01 doesn't have it's own dbconnect.php file, here's the code for it. Create a new file, call it dbconnect.php and place it in your /libs directory.

PHP Code:
<?php
define
("EZSQL_DB_USER""root");
define("EZSQL_DB_PASSWORD""root");
define("EZSQL_DB_NAME""pligg");
define("EZSQL_DB_HOST""localhost");
function 
_($s) {return $s;}
?>
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #3 (permalink)  
Old 02-23-2006, 06:30 PM
New Pligger
 
Join Date: Feb 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
You need to set permissions to the dbconnect.php file to 777. If it isn't in there you need to upload it from the older pligg version.

If anyone needs help installing pligg, email me at info@islandseven.com
Reply With Quote
  #4 (permalink)  
Old 02-23-2006, 07:23 PM
Nyx Nyx is offline
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Yankidank
we've covered this in several other threads. 6.01 doesn't have it's own dbconnect.php file, here's the code for it. Create a new file, call it dbconnect.php and place it in your /libs directory.

PHP Code:
<?php
define
("EZSQL_DB_USER""root");
define("EZSQL_DB_PASSWORD""root");
define("EZSQL_DB_NAME""pligg");
define("EZSQL_DB_HOST""localhost");
function 
_($s) {return $s;}
?>

Ok, did that, still getting the same error.

Here's the change I made.

PHP Code:
<?php
define
("EZSQL_DB_USER""xxxxxx");
define("EZSQL_DB_PASSWORD""xxxxx");
define("EZSQL_DB_NAME""xxxxxx");
define("EZSQL_DB_HOST""xxxxxxx");
function 
_($s) {return $s;}
?>
Did I do that right?

Oh, and I've chmodded the properties to 777.

Last edited by AshDigg; 02-23-2006 at 07:56 PM..
Reply With Quote
  #5 (permalink)  
Old 02-23-2006, 07:29 PM
New Pligger
 
Join Date: Feb 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Did it say the installation was complete? If so, then you just change permissions to the dbconnect.php file to 655. Be careful with putting you mysql and other passwords up like that...I'd edit that post if you can.
Reply With Quote
  #6 (permalink)  
Old 02-23-2006, 08:06 PM
Nyx Nyx is offline
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by manatee
Did it say the installation was complete? If so, then you just change permissions to the dbconnect.php file to 655. Be careful with putting you mysql and other passwords up like that...I'd edit that post if you can.
Don't worry, I'll change the pass and username later.

But, no, it's not able to install because of the errors.
Reply With Quote
  #7 (permalink)  
Old 02-23-2006, 09:58 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
What errors do you get now?

Can you post a link to the site?
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 02-23-2006, 10:12 PM
Nyx Nyx is offline
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
It's the same errors as above.

The site is www.pornpigg.com
Reply With Quote
  #9 (permalink)  
Old 02-23-2006, 10:16 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
If you're still getting

../libs/dbconnect.php is writable: No

then you'd want to chmod that file to 777.

If you manually edited the dbconnect.php file, and you're still getting

1. Error establishing a database connection!Are you sure you have the correct user/password?
2. Are you sure that you have typed the correct hostname?
3. Are you sure that the database server is running?

then you probably put the wrong info in.

You may need localhost or 127.0.0.1 for the server. Have you checked yours hosts FAQ's for MySQL?
__________________
- Ash
Reply With Quote
  #10 (permalink)  
Old 02-23-2006, 10:56 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,828
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Try manually editing the file with your details and change:
function _($s) {return $s;}
to
// function _($s) {return $s;}
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
sub Categories digitaltracker General Help 3 06-15-2008 08:05 AM
I am an idiot this i knoW blakk Installation and Upgrade Help 1 01-14-2007 04:31 PM
Editing variables in the sidebar buttercup Installation and Upgrade Help 2 07-11-2006 03:55 PM
Help! (So I'm an idiot) mortsahl Installation and Upgrade Help 0 04-30-2006 01:03 PM


Search Engine Friendly URLs by vBSEO 3.2.0