PDA

View Full Version : Cannot compile new PHP with apxs


olli
19th April 2005, 18:27
Hi,

I have a dedicated server, it currently has Apache 2 and PHP 4.2.x installed on it. I'm trying to install PHP 4.3.11 on it.

I have compiled PHP 4.3.11 on the machine, but Apache is still using the old version. I think this is because I didn't specify --with-apxs2=/path/to/apxs. I didn't do it, because I don't know the path to apxs. I can't find it anywhere on the server.

I still have an httpd.conf file and everything.... and a directory for modules.... but I can't for the life of me find the path to apxs so that PHP ./configure can create the libphp4.so file.....

Don't know what to do now... :( Please help!

Olli

falko
19th April 2005, 18:38
Run

updatedb
locate apxs

to find apxs.

olli
20th April 2005, 11:54
updatedb and locate don't seem to be installed on my system... :( Any hints?

Olli

falko
20th April 2005, 12:05
Run yast and install the package findutils-locate. Afterwards, updatedb and locate will be on your system.

olli
20th April 2005, 19:34
Run yast and install the package findutils-locate. Afterwards, updatedb and locate will be on your system.

That did the trick. :) :)

Thanks!

Olli

areamike
8th February 2006, 23:26
I did the above information to find path to apxs. All I get is path to

/var/www/manual/programs/apxs.html.ko.euc-kr
/var/www/manual/programs/apxs.html.en
/var/www/manual/programs/apxs.html

I cannot find th epath to apxs.

I am running Redhat Enterprise 4 ES

falko
9th February 2006, 01:52
You must install the apache-devel package.
I'm not quite sure if RHEL uses yum or up2date as package manager. If it's yum, you can run
yum search apache to find the apache-devel package, and you can install it with yum install <package_name>

I don't know the syntax for up2date, so you better check with man up2date

areamike
9th February 2006, 15:07
Thanks for the reply.
It looks like RHEL4 uses up2date.
However, there is no apache-devel package available for RHEL4.

Looks like I will be compiling Apache manually myself...and just not use the default apache package that installs with Redhat.

thanks.

falko
9th February 2006, 22:32
Thanks for the reply.
It looks like RHEL4 uses up2date.
However, there is no apache-devel package available for RHEL4.

I can't imagine that... Are you sure? You should search again. Its name might not be apache-devel, but something with apache in it.

areamike
9th February 2006, 23:19
I can't imagine that... Are you sure? You should search again. Its name might not be apache-devel, but something with apache in it.

I know. I was surprised too.
I did an extensive search, but no luck.
I'll check again.

radical
4th March 2006, 08:36
I know. I was surprised too.
I did an extensive search, but no luck.
I'll check again.
It is included in RHEL4 or at least it's in CentOS 4. Install the package package "httpd-devel".

areamike
4th March 2006, 16:32
Sorry FALKO, After searching around and after radical's comment. I was able to find httpd-devel rpm on DISC4 for RHEL4.

Thanks~!

Now off to try and install PHP again...