Hi,

i have to ad the line

AddModule mod_php4.c

in the httpd.conf file.

Thought this was done by the "make apache"

Now i can see the "Hello World" php script.

Regards,
Thomas

Thomas Goebel wrote:
Hi,

now i have tried many thing to get a running apache+php system on a aix 4.3.3 OS.
Nothing works.

No i have tried the php4.2.3.

./configure --with-apache=../apache-1.3.27 --with-config-file-path=/usr/local/php --enable-track-vars
--with-ingres=$II_SYSTEM/ingres --without-mysql

and it works!!!! :-)

Then i have compiled apache with

./configure \
"--with-layout=GNU" \
"--with-perl=/usr/local/bin/perl" \
"--prefix=/usr/local/apache" \
"--enable-module=most" \
"--enable-shared=max" \
"--activate-module=src/modules/php4/libphp4.a"

And it works also fine.

Then i add the lines:

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

in the <IfModule mod_mime.c> section.

apchectl start - starts without any errors on the console or logfile

httpd -h looks good:
root@appserv[!]/usr/local/apache>>sbin/httpd -l
Compiled-in modules:
http_core.c
mod_so.c
mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/sbin/suexec
root@appserv[!]/usr/local/apache>>

NOW THE PROBLEM:
I can not receive any php generated files.

I took a t.php file in the htdocs (Documentroot) directory.
t.php:
------------------------
<html> <head>
<title>PHP Test</title>
</head> <body>
<?php echo "Hello World<p>"; ?>
</body> </html>
------------------------

If i try with the Browser to receive this file, mozilla asks me what to do with this file - Open/Choose Application.

Whats wrong with my configuration?
How can i test if the build in php support works?

Regards,
Thomas



Jose Perez wrote:

My php configuration was more easy :
./configure --with-mysql --with-apxs=/usr/local/apache13/sbin/apxs

It is the only i can tell you. Try apache with --enable-module=so and then
tell me what happen.

Ahh!!. I forgott on apache 2 is very important before execute ./configure ,
execute ./buildconf , you can do the probe.

Regards.

----------------------------------------------------------------------------
-
Tu portal de Aix en Espaņol
http://aixpanish.com
----------------------------------------------------------------------------
-
Singer KeyID: 0xC38C7298
----- Original Message -----
From: "Thomas Goebel" <[EMAIL PROTECTED]>
To: "Jose Perez" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 4:03 PM
Subject: Re: [PHP-INST] PHP4.3.0 + AIX4.3.3 compile problems !!!


Hi,

Ingres is a database!

And the function is included in the php distribution.
http://www.php.net/manual/en/ref.ingres.php

So it is not my Problem. Or do you think if you have problem compiling
php with DB2 or mysql support it is your problem?


Regards,
Thomas


Jose Perez wrote:

I'm not sure, because i don't know what is the use of "ingres" support.
But, is clear that if you compile without that module and apache works and
can read php web pages there is your problem and not in php compilation.

--------------------------------------------------------------------------

--

-
Tu portal de Aix en Espaņol
http://aixpanish.com
--------------------------------------------------------------------------

--

-
Singer KeyID: 0xC38C7298
----- Original Message -----
From: "Thomas Goebel" <[EMAIL PROTECTED]>
To: "Jose" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 1:00 PM
Subject: Re: [PHP-INST] PHP4.3.0 + AIX4.3.3 compile problems




Do you think my problem with php is the result of a wrong apache
compilation?

Will try to compile apache with --enable-module=so .

!!!
BTW: If i configure php without ingres support, the "make works fine"
./configure --with-apxs=/usr/local/apache/sbin/apxs
--with-config-file-path=/usr/local/apache --enable-track-vars

Regards,
Thomas

Jose wrote:


On bull, you can find gcc-3.0.1, but it doesn't works fine to me(in some
cases), so after i can compile 3.2.1 with gcc-3.0.1, then remove 3.0.1.
Download sources of apache and php from http://aixpdslib.seas.ucla.edu
I don't know exactly what is the meaning
of --enable-module=most --enable-shared=max , but you don't have

anything to


lose if you recompiled with --enable-module=so
I don't remember exactly my configure options, but they are more or less

so:


./configure --enable-module=so --with-layout=GNU --prefix=/usr/local/apache1

3


Regards.



--

--------------------------------------------------------
[EMAIL PROTECTED]
--------------------------------------------------------




--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--

--------------------------------------------------------
[EMAIL PROTECTED]
--------------------------------------------------------


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
According to my best recollection, I don't remember.
-- Vincent "Jimmy Blue Eyes" Alo
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--

--------------------------------------------------------
[EMAIL PROTECTED]
--------------------------------------------------------


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
McGowan's Madison Avenue Axiom:
	If an item is advertised as "under $50", you can bet it's not
$19.95.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to