Re: WinNT Install Probs |
Mon, 18 February 2002 12:22 |
|
Gotcha...
here it is:
SELECT * FROM fud_attach (3 Records) id proto location original_name owner private message_id dlcount 1 LOCAL D:Inetpubwwwrootforums_HOTC_com/files/1.atch <table>.png 3 N 2 0 5 LOCAL D:Inetpubwwwrootforums_HOTC_comfiles/5.atch 20_0.gif 1 N 4 0 4 LOCAL D:Inetpubwwwrootforums_HOTC_comfiles/4.atch cathappy.gif 3 N 5 0
generated 2/18/02 11:33:17 AM by MySQL-Front 2.1
Odd... where are all the directory slashes?
|
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:26 |
|
ironstorm wrote on Mon, 18 February 2002 11:23 AM |
Magic Quotes?
|
OK, color me ignorant - "Magic Quotes" are... ??
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:27 |
|
That's the problem
Although, I expected there to be 1 set of slashes the 2nd would be missing the total lack of slashes is even more puzzling...
I am including attach.inc in the message which may solve the problem, please replace your current one with this one and tell me when you do.
Thanks.
-
Attachment: attach.inc
(Size: 3.83KB, Downloaded 1071 times)
|
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:31 |
|
Here is a thought on the slashes...
Instead of: "D:\\Inetpub\\wwwroot\\"
...and so on, should it maybe be...
"D:\/Inetpub\/wwwroot\/" or something along those lines?
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:31 |
|
jkrische2 wrote on Mon, 18 February 2002 12:29 PM |
Done!
|
That seems to have fixed the problem...
Could you give me another listing from the fud_attach table in MySQL.
I want to see what is there now...
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:32 |
|
jkrische2 wrote on Mon, 18 February 2002 12:31 PM | Here is a thought on the slashes...
Instead of: "D:\\Inetpub\\wwwroot\\"
...and so on, should it maybe be...
"D:\/Inetpub\/wwwroot\/" or something along those lines?
|
Nope, you don't need to escape the / slashes...
You can use them fine in windows, PHP will interpret them fine...
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:37 |
|
Here's the new SQL data:
SELECT * FROM fud_attach (4 Records) id proto location original_name owner private message_id dlcount 7 LOCAL D:\Inetpub\wwwroot\forums_HOTC_com\files/7.atch <table>.png 3 N 2 1 5 LOCAL D:Inetpubwwwrootforums_HOTC_comfiles/5.atch 20_0.gif 1 N 4 0 4 LOCAL D:Inetpubwwwrootforums_HOTC_comfiles/4.atch cathappy.gif 3 N 5 0 6 LOCAL D:\Inetpub\wwwroot\forums_HOTC_com\files/6.atch b_image.gif 3 N 6 1
generated 2/18/02 11:49:10 AM by MySQL-Front 2.1
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:39 |
|
prottoss wrote on Mon, 18 February 2002 12:32 PM |
...and so on, should it maybe be...
"D:\/Inetpub\/wwwroot\/" or something along those lines?
|
This is equivalient to "D:/Inetpub/wwwroot/"
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:40 |
|
Thanks...
Well the problem seems to have been solved by the patched attach.inc
You may find it easier to use / as the separator between directories rather then \ which you must enter as \\. This causes all kinds of nasty confusion both on part of PHP & MySQL since \ is an escape character, which to be interpreted normally needs to be escaped by itself, in a \\ manner.
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:43 |
|
NT won't have a problem with the "/", going the "wrong" way for NT file paths? If so great, have to remember that for future PHP & MySQL coding.
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:44 |
|
prottoss wrote on Mon, 18 February 2002 12:40 PM | You may find it easier to use / as the separator between directories rather then \ which you must enter as \\. This causes all kinds of nasty confusion both on part of PHP & MySQL since \ is an escape character, which to be interpreted normally needs to be escaped by itself, in a \\ manner.
|
Perhaps you could preg_replace \ (and \\) with / during the install in all the default values, so folks running IIS will get the same default path as folks running Apache.
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:46 |
|
ironstorm wrote on Mon, 18 February 2002 12:44 PM |
prottoss wrote on Mon, 18 February 2002 12:40 PM | You may find it easier to use / as the separator between directories rather then \ which you must enter as \\. This causes all kinds of nasty confusion both on part of PHP & MySQL since \ is an escape character, which to be interpreted normally needs to be escaped by itself, in a \\ manner.
|
Perhaps you could preg_replace \ (and \\) with / during the install in all the default values, so folks running IIS will get the same default path as folks running Apache.
|
Can't do that, s'pose someone installs the forum inside the "forum's dir" directory. In order to enter the path correctly it will need to be "forum\'s\ dir". If I replace \ & \\ I will most definately break their installation.
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:50 |
|
prottoss wrote on Mon, 18 February 2002 12:46 PM |
Perhaps you could preg_replace \ (and \\) with / during the install in all the default values, so folks running IIS will get the same default path as folks running Apache.
|
Can't do that, s'pose someone installs the forum inside the "forum's dir" directory. In order to enter the path correctly it will need to be "forum\'s\ dir". If I replace \ & \\ I will most definately break their installation.[/quote]
I mean before folks edit the path, i.e. <input name=www_root value='<?=preg_replace('/\/g','\',$DOCUMENT_ROOT)'>
Well I guess if they install it in /sharky\'s/htdocs then they'd run into that too
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 12:53 |
|
FUDforum will support both \\ and /, however IMHO it is easier to use /. However, if there are any bugs due to incorrect usage of \\ inside FUDforum they'll be fixed
|
|
Re: WinNT Install Probs |
Mon, 18 February 2002 14:05 |
|
Ok, cool - will use "/" in FUD where applicable. Handy to know for when I move this thing to its final home on another domain.
Just through up a test poll, and it worked fine, so it looks like all of the essentials are there at least. Just have to watch it and see at this point.
Prottoss, ironstorm, thanks both for your help!
|
|
Re: WinNT Install Probs |
Wed, 03 April 2002 17:54 |
|
Hey Gang...
Just updated to 1.2.4 and the install went without a hitch, but I'm discovering bugs as I try to use the thing in the most basic sense.
Structure: PHP 4.1.0 (will be updating soon) MySQL 3.23.39 (will be updating soon) FUD 1.2.4
web root = d:\inetpub\wwwroot\forums_hotc_com data dir = d:\inetpub\wwwroot\forum_data
both have very loose permissions for now, until I know it works.
url = forums.homeonthecam.com
Specific Error:
Trying to sign up as a user. Upon completing the form, a 30-second hang occurs, followed by these error messages:
Warning: Failed to Connect in D:\Inetpub\wwwroot\forum_data\include\email.inc on line 153
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Inetpub\wwwroot\forum_data\include\email.inc on line 154
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Inetpub\wwwroot\forum_data\include\core.inc on line 25
Looked around inside email.inc and core.inc at those line numbers, didn't see anything I knew how to change or was comfortable changing. Didn't find anything mailer-related inside globals.php either. Based on the error, I'm guessing it's looking for a linux-style mailer (sendmail, postfix, qmail, whatever) and not finding one, since this is NT.
I make this guess because this is not the only email-related failure I've hit in this FUD version on NT. Also tried to resend myself my password. Got no error message when I tried - but I got no email either. Further, pressing on and getting around the above error messages, the user can log in and sue the foirums but never receives the confirmation email (which is what I'm guessing the above is trying to do, yes?)
An SMTP server is available on the machine (IMail server, from ipswitch), but it requires authentication for all smtp traffic.
Any ideas?
|
|
Re: WinNT Install Probs |
Wed, 03 April 2002 18:03 |
|
web root = d:\inetpub\wwwroot\forums_hotc_com data dir = d:\inetpub\wwwroot\forum_data
should be:
web root = d:\\inetpub\\wwwroot\\forums_hotc_com data dir = d:\\inetpub\\wwwroot\\forum_data
When you enter file paths in windows and you use \ as dir separator, you MUST enter then as \\, because normally \ is considered an escape character by PHP.
I believe PHP is not able to do authentication. If your server requires it you'll need to read up on how to make php's mail function send the AUTH information, by sending some special headers (guess work on my part) The reason for the time out is simple, php sits on a socket to the SMTP server who in turn waits for PHP to send it auth information. So, php waits for SMTP server indefinately on the socket. Eventually PHP timeouts, and gives you the warning you're seeing here.
|
|
Re: WinNT Install Probs |
Wed, 03 April 2002 18:50 |
|
Oh, sorry, paths are actually using the "/" as you recommended last time. My mistake, was typing it in in NT terms instead of what's klisted in the config file.
|
|
Re: WinNT Install Probs |
Wed, 03 April 2002 19:00 |
|
jkrische2 wrote on Wed, 03 April 2002 6:50 PM | Oh, sorry, paths are actually using the "/" as you recommended last time. My mistake, was typing it in in NT terms instead of what's klisted in the config file.
|
aha
I've done a little bit of reasearch and it would appear that PHP's native mail function simply cannot/doesn't support SMTP authentication. The only solution is to write your own smtp mailer that would be capable of supporting the particular brand of SMTP authentication your server supports.
Of course, making a suggestion to PHP development team to add SMTP auth to PHP is not a bad idea either
|
|
Re: WinNT Install Probs |
Wed, 03 April 2002 19:15 |
|
Good idea on the devel team.
Is there a way to tell FUD to attmept to send through a server on a different machine (one where I don't have smtp auth)?
|
|
Re: WinNT Install Probs |
Thu, 04 April 2002 10:53 |
|
jkrische2 wrote on Wed, 03 April 2002 7:15 PM | Good idea on the devel team.
Is there a way to tell FUD to attmept to send through a server on a different machine (one where I don't have smtp auth)?
|
Yeah there is, in your php.ini change the smtp server to one which allows you to send mail without authentication.
|
|