Hi!
I want to compile PHP5 (with MySQL) for Apache2 on my Mac OS X. I've
compiled everything now. But I can't find any info on what to print in
my httpd.conf.
Dirs:
/usr/local/mysql
/usr/local/php5
/usr/local/apache2
In my /usr/local/apache2/conf/httpd.conf I added:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
But I guess I need to add something to load php5. I tried:
LoadModule php5_module /etc/httpd/libexec/httpd/libphp5.so
But it didn't load successfully..
Thanks in advance
Sebastian Dahlgren, Sweden
PHP5 and Apache2
Moderator: General Moderators
Hi,
I can't be of much help other than provide the link to the mac os x install page on php.net:
http://www.php.net/manual/en/install.macosx.php

I can't be of much help other than provide the link to the mac os x install page on php.net:
http://www.php.net/manual/en/install.macosx.php
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Can you post the relevant parts of your httpd.conf.
apxs usually adds the line for the php5 module right down at the bottom of the list of modules to load-in.
That's from the httpd.conf on my laptop (as you can see, I don't have many modules loaded into apache on my laptop
).
apxs put that line there for me though
apxs usually adds the line for the php5 module right down at the bottom of the list of modules to load-in.
Code: Select all
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php5_module modules/libphp5.soapxs put that line there for me though