Author Topic: PHP/MySQL newbie setting up sos on localhost  (Read 3480 times)

d9all

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
PHP/MySQL newbie setting up sos on localhost
« on: January 22, 2008, 08:25:58 AM »
I have installed SOS on my local testing server. Problem one is logging into the admin panel.
I set up the user and password in PHPmyadmin. I think it's the site url that is causing the problem:
http://localhost/sos/ (cannot find a variation to work)
my homepage is showing up at: http://localhost/sos//index.php
Also I edited some of the settings using PHPmyadmin, such as site tagline, but these changes don't show on the homepage so obviously something else wrong.
I'd appreciate any help in resolving this.
cheers

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: PHP/MySQL newbie setting up sos on localhost
« Reply #1 on: January 22, 2008, 08:48:58 AM »
Quote
I set up the user and password in PHPmyadmin.

Be sure your password is MD5 encrypted.  This can be done in PHPmyadmin in the function column when editing a line of data.


Quote
I think it's the site url that is causing the problem:
http://localhost/sos/ (cannot find a variation to work)

In PHPmyadmin drop the trailing slash in the uri. 
in the table XXX_hw_site  the field site_uri should be 'localhost/sos' (without the quotes).  But it may work fine without it.


NOTE: If your local machine is Windows instead of Linux, you may have issues with forms, cookies, etc.
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

d9all

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: PHP/MySQL newbie setting up sos on localhost
« Reply #2 on: January 25, 2008, 06:55:35 AM »
Hi and thanks for response,
the site uri: localhost/sos
that was one of the variations I tried, and have reset it to localhost/sos
I applied the MD5 function to the password, still wouldn't let me login, changed the password and applied MD5 function and with new password still no joy.
Also restarted services after changes but made no difference.
Am I down to having to re-install?
ouch! Liz

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: PHP/MySQL newbie setting up sos on localhost
« Reply #3 on: January 25, 2008, 04:08:05 PM »
Go to the Admin login page and click "Check if Cookies are Enabled".

If it says, "No" and you are sure you are accepting cookies, then your local server is not setting the cookie, or possibly your server is not receiving posts and gets.

Is this on a Windows computer?

I ran php on Windows, and I had trouble getting posts on a local machine.  SOS Webpages is recommended only on Linux.
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com