Results 1 to 3 of 3
  1. #1
    New Pligger ward99's Avatar
    Joined
    Feb 2007
    Posts
    5
    Thanks
    Received:0
    Given: 0

    Exclamation Running Pligg under IIS

    I've been having various issues, some of which may relate to trying to run under IIS (See http://www.pligg.com/forum/showthread.php?t=4501

    I have gotten to the point where MySQL and PHP are running, but the login is not working. I am able to log in with god/12345 (will get a login error if I enter a bad password), but the system "forgets" I'm logged in. That is, I don't see any admin area fields, and if I click Submit a new Story, same thing happens.

    If I create a new user, it seems to work - but clicking submit returns the login screen (and it doesn't seem to see I'm logged in).

    Does anyone have any suggestions? I'm stuck running this under IIS. I saw some other posts about modding the login files, but that really blew it out of the water - I assume because the changes were off a older version of Pligg.

    Thanks!

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Thanks
    Received:1
    Given: 0
    I am willing to help you but I have no idea how to use IIS. I just installed it on Vista and after going to http://localhost I do see the welcome screen. I am very familiar with Apache, PHP, and MySQL but I have never installed or used IIS. How do you configure databases and whatnot? I think I installed everything but I have no idea where to configure IIS from. Are there more folders than the one in C: that it creates?

  3. #3
    New Pligger ward99's Avatar
    Joined
    Feb 2007
    Posts
    5
    Thanks
    Received:0
    Given: 0
    Hah, I don't know PHP or MySQL, but do IIS all the time. If we could just combine :P

    I just used the defautl MySQL installed, then did a create database from the command prompt. If you install PHP, it sets everything up (as in, allows the .PHP extension to run ok). The only big diff is chmod is security props (as in, right click) and IIS manager.

    Under XP, IIS manager is under Control Panel->Administrative Tools->Internet Information Services.

    I was playing around a bit, and was able to get the admin to come up, and was able to see some things.

    In the root, I went into web.config and added a "die" before the header was set (I assume that's really doing a redirct). I got a error when doing that, and removed the line... and the login worked. Fun

    I am kind of thinking a cookie isn't being set? Is it possible that the die; after header() is killing the request before something is happening? Sorry, again, this is the first time I've looked at PHP.

    The code I"m talking about is:


    if(isset($_POST["processlogin"]) || isset($_GET["processlogin"])){
    if($_POST["processlogin"] == 1) {
    $username = trim($_POST['username']);
    $password = trim($_POST['password']);
    $persistent = $_POST['persistent'];

    if($current_user->Authenticate($username, $password, $persistent) == false) {
    $errorMsg=$main_smarty->get_config_vars('PLIGG_Visual_Login_Error');} else {

    if(strlen($_REQUEST['return']) > 1) {
    $return = $_REQUEST['return'];
    } else {
    $return = my_pligg_base.'/';
    }

    define('logindetails', $username . ";" . $password . ";" . $return);

    check_actions('login_success_pre_redirect');

    header('Location: '.$return);
    die;

    }
    }

    After I get that working, I am getting some DB errors when I try to submit, which may be unrelated to iis (and very well may be related to my hacking to get the login to work)

    SQL/DB Error -- [Field 'link_title' doesn't have a default value]

    SQL/DB Error -- [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]

    SQL/DB Error -- [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND vote_value > 0' at line 1]

Similar Threads

  1. What forum software is Pligg running on?
    By pligguzer in forum Questions & Comments
    Replies: 12
    Last Post: 01-25-2012, 03:07 AM
  2. Is it possible to have two themes running on a Pligg site?
    By purqs in forum Questions & Comments
    Replies: 7
    Last Post: 03-02-2011, 09:41 AM
  3. Installing and running Pligg on intranet
    By huhmq in forum Questions & Comments
    Replies: 4
    Last Post: 06-10-2010, 08:04 PM
  4. Abou running a pligg site!
    By graffias in forum Questions & Comments
    Replies: 5
    Last Post: 05-10-2010, 10:09 PM
  5. Running Pligg behind a proxy?
    By PilotChris in forum Questions & Comments
    Replies: 1
    Last Post: 02-07-2007, 10:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg