PHP 4 to PHP 5 Upgrade

im trying to follow the instructions to install php 5 and when Im on the make part i get:

make: *** No targets specified and no makefile found. Stop.

and when I type in make install i get kinda the same but it says:

make: *** No rule to make target `install'. Stop.


any ideas?

when I did the whole /this/that/configure.php part i got:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

is libxml2 causing the problem?

if anyone could help that would be great thanks.
 
make wont work if configure doesnt finish.

you are missing libxml2 if you install that then try configure again.
 
all this talk about upgrading to php5 does it still work ok along side direct admin? I suppose it should otherwise so many people on here would not have updated to it I guess?

any complications that I should be aware of?
 
PHP 5.2.0 is working great with directadmin. (I don't think directadmin has any dependency on PHP.) The only issues you could possibly have are with the web applications themselves. If they are actively developed, then they should already be compatible with PHP 5, if not actively developed, I personally would not use them as any security issues would not be addressed either.:)
 
problem after make install

:/home/admin/temp/php-5.2.1# make install
Installing PHP SAPI module: apache
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Configuration file is not valid. There are sections closed before opened.
make: *** [install-sapi] Error 1


I'm getting this error after typing "make install"
what can it be and how can i fix it ?
 
When I get to here:
# /usr/local/directadmin/customapache/configure.php

I get the following:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/sbin/apxs follows
/libexec/ld-elf.so.1: Shared object "libexpat.so.5" not found, required by "httpd"
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
configure: error: Aborting



I'm running FreeBSD 5.4. I've checked and libexpat.so.5 is in the /usr/local/lib directory. Right now, I can't finish configuring php and apache won't start. Anybody got any ideas?
 
This has been a very helpful thread, so thanks the contributors, I'm now running PHP 5.2.3.
thumbsup%5B1%5D.gif
 
libphp5.so is not created

ive tried installing php 5.2 and it doesn't create libphp5.so everything else seems to go fine

but i don't know what to do... can anyone help?
 
Hi,
I had the same problem on CentOS 3.3. I have reinstalled libxml2 again and again. PHP5 did not compiling. 2 days smoking head. Then I found that:
http://xmlsoft.org/FAQ -
# Troubles compiling or linking programs using libxml2

Usually the problem comes from the fact that the compiler doesn't get the right compilation or linking flags. There is a small shell script xml2-config which is installed as part of libxml2 usual install process which provides those flags. Use

xml2-config --cflags

to get the compilation flags and

xml2-config --libs

to get the linker flags. Usually this is done directly from the Makefile as:

CFLAGS=`xml2-config --cflags`

LIBS=`xml2-config --libs`

So I looked for the script and it worked for me.

Greets from Czech.

Good luck!!!
 
Back
Top