View previous topic :: View next topic |
Author |
Message |
Woody
Joined: 02 Oct 2003 Posts: 5 Location: Netherlands
|
Posted: Thu Oct 02, 2003 8:47 am Post subject: Running on Windows ?? |
|
|
Hi there.
I downloaded Peffisaur, installed it at my windows-based server, but there's a lot that doesn't work
Can't register a user, no error messages, no entry's in the database.
Any idea ?? |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Thu Oct 02, 2003 10:12 am Post subject: |
|
|
No idea...never tried it with Windows.
Noone has ever made MMS Diary work with Windows (I've gotten only error reports from that) so I don't think php there is very compatible I'm afraid.
Would be interested to hear what your experiences are if you get something to work. |
|
Back to top |
|
 |
Arnix
Joined: 17 Sep 2003 Posts: 11
|
Posted: Thu Oct 02, 2003 10:55 am Post subject: |
|
|
The first time I installed peffisaur on my linux box, I had (almost) the same problems. This had to do with errors regarding the re-write rules in the .htaccess file and httpd.conf. |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Thu Oct 02, 2003 11:34 am Post subject: |
|
|
I see. Yes, the rewrite rules in .htaccess assumes you are installing Peffisaur at root-level which is probably only true for my installation and not many other I'm afraid. |
|
Back to top |
|
 |
Guest
|
Posted: Thu Oct 02, 2003 11:46 am Post subject: |
|
|
I have been struggling with that. I edited .htacces to match my own confiuration. But still it didn't work. Until I found out that httpd.conf on my RedHat box has default AllowOverride None.......... |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Thu Oct 02, 2003 11:58 am Post subject: |
|
|
Yes, you need to allow override |
|
Back to top |
|
 |
Woody
Joined: 02 Oct 2003 Posts: 5 Location: Netherlands
|
Posted: Fri Oct 03, 2003 11:54 pm Post subject: |
|
|
I'll keep "trying" to get it to work.. Most stuff runs on the windows-system here, so this one should be running to.
Currently i'm busy with other stuff, but I would like to get this running on my site.
I'll keep you informed.. |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sat Oct 04, 2003 10:32 am Post subject: |
|
|
You say you cannot register a user. What feedback do you get when trying to register one? None at all? What page is displayed? No welcome message? |
|
Back to top |
|
 |
Woody
Joined: 02 Oct 2003 Posts: 5 Location: Netherlands
|
Posted: Sat Oct 04, 2003 9:24 pm Post subject: |
|
|
Peffis wrote: | You say you cannot register a user. What feedback do you get when trying to register one? None at all? What page is displayed? No welcome message? |
There's no feedback at all
After filling in all the fields, it just returns to the sign-up page.
No error-message and nothing in de database..
I added a user by putting some stuff manualy in the database, but I cannot sign-in with that account
You can try it at http://woertman.org/peff |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sun Oct 05, 2003 9:41 am Post subject: |
|
|
Ok, for others who experience this problem, we have solved it now. It's not windows related. The problem with registering users was that PHP is needed to be configured to register globals for Peffisaur to work (register_globals = On in PHP.ini).
Will try to make Peffisaur not rely on this to be turned on in the future.
There are other issues as well under Windows I think unfortunately. |
|
Back to top |
|
 |
Woody
Joined: 02 Oct 2003 Posts: 5 Location: Netherlands
|
Posted: Sun Oct 05, 2003 11:00 pm Post subject: |
|
|
I have most of it running now.
Some changes to php.ini:
Code: | register_globals = On |
some changes to apaches httpd.conf (remove the # infront of these lines)
Code: | LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c |
and in config.php I changed
Code: | define( "MSG_STORE_DIR", "./msgstore" ); |
(extra DOT !!)
in send.php I had to change the following:
Code: | $sender_id = lookupSenderID( $_SERVER['REDIRECT_REDIRECT_uid'],
$_SERVER['REDIRECT_REDIRECT_pwd'] ); |
Basic is running now.
Only thing left is the email-option. |
|
Back to top |
|
 |
Guest
|
Posted: Wed Oct 06, 2004 12:26 am Post subject: |
|
|
I have the same problem with registering new users it just does nothing but I can't change php.ini cause I'm not a server admin...
Is there a way to solve the problem without changing php.ini? |
|
Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Wed Oct 06, 2004 3:20 pm Post subject: |
|
|
Check out this page on how to turn on register_globals on a share hosting service by using .htaccess: http://se.php.net/register_globals |
|
Back to top |
|
 |
san
Joined: 26 Jul 2005 Posts: 4
|
Posted: Tue Jul 26, 2005 5:19 pm Post subject: |
|
|
hiya,
in regards to the above: if, for some reason, the option of overriding the .htaccess file to accept global vars is not available to you, you can also try the following.
(overriding can be disabled serverside or you may be on a shared server on which PHP runs in CGI mode. for example)
adding the following code at the top of each page in which global vars are used solves your problem. please be aware of possible security issues related to this (the whole idea of disabling global vars since PHP 4.2 is security in the first place!)
Code: |
<?php
if(!empty($_GET)) extract($_GET);
if(!empty($_POST)) extract($_POST);
?>
|
hope this helps,
take care |
|
Back to top |
|
 |
san
Joined: 26 Jul 2005 Posts: 4
|
Posted: Tue Nov 22, 2005 10:45 pm Post subject: |
|
|
in addition to this post of mine earlier.. thats is not the safest way if that's one of your considerations.
since the post above i've taken the effort to rewrite all of the stuff i needed to use GET and POST statements instead, solving the vulnerability to variable injection and stuff. (yes, I do realise this is not a high-risk project or anything, but I could use the practice )
Besides, this way the global_variables are no obstacle anymore.
By the way, running both MMS Diary and Peffisaur runs just as it should on a windows based server, just need a little effort to smooth things out.
Take care,
San |
|
Back to top |
|
 |
|