Go Back   Pligg Forum > Pligg Help > Installation and Upgrade Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2006, 10:20 PM
Two Face Two Face is offline
New Pligger
 
Join Date: May 2006
Posts: 4
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
MS SQL support?

I run my own server with Windows 2003 Enterprise with SQL 2005 due to demands from other ventures. I am trying to set up Pligg on my SQL database, but there does not seem to be support for SQL. I was wondering if anyone has successfully install Pligg on a SQL server.

I am able to the to the install2.php page and it tells me it cannot login with information provided. I did set up a database for Pligg and I am using the correct login information. Any ideas or am I out of luck?
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 05-24-2006, 11:22 PM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
hey

Pligg uses something called the ezSQL library to handle database layer

now pligg currently only supports mysql.
so you on your own when trying this out
but i'll try and help :)

look in your libs folder
you'll see a file called db.php
this is the file that handles the database layer

download a copy from
http://php.justinvincent.com/downloads/ez_sql_1.26.zip
open the ms-sql folder
drag and drop the ez_sql.php to the libs folder.
in ez_sql.php enter you ms-sql username and password.
backup your current db.php
and rename your ez_sql.php to db.php
and try it out

I do't have ms-sql so please post what you find.
i'm sure people will love the multi platform

only probelm is when making the tables, structure of mysql table maybe different from ms-sql so you might have to do them manually.

if you do have a problem theres no support cos pligg is made for mysql.
hope it works
Reply With Quote
  #3 (permalink)  
Old 05-25-2006, 12:18 AM
Two Face Two Face is offline
New Pligger
 
Join Date: May 2006
Posts: 4
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, I will try that now and let you know what happens.
Reply With Quote
  #4 (permalink)  
Old 05-25-2006, 12:22 AM
Two Face Two Face is offline
New Pligger
 
Join Date: May 2006
Posts: 4
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
The file is corrupt. I cannot decompress the folder due to some parts not transfering. I have tried to download many times. I will try to find a copy of this somewhere else.
Reply With Quote
  #5 (permalink)  
Old 05-25-2006, 02:26 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
http://savant.oioplus.com/text/

here you go i've mirrored it.
Reply With Quote
  #6 (permalink)  
Old 05-25-2006, 04:05 PM
Two Face Two Face is offline
New Pligger
 
Join Date: May 2006
Posts: 4
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for hosting it; your file worked great. I tried that, but got the same error as before:

Cannot connect to the database server using the following information.
Server: ***
User: ***
Password: ***

Fatal error: Call to undefined function _() in D:\Inetpub\wwwroot\Pligg\install\install2.php on line 113

I even deleted the user login info and rebuilt it in SQL, but no go. I still think there is some platform issue with SQL.
Reply With Quote
  #7 (permalink)  
Old 05-25-2006, 06:19 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Are you sure you're starting the install from the beginning?

You get the error: Call to undefined function _()

The function _() is added to dbconnect.php if the install script sees that your php doesn't have support for _() built in. Either you're not doing the install or the dbconnect isn't writeable and it can't update it.
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 05-26-2006, 08:35 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
i forgot about dbconnect.php

when you replace db.php with the one with MS-sql

find this line.

define("EZSQL_DB_USER", ""); // <-- MS SQL Server db user
define("EZSQL_DB_PASSWORD", ""); // <-- MS SQL Server db password
define("EZSQL_DB_NAME", ""); // <-- MS SQL Server db pname
define("EZSQL_DB_HOST", ""); // <-- MS SQL Server server host

replace those lines with

PHP Code:
// function _($s) {
// return $s;
// }

    
include_once("dbconnect.php"); 
and try the installation.

I thought if we didn't care about dbconnect.php and have the login details in db.php it might just work.
but since you're doingthe whole installation this might be whats wrong.

not sure sry.
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

vB 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
dreamhost and validation image problem Xanatos Installation and Upgrade Help 17 01-17-2007 12:14 PM
SQL Error on Login Page After OK Install briunc Installation and Upgrade Help 3 09-18-2006 08:23 AM
SQL File Anyone? Heartlander Installation and Upgrade Help 1 04-30-2006 06:30 AM
Totally cool - how to support Farmann Suggestions 6 01-23-2006 10:52 PM


LinkBacks Enabled by vBSEO 3.0.0