PDA

View Full Version : Install PHP5 on fresh Fedora Core 2


robbatse
2004-08-06, 04:47 AM CDT
Hi there,

i have installed Fedora core2 on my system with apache 2.0.49 and mysql4. apache was pre-installed. now i want to compile php5 on that machine for use with apache2.

I downloaded php-5.0.0.tar.bz2 from php.net (source) and un-tar'd it to my folder /home/install/php/5/php-5.0.0

I read that I have to enter this string on the bash before I can do make install:


./configure --with-mysql=/var/lib/mysql --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php

there is a problem: path /usr/local/apache/bin/apxs doesn't exist on my system. I think that this is the httpd service (which is called 'httpd' actually on my system, not apxs) - so what path would be correct?
and: is the other path also right?

I'm not quite new to linux but I never compiled something :o

would be great if anyone could help me, thx!

ewdi
2004-08-06, 05:24 AM CDT
You will only need to use apxs if you want to compile php as a DSO module, if not you can skip it
You can use --without-apxs instead

also warning, PHP5 breaks a lot of web applications because of couple function strings has changed

robbatse
2004-08-06, 06:12 AM CDT
thx!!
and what means that?

--prefix=/usr/local/php


is this the directory where the source code is located?

ewdi
2004-08-06, 06:50 AM CDT
it means where you will be installing the files to

robbatse
2004-08-06, 08:12 AM CDT
it works :)))
damn these rpms :)))

paulehr
2004-09-07, 02:02 AM CDT
apxs is stored in /usr/sbin

IceNine
2004-10-27, 05:11 PM CDT
apxs is only there if you have httpd-devel installed.