make sure you have the AddType application/x-httpd-php .php in httpd.conf,
most like there is an entry for AddType application/x-tar .tgz  right near
where this can be placed.  you don't have to have the second(phps), unless
you need the ability to view source on webpages.

since you have two apaches make sure you add this to the httpd.conf in the
apache directory that you referenced in the PHP configure script
--with-apxs=/path/to/apache/bin/apxs

hth
jeff


                                                                                       
                                                
                      sara kolster                                                     
                                                
                      <[EMAIL PROTECTED]>           To:       [EMAIL PROTECTED]        
                                             
                                               cc:                                     
                                                
                      12/11/2003 04:07         Subject:  [PHP-INSTALL] PHP and 
httpd.conf                                              
                      PM                                                               
                                                
                                                                                       
                                                
                                                                                       
                                                




Hi,

I've some problems getting php running. I would like to install php
together with MySQL. Php is installed, but haven't configured it yet
with MySQL.
For so far i entered the folowing problems;

1) First problem is that when i want to edit my httpd.config file, the
lines:

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

which i have to uncomment are NOT there. ??

The other instructions:|Uncomment "Load Module php4_module" line.
Uncomment "AddModule mod_php4.c" line
I could do.
|
2) Second problem is that in my httpd directory are more httpd.conf files:

[okaras:/etc/httpd] sara# ls
httpd.conf           httpd.conf.default   magic.default
mime.types.default
httpd.conf.bak       magic                mime.types           users

[this is because i installed apache without knowing that OSX2.8 has already
the
apache server installed)

Php-4.3.4/ is in the following directory:
/Users/sara/php-4.3.4/

[okaras:php-4.3.4/sapi/apache] sara# ls
CREDITS              libphp4.module.in    mod_php4.lo          php_apache.c
sapi_apache.c
apMakefile.libdir    mod_php4.c           mod_php4.o
php_apache.lo        sapi_apache.lo
apMakefile.tmpl      mod_php4.exp         php.sym              php_apache.o
sapi_apache.o
config.m4            mod_php4.h           php4apache.dsp
php_apache_http.h

-------

Maybe i have to configure my apache again? And in which directory should I
be to do that?


Sara

Reply via email to