DirectAdmin Forums

Go Back   DirectAdmin Forums > Modifications / Add-ons > How-To Guides

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2006, 04:38 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Lightbulb HOW TO : Upgrade Apache 1.x or 2.x to last version 2.0

****
DirectAdmin how to
****

Hello,
Changes with Apache 2.0.59

from 2.x to 2.0.59
Code:
cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build update_data_ap2
./build clean
./build apache_2
./build php_ap2 n
./build mod_frontpage_ap2
./build mod_perl_ap2
./build zend
/sbin/service httpd restart
from 1.3.x to 2.0.59
Code:
cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build update_data_ap2
./build convert 
./build clean
./build apache_2
./build php_ap2 n 
./build mod_frontpage_ap2
./build mod_perl_ap2
./build zend
/sbin/service httpd restart
Have a nice day

Wael
__________________


Web for host serving the web since 2004


((( update.script ))) help you to upgrade

OpenSSL / Exim / OpenSSH / ProFTP / phpMyAdmin / MySQL / SquirrelMail
AVG Anti-Virus / Clam Anti-Virus / MODclamAV / MRTG / SpamAssassin / IMAP
SquirrelMail / MODsecurity / MODsecurity Rules / MODevasive / MailScanner
KISS My Firewall / eAccelerator / Freetype / Control panel Webmin


Last edited by @how@; 02-02-2007 at 10:14 AM.
Reply With Quote
  #2  
Old 05-01-2006, 08:30 AM
R.O.N.E. R.O.N.E. is offline
Verified User
 
Join Date: Feb 2006
Location: Netherlands
Posts: 25
When I upgrade I get the next message on everything I will do:
-bash: ./build: No such file or directory

When I look in customapache dir. there nothing downloaded.

can someone tell me what went wrong?
Reply With Quote
  #3  
Old 05-01-2006, 08:37 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
In side folder
Code:
/usr/local/directadmin/
you show have folder
Code:
customapache
if not found make new one
Code:
mkdir customapache
then download
Code:
build
update form to



Wael
Reply With Quote
  #4  
Old 05-01-2006, 08:49 AM
R.O.N.E. R.O.N.E. is offline
Verified User
 
Join Date: Feb 2006
Location: Netherlands
Posts: 25
This is the error that I get when I wan't get the build to download,


--17:40:18-- http://files.directadmin.com/servic...tomapache/build
=> `build'
Resolving files.directadmin.com... 199.237.54.170
Connecting to files.directadmin.com|199.237.54.170|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:40:18 ERROR 404: Not Found.

Does anyone has any idea?

Thanks...
Reply With Quote
  #5  
Old 05-01-2006, 08:54 AM
xemaps xemaps is offline
Verified User
 
Join Date: Apr 2006
Location: Europe
Posts: 430
wget true url not content you see
__________________
xemaps
Hate cavern ages. Hate spam and will fight against.
Member of spamcop / stormcenter sans.org and other.
Reply With Quote
  #6  
Old 05-01-2006, 09:07 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Quote:
Originally posted by R.O.N.E.
This is the error that I get when I wan't get the build to download,


--17:40:18-- http://files.directadmin.com/servic...tomapache/build
=> `build'
Resolving files.directadmin.com... 199.237.54.170
Connecting to files.directadmin.com|199.237.54.170|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:40:18 ERROR 404: Not Found.

Does anyone has any idea?

Thanks...


Quote:
cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build

.... etc
__________________


Web for host serving the web since 2004


((( update.script ))) help you to upgrade

OpenSSL / Exim / OpenSSH / ProFTP / phpMyAdmin / MySQL / SquirrelMail
AVG Anti-Virus / Clam Anti-Virus / MODclamAV / MRTG / SpamAssassin / IMAP
SquirrelMail / MODsecurity / MODsecurity Rules / MODevasive / MailScanner
KISS My Firewall / eAccelerator / Freetype / Control panel Webmin

Reply With Quote
  #7  
Old 05-01-2006, 10:10 AM
R.O.N.E. R.O.N.E. is offline
Verified User
 
Join Date: Feb 2006
Location: Netherlands
Posts: 25
something went pretty wrong I think....

After ./build php_ap2 y the process stopped and then I get the next message:

libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

*** The make has failed, do you want to try to make again? (y,n):


I can retry what I want but it will stay the same.

Completing the rest and wanting to restart httpd i am getting this:

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 66 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: cannot open shared object file: No such file or directory
[FAILED]


Please can some help me with this problem?
Reply With Quote
  #8  
Old 05-01-2006, 10:30 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Quote:
Originally posted by R.O.N.E.
something went pretty wrong I think....

After ./build php_ap2 y the process stopped and then I get the next message:

libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

*** The make has failed, do you want to try to make again? (y,n):


I can retry what I want but it will stay the same.

Completing the rest and wanting to restart httpd i am getting this:

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 66 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: cannot open shared object file: No such file or directory
[FAILED]


Please can some help me with this problem?
PM with server info to fix it
MSN only web4host@hotmail.com
Reply With Quote
  #9  
Old 05-01-2006, 11:17 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Thumbs up

Quote:
Originally posted by R.O.N.E.
something went pretty wrong I think....

After ./build php_ap2 y the process stopped and then I get the next message:

libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

*** The make has failed, do you want to try to make again? (y,n):


I can retry what I want but it will stay the same.

Completing the rest and wanting to restart httpd i am getting this:

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 66 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: cannot open shared object file: No such file or directory
[FAILED]


Please can some help me with this problem?

FIX DONE 100%
Reply With Quote
  #10  
Old 05-01-2006, 01:23 PM
R.O.N.E. R.O.N.E. is offline
Verified User
 
Join Date: Feb 2006
Location: Netherlands
Posts: 25
Thumbs up

Thanks Wael for your outstanding and friendly help.
Reply With Quote
  #11  
Old 05-05-2006, 09:19 PM
crspyjohn crspyjohn is offline
Verified User
 
Join Date: May 2006
Posts: 19
My ssh connection is closing when i run the php update. can anyone help me?
Reply With Quote
  #12  
Old 05-06-2006, 06:43 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Thumbs up

Quote:
Originally posted by crspyjohn
My ssh connection is closing when i run the php update. can anyone help me?
send PM with server info
Reply With Quote
  #13  
Old 05-06-2006, 08:33 AM
welch welch is offline
Verified User
 
Join Date: Aug 2004
Posts: 95
Quote:
Originally posted by crspyjohn
My ssh connection is closing when i run the php update. can anyone help me?
Same thing here. I am also getting the error :
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1


****FIXED****

Last edited by welch; 05-06-2006 at 12:41 PM.
Reply With Quote
  #14  
Old 05-06-2006, 02:48 PM
The_cobra666 The_cobra666 is offline
Verified User
 
Join Date: Jan 2006
Location: Belgium
Posts: 106
I had that with php 5.1.3.

Then went back to 5.1.2 no problems or what so ever.

If ssh crashes, try this ==>

yum install screen

when done typ this in SSH ==>

screen

Then you are in a virtual "screen", if that crashes you will still have a usable ssh cause that virtual screen crashed not ssh it's very handy
Reply With Quote
  #15  
Old 05-21-2006, 08:37 PM
eddof13 eddof13 is offline
Registered User
 
Join Date: May 2006
Posts: 4
Hi, when running

./build php_ap2 y

It crashes and my server disconnects my ssh. What is causing this, and how can I fix it? Thanks!

It also said something like Mhash : invalid pointer when it crashed.
Reply With Quote
  #16  
Old 05-22-2006, 04:39 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Quote:
Originally posted by eddof13
Hi, when running

./build php_ap2 y

It crashes and my server disconnects my ssh. What is causing this, and how can I fix it? Thanks!

It also said something like Mhash : invalid pointer when it crashed.
Code:
./build php_ap2 n
Reply With Quote
  #17  
Old 05-22-2006, 12:30 PM
eddof13 eddof13 is offline
Registered User
 
Join Date: May 2006
Posts: 4
Hi, when using ./build php_ap2 n like you said in your last post, I get the following error:

Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
apxs:Error: Invalid query string `MPM_NAME'
apxs:Error: Invalid query string `APU_BINDIR'
apxs:Error: Invalid query string `APR_BINDIR'
./configure: line 5674: /apr-config: No such file or directory
./configure: line 5675: /apu-config: No such file or directory
configure: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)

*** There was an error while trying to configure php. Check the configure.php file

[root@hkg2r5c109 customapache]#
Sorry, I'm still learning how to do all of this.

Last edited by eddof13; 05-22-2006 at 12:47 PM.
Reply With Quote
  #18  
Old 05-23-2006, 02:02 AM
explodehost.com explodehost.com is offline
Verified User
 
Join Date: Oct 2005
Location: Los Angeles.
Posts: 13
I get the same error:

./configure: line 5674: /apr-config: No such file or directory
./configure: line 5675: /apu-config: No such file or directory
configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)

*** There was an error while trying to configure php. Check the configure.php file
__________________
Eliav K
http://www.explodehost.com
Reply With Quote
  #19  
Old 05-23-2006, 05:04 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
Quote:
Originally posted by eddof13
Hi, when using ./build php_ap2 n like you said in your last post, I get the following error:

Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
apxs:Error: Invalid query string `MPM_NAME'
apxs:Error: Invalid query string `APU_BINDIR'
apxs:Error: Invalid query string `APR_BINDIR'
./configure: line 5674: /apr-config: No such file or directory
./configure: line 5675: /apu-config: No such file or directory
configure: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)

*** There was an error while trying to configure php. Check the configure.php file

[root@hkg2r5c109 customapache]#
Sorry, I'm still learning how to do all of this.
read this
Quote:
You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)
your server is Apache 1.3
Reply With Quote
  #20  
Old 05-23-2006, 05:08 AM
@how@'s Avatar
@how@ @how@ is offline
Verified User
 
Join Date: Mar 2005
Location: Kingdom of Bahrain
Posts: 860
eddof13 & explodehost.com you need to build with y
remove old php folder in
cd /usr/local/directadmin/customapache
then start build with y
./build php_ap2 y



Wael
Reply With Quote
Reply

Tags
好帖子。自定义组件

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software