public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Apache/PHP installation puzzle
@ 2003-09-15  6:12 jurgen.defurne
  0 siblings, 0 replies; 12+ messages in thread
From: jurgen.defurne @ 2003-09-15  6:12 UTC (permalink / raw)
  Cc: cygwin

Dave,

Do you run PHP as CGI or as php_mod ?

If CGI, then you should place your PHP scripts in /cgi-bin/,
prepend '#!/usr/bin/php' or whatever, and make your
scripts executable. Also control  your php.ini file.

If you run PHP as php_mod, then you must add the
following lines to your apache httpd.conf file :

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3

for whatever file extensions you need.

After this, check again your php.ini file.

I think it should be installed, I have it here on my system,
installed from standard cygwin. It doesn't run here, but
for other reasons, so I use the CGI, which I compiled
from scratch. I do not need the performance, only the
functionality.

Regards,

Jurgen










<dave_d@boltblue.com>
Sent by: 
cygwin-owner@cygwin.com
09/13/2003 02:25 PM

 
        To:     <cygwin@cygwin.com>
        cc:     (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
        Subject:        Apache/PHP installation puzzle
        Classification: 



Fellow Cygwinners!

Now I fully expect to be told to RTFM --- but here goes anyway!

I've installed Cygwin on a W2K workstation primarily for the purpose of 
running 
Postgres and for this it works admirably. All installations have worked 
flawlessly.

Encouraged by the performance of Cygwin I decided that I would replace the 

local Windows IIS 'Personal Web Server' with Apache +PHP.  I started the 
Setup 
program, selected Apache and the PHP library and initiated the 
installation. 
The installation reported complete with no errors or warnings.  I started 
the 
Apache server and accessing 'localhost/index.html' produced the desired 
result -
 Apache is up and running.  I then wrote the approved php test script ( <?
phpinfo()?> ) and pointed the browser to 'localhost/tester.php'.  No PHP!! 
 I 
checked the /etc/postinstall directory and the presence of 
apache-php-sh.done 
rather indicates that installation was OK.  To check I deleted this file, 
re-
installed the PHP library alone and, again, installation appears OK with 
no 
errors.  I checked in the setup logs - again, no errors.  However, nowhere 
on 
the system is the a libphp4 of any description to be found and so I can't 
see 
how I can add the LoadModule line to the httpd.conf file.

I've spent a couple of hours Googling and searching the mail archives but 
have 
not seen this problem refered to anywhere else. I would appreciate a nudge 
in 
the right direction,

Regards,

Dave.

--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Apache/PHP installation puzzle
@ 2003-09-15 12:04 jurgen.defurne
  2003-09-15 12:18 ` Jason Tishler
  0 siblings, 1 reply; 12+ messages in thread
From: jurgen.defurne @ 2003-09-15 12:04 UTC (permalink / raw)
  Cc: cygwin

Jason,

Thanks for trying to help, but I don't get the relationship
between PHP and Apache, and Perl and libiconv ?

Jurgen










Jason Tishler <jason@tishler.net>
Sent by: 
cygwin-owner@cygwin.com
09/15/2003 01:59 PM

 
        To:     cygwin@cygwin.com
        cc:     (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
        Subject:        Re: Apache/PHP installation puzzle
        Classification: 



Dave,

On Mon, Sep 15, 2003 at 10:15:13AM +0100, dave_d@boltblue.com wrote:
> Does anyone have any suggestions?

Use Google:

    http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=unable+remap+same+address+parent&btnG=Google+Search

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Apache/PHP installation puzzle
@ 2003-09-15  9:20 jurgen.defurne
  0 siblings, 0 replies; 12+ messages in thread
From: jurgen.defurne @ 2003-09-15  9:20 UTC (permalink / raw)
  Cc: cygwin

Dave,

So you get the same error as I got. That is the reason why I
decided to build PHP from scratch for CGI. Now that I know
that I am not the only one to get this error, I think we can
ask the cygwin people to consider this as a bug report.

Regards,

Jurgen










<dave_d@boltblue.com>
Sent by: 
cygwin-owner@cygwin.com
09/15/2003 11:15 AM

 
        To:     <cygwin@cygwin.com>
        cc:     (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
        Subject:        Re: Apache/PHP installation puzzle
        Classification: 



Thanks for the reply, Jurgen, but that didn't work either.

Not to be discouraged I decided to uninstall everything to do with Apache 
and 
PHP and try again.  I did the uninstall and cleaned up all the remaining 
files 
I could find.  I re-booted the system and initiated a re-install from the 
Internet.  To my surprise I got a new Cygwin, bash, and a few other files. 
 The 
Apache was also an updataed version!  Anyway, the installation went 
smoothly 
and this time I indeed had a couple of PHP libraries - 
/lib/apache/libphp4.dll 
and /usr/lib/apache/libphp4.dll to be precise.  Full of hope I checked the 

httpd.conf file - everything in place this time.  I started the httpd 
daemon ---
- and I got the following ....



$ /usr/sbin/apachectl start
[Mon Sep 15 09:43:29 2003] [warn] Loaded DSO lib/apache/libphp4.dll uses 
plain A
pache 1.3 API, this module might crash under EAPI! (please recompile it 
with -DE
API)
[Mon Sep 15 09:43:30 2003] [alert] httpd: Could not determine the server's 
fully
 qualified domain name, using 192.168.40.12 for ServerName
C:\cygwin\usr\sbin\httpd.exe: *** unable to remap 
C:\cygwin\bin\cygintl-1.dll to
 same address as parent(0xCA0000) != 0xCB0000
/usr/sbin/apachectl start: httpd could not be started


Now I'm even more confused! 

Does anyone have any suggestions?

Dave D.



--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Apache/PHP installation puzzle
@ 2003-09-15  9:15 dave_d
  2003-09-15  9:34 ` dave_d
  2003-09-15 11:56 ` Jason Tishler
  0 siblings, 2 replies; 12+ messages in thread
From: dave_d @ 2003-09-15  9:15 UTC (permalink / raw)
  To: cygwin

Thanks for the reply, Jurgen, but that didn't work either.

Not to be discouraged I decided to uninstall everything to do with Apache and 
PHP and try again.  I did the uninstall and cleaned up all the remaining files 
I could find.  I re-booted the system and initiated a re-install from the 
Internet.  To my surprise I got a new Cygwin, bash, and a few other files.  The 
Apache was also an updataed version!  Anyway, the installation went smoothly 
and this time I indeed had a couple of PHP libraries - /lib/apache/libphp4.dll 
and /usr/lib/apache/libphp4.dll to be precise.  Full of hope I checked the 
httpd.conf file - everything in place this time.  I started the httpd daemon ---
- and I got the following ....



$ /usr/sbin/apachectl start
[Mon Sep 15 09:43:29 2003] [warn] Loaded DSO lib/apache/libphp4.dll uses plain A
pache 1.3 API, this module might crash under EAPI! (please recompile it with -DE
API)
[Mon Sep 15 09:43:30 2003] [alert] httpd: Could not determine the server's fully
 qualified domain name, using 192.168.40.12 for ServerName
C:\cygwin\usr\sbin\httpd.exe: *** unable to remap C:\cygwin\bin\cygintl-1.dll to
 same address as parent(0xCA0000) != 0xCB0000
/usr/sbin/apachectl start: httpd could not be started


Now I'm even more confused! 

Does anyone have any suggestions?

Dave D.



--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Apache/PHP installation puzzle
@ 2003-09-13 12:25 dave_d
  2003-09-15  9:10 ` Stipe Tolj
  0 siblings, 1 reply; 12+ messages in thread
From: dave_d @ 2003-09-13 12:25 UTC (permalink / raw)
  To: cygwin

Fellow Cygwinners!

Now I fully expect to be told to RTFM --- but here goes anyway!

I've installed Cygwin on a W2K workstation primarily for the purpose of running 
Postgres and for this it works admirably. All installations have worked 
flawlessly.

Encouraged by the performance of Cygwin I decided that I would replace the 
local Windows IIS 'Personal Web Server' with Apache +PHP.  I started the Setup 
program, selected Apache and the PHP library and initiated the installation.  
The installation reported complete with no errors or warnings.  I started the 
Apache server and accessing 'localhost/index.html' produced the desired result -
 Apache is up and running.  I then wrote the approved php test script ( <?
phpinfo()?> ) and pointed the browser to 'localhost/tester.php'.  No PHP!!  I 
checked the /etc/postinstall directory and the presence of apache-php-sh.done 
rather indicates that installation was OK.  To check I deleted this file, re-
installed the PHP library alone and, again, installation appears OK with no 
errors.  I checked in the setup logs - again, no errors.  However, nowhere on 
the system is the a libphp4 of any description to be found and so I can't see 
how I can add the LoadModule line to the httpd.conf file.

I've spent a couple of hours Googling and searching the mail archives but have 
not seen this problem refered to anywhere else. I would appreciate a nudge in 
the right direction,

Regards,

Dave.

--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-09-15 16:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15  6:12 Apache/PHP installation puzzle jurgen.defurne
  -- strict thread matches above, loose matches on Subject: below --
2003-09-15 12:04 jurgen.defurne
2003-09-15 12:18 ` Jason Tishler
2003-09-15  9:20 jurgen.defurne
2003-09-15  9:15 dave_d
2003-09-15  9:34 ` dave_d
2003-09-15 16:32   ` Igor Pechtchanski
2003-09-15 11:56 ` Jason Tishler
2003-09-15 15:30   ` dave_d
2003-09-15 15:48     ` Jason Tishler
2003-09-13 12:25 dave_d
2003-09-15  9:10 ` Stipe Tolj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).