PDA

View Full Version : [How-to] Update to Apache 2 and Php 5


AleSSaNDRo
08-07-2007, 06:51 AM
If you use Debian 3.1 and you want update to Apache 2 and Php 5, install custombuild!

cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build all d:)

CustomApache is bad for it! CustomApache creates alone problems for that update.

Example: ./build php_ap2 n
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
Found /usr/local/directadmin/customapache/php-5.2.3.tar.gz
Extracting ...
Done.
patching file php-5.2.3/ext/standard/mail.c
ln: `/usr/lib/libltdl.so': File exists
Configuring php-5.2.3...
Done Configuration.
Can't open Makefile: No such file or directory.
Trying to make php...
make: *** No targets specified and no makefile found. Stop.;)

marcofcp
08-07-2007, 12:52 PM
I confirm very well functioned on my server DEBIAN 3.1

Thank you AleSSaNDRo

flumps
08-08-2007, 04:14 AM
will this work for centOS 4.4 6bit also?

smtalk
08-08-2007, 04:38 AM
Yes, it will.

flumps
08-10-2007, 06:07 AM
Yep worked a treat :D

thanks for sharing it with us much appricated :D

smtalk
08-22-2007, 07:23 AM
It's not a sharing :) I'm just working for you and doing my best :)

duntuk
08-22-2007, 06:38 PM
be careful with this one if you already have apache 2.x installed.... it rewrites all httpd .conf files (and DELETES a bunch of others)... ( i was already running latest version of apache 2.2.4)

referencing previous install guides for apache 2.x which i used
**********************
http://www.directadmin.com/forum/showthread.php?threadid=13173&perpage=20&pagenumber=1

http://www.directadmin.com/forum/showthread.php?threadid=14285
**********************

basically... did the above, then restarted apache.... and 'oh snap' php files weren't being parsed (it was showing the source code!) and i got "congratulation you've installed apache blah blah blah" on others sites...


anyhow... quick fix was to restore the entire /etc/httpd/conf directory with a backup... and viola! all worked... and atleast php was updated to latest version by the above method ( i used to have 5.2.0)

maybe i'll take a look back and see what exactly happened here (made a backup of the non-working /conf ) or maybe someone can point out what exactly went wrong?

smtalk
08-23-2007, 03:16 AM
You just ran "./build apache", but not "./build php". That's the problem. For the first time it's recommended to use "./build all".