Setting localhost prefix

I recently added XAMPP to develop locally. When I exported the pages to my folder I discovered my prefixes were set for the actual website and got a database error so I rewrote the prefix in the index page within the folder and everything works fine, but now when I add the new prefix to Rapidweaver I get a message that there is a database problem.

Please note that I’m using sitelok as my registration and login agent. Please note that it’s only when I add the below prefix directly into Rapidweaver that I get a database error. Is there another way to point to the directory? Here’s the code. Thanks.

<? $groupswithaccess="CLIENT, ADMIN"; require_once ("/Applications/XAMPP/xamppfiles/htdocs/jurugo/slpw/sitelokpw.php");?>

@jurugo

Did you change the site preferences to point to localhost:port#/siteFolder (Done through the wrench icon)?

HTH
Brad
:christmas_tree:

Yes, but it keeps adding ‘http://’ by default and wouldn’t work so I pointed it to ‘http://localhost/jurugo’ and it’s still not working.

I used the mac default apache webserver (also added mysqi & php) at first but I had to use a password with every edit. It was cumbersome to say the least. I’d use mac websever if I didn’t always have to grant permission. I can’t find anyway around that. I tried sime temunal cmnds suggested online to no avail. That is why I migrated to XAMMP.

@jurugo

Try changing the localhost to http://yourlocalserveripaddress:Port#/jurugo does that help?

You should not have to specify group permissions to your MySql db unless through the admin panel of Mamp/xammp I don’t think anyway.

I don’t use site lock so can’t help with any of it’s configuration… but does it ask for an IP address perhaps as well?

Just thoughts, don’t know where to point you any further. Hopefully someone with a little more php experience can assist.

HTH
Brad
:christmas_tree:

Thanks Brad. I’ll let you know how it worked out but it won’t be till after Christmas. Have a Merry Christmas.

@jurugo

You as well and thank you.

Brad
:christmas_tree:

Well that didn’t work, but I got to looking at the tools section a little closer thanks to you. I went to advanced and changed the relative path to website and “presto” it’s working.

Thanks for the help.

Awesome @jurugo, glad you got it sorted. You may have to change it back when posting to live website. Please keep us updated!

Brad