Ok, so we have set up Pligg, but are not able to pull up
http://localhost/pligg/admin_index.php
0. Fix the php.ini to include mysql support
You need to find the
c:\windows\php.ini line 600 (I think) and turn
;extension=php_msql.dll
into
extension=php_msql.dll
I also copied the php_mysql.dll from the c:\php\ext folder to the c:\php
*thx to drk for this
1. Fix Login files
It was explained to me by AshDigg that this is because the login.php files (one in the root dir and one in the libs dir) are redirecting before they set the cookie and this is bad.
Here are the new login files.
rootlogin.php
libslogin.php
you will need to put the rootlogin in the pligg root folder and rename it to login.php
get the libslogin and rename it login.php and put it in the libs folder.
You should now be able to log in as U:god P:12345 and get to the admin console
2. You will need to fix html1.php and smartyvariables.php
There are lines in there that read
$_SERVER['REQUEST_URI']
change them to
$_SERVER['SCRIPT_NAME']
That fixes the errors on the page. There are 3 changes in html1.php and one on line 6 in smartyvariables.php
3. Create the missing links table
Links doesnt get created because of a bug. Enclosed is the sql script file you will need to run with the mySql Query Browser against your pligg database
createlinkstable.sql
It should create your missing "links" table
4. Current errors not working
You cant attach a new story and get an "incorrect key" issue
You cant add a new user as the captcha isint working. In your c:\windows\php.ini, there is a place to tell it where to find extensions. It needs to use gd2.dll I think to draw the jpg. Not sure how to get this working yet.
None of the redirects work correctly. For example you cannot go to http://localhost/pligg/admin and expect it to work. You have to explicitly state the location of the file you need
http://localhost/pligg/login.php for it to work correctly
The templates do not work correctly
These fixes should at least get you running around in the pligg files for IIS as opposed to stopping you cold.
Much thanks to AshDigg for the help. That dude rocks.



Reply With Quote



