473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

php4 with apache on macosx: configuration question

Hi

I have MacOS X 10.3 (not the server edition), which includes apache and
php4. But php hasn't been compiled --with-gd, and I need it, so I
downloaded the source (4.3.4) and configured it with options

'--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw'
'--with-libpng' '--with-png-dir=/sw' '--with-gd'
'--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw'
'--enable-cli'.

After make && make install, I've got my new php in /usr/local/bin, which
I can use from the CLI. But how do I get apache to use this version of
php instead of the one bundled with MacOS? I guess (though I don't know
anything much about httpd.conf) that I should put something like

LoadModule php4_module /path/to/new/libphp4.so

in httpd.conf but I can't find any libphp4.so anywhere (apart from the
old one in /usr/libexec). I don't really understand what I'm doing
here, so any help that brings some clarity to my confused mind will be
appreciated.
--
Arnaud
Jul 17 '05 #1
1 1472
Arnaud Delobelle wrote:
Hi

I have MacOS X 10.3 (not the server edition), which includes apache and
php4. But php hasn't been compiled --with-gd, and I need it, so I
downloaded the source (4.3.4) and configured it with options

'--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw'
'--with-libpng' '--with-png-dir=/sw' '--with-gd'
'--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw'
'--enable-cli'.

After make && make install, I've got my new php in /usr/local/bin, which
I can use from the CLI. But how do I get apache to use this version of
php instead of the one bundled with MacOS? I guess (though I don't know
anything much about httpd.conf) that I should put something like

LoadModule php4_module /path/to/new/libphp4.so

in httpd.conf but I can't find any libphp4.so anywhere (apart from the
old one in /usr/libexec). I don't really understand what I'm doing
here, so any help that brings some clarity to my confused mind will be
appreciated.


I can't believe I forgot to configure php --with-apxs...
Sorry for the silly post.

--
Arnud
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2556
by: pancho | last post by:
Greetings, I need help configuring/building PHP3 with MySQL as a DSO on a Solaris 8 box - this module is needed to host some existing sites I will be migrating Note. I built PHP4 from source and...
0
1995
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
1
1952
by: porneL | last post by:
I've had setup on WinXP: Apache1.3 with PHP4 module and PHP5 installedas CGI for one vhost. This worked fine, till I installed Zend Studio 4 beta. I'm trying to make Zend Server use my...
2
1513
by: Vic Spainhower | last post by:
Hello, I am attempting to get PHP4 working with IIS but the php script is ignored. I installed Apache and it works with the Apache server so it is obviously a configuration error on my part but...
2
1769
by: Terry Richards | last post by:
i am getting lots of errors such as:"...differs in signedness" what is it from? /Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c: In function 'zif_gzcompress':...
0
1274
by: FrankL | last post by:
I had to update my server configuration consisting of Apache2 and PHP4. I now have installed: apache2/apache2-prefork 2.0.54-2.1 apache-mod_php4/php4-zlib/php4 4.3.11-0.3.1 ...
4
1786
by: Andy Baxter | last post by:
hello, I'm using the php4-mysql module with php4 under debian linux (sarge). I have a script, schedule.php, which runs fine when I invoke it from the command line, but fails with the error: ...
1
4790
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I...
3
3459
by: jmark | last post by:
I am currently running php 4.4.7 in windows xp and apache 2. If I enter php in command line. I get the following error The application has failed to start because php5ts.dll was not found" I...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.