Sara Kolster wrote: > 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. ??
Then add these lines (copy and paste to avoid typos) and remove the "#". > The other instructions:| > Uncomment "Load Module php4_module" line. > Uncomment "AddModule mod_php4.c" line > I could do. So you are apparently using the apxs method (--with-apxs). Fine. > 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) Yes. > 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 These are PHP's "interface" files to Apache. > Maybe i have to configure my apache again? You only have to rebuild your Apache if you can't use --with-apxs on PHP's configure command line. If you have an "apxs" program (from your current Apache install), you don't have to re-install Apache. Just use --with-apxs, and if you get an error saying that the apxs program could not be found, use --with-apxs=/path/to/your/apxs. > And in which directory should I be to do that? Better hope you can use apxs (it's a lot easier to install, and if you want to upgrade either PHP or Apache, you have to recompile only one of them). Regards... Michael