php-windows Digest 31 Aug 2002 09:08:10 -0000 Issue 1316
Topics (messages 15606 through 15611):
Help on new install please ..
15606 by: David Tod Sigafoos
15607 by: dash php
15608 by: David Tod Sigafoos
15609 by: dash php
15610 by: David Tod Sigafoos
Re: mail() does not work. Help please...
15611 by: Aleksandar Skodric
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I am having problems on a new install of PHP and Apache
Win2k, Php 4.2.2, apache 1.3.26
1) Install apache. Then browse to 127.0.0.1 and get the apache screen
2) unzip php and copy to c:/php
3) install.txt
a) dlls are all in the /php directory with php.exe (did not copy to
windows/system32
b) copied ini to windows director
c) modified ini file extension_dir = c:\php
d) modified ini file document_root = "c:\program files\apache
group\apache\htdocs\"
e) no extensions
Web Server Config: First try SAPI
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Start Server .. get message
[Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added, skipping
Apache/1.3.26 (Win32) running...
Then bring up browse and try for phpinfo.php script in htdocs
I get the 'download' screen from my netscape browser. It doesnt
recognize php
Web Server Config: Now try php.exe (cgi)
a) shut down server
b) modify http.conf.
# out the lines mentioned above and add the following
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
c) start up server (no message as noted above)
d) bring up browser and try for phpinfo.php script in htdocs
I get a blank page. upon viewing the source it is
<html><body></body></html>
My phpinfo.php record is
<html>
<?php phpinfo(); ?>
</html>
This works well from my other server ...
So .. what have I missed ..
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--- End Message ---
--- Begin Message ---
Try the following:
Apache as SAPI:
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
# try it w/o this line AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Your phpinfo.php file should look like this:
<?php phpinfo(); ?>
No <html> or </html>. That's how it works for me. I'm not sure if that's an
issue or not though.
You're on the right track.
-Dash
-----Original Message-----
From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help on new install please ..
I am having problems on a new install of PHP and Apache
Win2k, Php 4.2.2, apache 1.3.26
1) Install apache. Then browse to 127.0.0.1 and get the apache screen
2) unzip php and copy to c:/php
3) install.txt
a) dlls are all in the /php directory with php.exe (did not copy to
windows/system32
b) copied ini to windows director
c) modified ini file extension_dir = c:\php
d) modified ini file document_root = "c:\program files\apache
group\apache\htdocs\"
e) no extensions
Web Server Config: First try SAPI
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Start Server .. get message
[Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added,
skipping
Apache/1.3.26 (Win32) running...
Then bring up browse and try for phpinfo.php script in htdocs
I get the 'download' screen from my netscape browser. It doesnt
recognize php
Web Server Config: Now try php.exe (cgi)
a) shut down server
b) modify http.conf.
# out the lines mentioned above and add the following
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
c) start up server (no message as noted above)
d) bring up browser and try for phpinfo.php script in htdocs
I get a blank page. upon viewing the source it is
<html><body></body></html>
My phpinfo.php record is
<html>
<?php phpinfo(); ?>
</html>
This works well from my other server ...
So .. what have I missed ..
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello dash,
Sorry .. but it does the same that I had noted. The browser trys to
download ..
This is so odd as I am simply trying to install to a local pc for
testing. my server works just great <sigh> ..
I must be missing something simple
Friday, August 30, 2002, 3:33:44 PM, you wrote:
dp> Try the following:
dp> Apache as SAPI:
dp> a) copied php4ts.dll to windows/system32 directory
dp> b) added following lines to httpd.conf
dp> LoadModule php4_module "c:/php/sapi/php4apache.dll"
dp> # try it w/o this line AddModule mod_php4.c
dp> AddType applicaton/x-httpd-php .php
dp> Your phpinfo.php file should look like this:
dp> <?php phpinfo(); ?>
dp> No <html> or </html>. That's how it works for me. I'm not sure if that's an
dp> issue or not though.
dp> You're on the right track.
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--- End Message ---
--- Begin Message ---
Odd... I'm assuming that you're using Win2k installed in c:\windows.
Also, try undoing the changes you made to your windows\php.ini file. It may
be a simple little error there. I don't have those set on my machine.
Good luck,
-Dash
-----Original Message-----
From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 5:31 PM
To: dash php
Cc: [EMAIL PROTECTED]
Subject: Re[2]: [PHP-WIN] Help on new install please ..
Hello dash,
Sorry .. but it does the same that I had noted. The browser trys to
download ..
This is so odd as I am simply trying to install to a local pc for
testing. my server works just great <sigh> ..
I must be missing something simple
Friday, August 30, 2002, 3:33:44 PM, you wrote:
dp> Try the following:
dp> Apache as SAPI:
dp> a) copied php4ts.dll to windows/system32 directory
dp> b) added following lines to httpd.conf
dp> LoadModule php4_module "c:/php/sapi/php4apache.dll"
dp> # try it w/o this line AddModule mod_php4.c
dp> AddType applicaton/x-httpd-php .php
dp> Your phpinfo.php file should look like this:
dp> <?php phpinfo(); ?>
dp> No <html> or </html>. That's how it works for me. I'm not sure if that's
an
dp> issue or not though.
dp> You're on the right track.
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello dash,
I have gone back to the initial ini file from php and still reacts the
same.
Still not working. Looks like I will have to drop back and punt
(reinstall)
Friday, August 30, 2002, 5:35:07 PM, you wrote:
dp> Odd... I'm assuming that you're using Win2k installed in c:\windows.
dp> Also, try undoing the changes you made to your windows\php.ini file. It may
dp> be a simple little error there. I don't have those set on my machine.
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--- End Message ---
--- Begin Message ---
Hi,
you said that you don't have a provider, so I suppose that you do not have
any smtp server you could use...
You have two options, register with some provider so that you could use
their SMTP server (smtp server sends mail).
Or, install your own mail server...
Cheers,
Alex
----- Original Message -----
From: "Piotr Pluciennik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 12:46 PM
Subject: Re: [PHP-WIN] mail() does not work. Help please...
> So, you should have an access to smtp server. Then in
> php.ini set lines as below according to address of
> your server and your mailbox...
>
> [mail function]
> SMTP = your.smtp.server
> sendmail_from = [EMAIL PROTECTED]
>
> HTH
>
> Piotr
>
> --- Peter <[EMAIL PROTECTED]> wrote:
> > My mail() does not work. Apache server tells me that
> > no connection could
> > be made. (I have: windows XP, Apache, PHP4, MySQL)I
> > do not have a
> > provider. I just have a bare ADSL line (which I
> > could hire for a bargain).
> > 1. what must I do in the ini-files? (send_mail etc.)
> > 2. this is my small text which does not work:
> > $my_mail = "<my_email_address>"
> > mail ($my_mail, "No need for reply -- PHP test!",
> > "hi Peter\nLine 2\n");
> > 3. I have a XP-firewall.
> > As all the other programs work well (several
> > messengers work fine: AOL,
> > MSN) what did I do wrong, forget etc.
> > Can anyone help me?
> > with friendly greetings,
> > Peter
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---