[How-to] Update to Apache 2 and Php 5

AleSSaNDRo

Verified User
Joined
Nov 19, 2004
Messages
143
Location
Milano(Italy)
If you use Debian 3.1 and you want update to Apache 2 and Php 5, install custombuild!

Code:
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.
;)
 
I confirm very well functioned on my server DEBIAN 3.1

Thank you AleSSaNDRo
 
Yep worked a treat :D

thanks for sharing it with us much appricated :D
 
It's not a sharing :) I'm just working for you and doing my best :)
 
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?
 
Last edited:
You just ran "./build apache", but not "./build php". That's the problem. For the first time it's recommended to use "./build all".
 
Back
Top