[tools] update.script

Do you like use update.script ?

  • yes, all time

    Votes: 221 69.1%
  • no, some time

    Votes: 44 13.8%
  • some time

    Votes: 55 17.2%

  • Total voters
    320
Yes it does.

I use customapache

i installed it first by update.script IMAP after that the php build by customapache
 
i try to install imap but get a strange error.

/usr/local/directadmin/customapache/configure.php: line 6: --with-imap=/usr/local/imap-2004c1: No such file or directory

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

but the imap directory does exist.

Someone know how it comes


i look in the map imap-2004c1 and see 2 directory.

Inlcude and lib is this correct ?
 
i've just upgraded php to 5.2.7 but it appears that eaccelerator doesn't work with this version.

the errors i get when upgrading php are:

Code:
Installing PEAR environment:      /usr/local/lib/php/
PHP Warning:  [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.6. Rebuild it for your PHP version (5.2.7) or download precompiled binaries.
 in Unknown on line 0
PHP Fatal error:  Unable to start eAccelerator module in Unknown on line 0
make[1]: *** [install-pear-installer] Error 254
make: *** [install-pear] Error 2

does anyone know of a workaround or failing that, can anyone recomend an alternative?

edit: i've just rebuilt eaccelerator and it seems to be working ok as far as i'm aware, so maybe the old version works ok
 
Last edited:
hello.
for mod security
i do it and install and do step by step which you write in post 1.
but my httpd down and not work.
so whats wrong?
 
imap_open gives segmentation fault

Hi,

I am using the imap 2004c for some time on several servers. In php 5.2.5 and php 5.2.8 I have a problem with imap_open. In the /var/log/httpd/error_log I see segmentation faults.

It happened also last week, I upgraded tot php 5.2.8 and it helped. For a while... The problem is back now.

It is simple te reproduce:
$mailbox = "{mail.xxx.xx:110/pop3}INBOX";
$connection = imap_open($mailbox,$userid, $password);

Tried lots of stuff with imap, ssl etc. etc.
I know there was a bug in a previous version of php or should I look into the imap2000c and upgrade it to imap2000g ?

Who knows ?
 
Hello,
i install mod securtiy 2 for apache 2 but when i want restart httpd it says :

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

i think libxml2.so there is not on my server..can you help me how can i add this to my server ?
i have vps,centos 5.2, 32bit...

thanks
 
After running the update script for MySql I get this message in PHPMyAdmin:

Your PHP MySQL library version 5.1.30 differs from your MySQL server version 5.0.67. This may cause unpredictable behavior.

I have rebuild php, I know I did something wrong thats for sure but can someone tell me what it could be?
 
Try:
Code:
cp -f /usr/lib/libmysqlclient.* /usr/lib/mysql/

Then rebuild PHP again.
 
with custombuild set not compile mysql what would be updating mysql? yum or the package manager? also does DA use their own rpm/deb packages or are they from the distro? (this is about mysql again)
 
Cent5.2 x86_64 and OpenSSL - not updating

Hi All,

I have a new server that is experiencing the following problem: This issue is only occurring on Cent5.2 x86_64.


see below:

...
checking for getpagesize... yes
checking whether snprintf correctly terminates long strings... yes
checking whether snprintf can declare const char *fmt... yes
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking if openpty correctly handles controlling tty... yes
checking whether getpgrp requires zero arguments... yes
checking OpenSSL header version... 90809f (OpenSSL 0.9.8i 15 Sep 2008)
checking OpenSSL library version... 90802f (OpenSSL 0.9.8b 04 May 2006)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your
library. Check config.log for details.
If you are sure your installation is consistent, you can disable the check
by running "./configure --without-openssl-header-check".
Also see contrib/findssl.sh for help identifying header/library mismatches.

make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
Stopping sshd: [ OK ]
Starting sshd: [ OK ]


Update to Openssh 5.1p1 done
[root@server updatescript]#


Any Pointers?

-Alon.
 
Is there a reason you're not using yum?

Jeff

Hi Jeff,

I was looking into the update.script updates.
When I use the 32bit OS, when I update with update.script, I see versions of :

openssl-0.9.8i
openssh-5.1p1

When I run yum update for x86_64 I see versions of:

OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006

so I'm not sure I'm current with yum updates.

-Alon.
 
Make sure you're using the currently listed yum repositories. Make sure you don't have ssh excluded in your yum.conf file.

Information on yum for CentOS 5 may be found here.

Generally yum will install software with the most up-to-date fixes backported into the official release tree.

Jeff
 
MRTG Problem

Got a new box for migration with DA installed on it. The Datacenter used custombuild to setup the box, and everything seems to be up to date. The box is running CentOS 5.1, with Apache 2.2 and php5.

Now, I tried to install MRTG and got the following error

Code:
[root@newinst updatescript]# ./update.script MRTG
Checking for previous MRTG installation...
The directory /var/www/html/mrtg does not exist. I will create it...
Creating necessary directories and preparing for installation...
Preparations complete...
Downloading the most recent MRTG and installing it...
--11:35:51--  http://oss.oetiker.ch/mrtg/pub/mrtg-2.16.2.tar.gz
Resolving oss.oetiker.ch... 213.144.138.195
Connecting to oss.oetiker.ch|213.144.138.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1078423 (1.0M) [application/x-tar]
Saving to: `mrtg-2.16.2.tar.gz'

100%[====================================================================================================================>] 1,078,423    722K/s   in 1.5s

11:35:53 (722 KB/s) - `mrtg-2.16.2.tar.gz' saved [1078423/1078423]

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes

** Ooops, one of many bad things happened:

   a)  You don't have the GD library installed.
       Get it from http://www.boutell.com, compile it and
       use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
       its location. You might also have to use --with-z-inc,
             --with-z-lib and --with-png-inc, --with-png-lib for gd
             versions 1.6 and higher.  Check config.log for more
       information on the problem.

   b)  You have the GD library installed, but not the gd.h
       header file.  Download the source (see above) and use
       --with-gd-inc=DIR to specify where the file can be found.

   c)  You have the library and the header file installed, but
       you also have a shared GD library in the same directory.
       Remove the shared library files and/or links (e.g.
       libgd.so.2.0.0, libgd.so and libgd.so.2).  This is especially
             likely if you're using a recent (post 1.8.4) version of GD
       and didn't configure it with --disable-shared.

   d)  You have gd library installed and also it's headers, but you are
       missing libpng (and headers) or freetype (and headers)
       (mrtg does not use freetype, but if your copy of gd is precompiled
       against it, you have to install it ...

   Consider following the instructions in doc/mrtg-unix-guide.txt
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
MRTG has been installed...
Updating MRTG config and template...
--11:35:56--  http://tools.web4host.net/mrtgcfg.tar.gz
Resolving tools.web4host.net... 67.205.112.100
Connecting to tools.web4host.net|67.205.112.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2056 (2.0K) [application/x-gzip]
Saving to: `mrtgcfg.tar.gz'

100%[====================================================================================================================>] 2,056       --.-K/s   in 0s

11:35:56 (4.77 MB/s) - `mrtgcfg.tar.gz' saved [2056/2056]

Adding MRTG to /etc/crontab...
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
Cleaning up installation...


MRTG install done

I never ran into this problem, so after some searching I found out that running "yum install gd gd-devel libpng libpng-devel zlib zlib-devel net-snmp net-snmp-utils" should fix the problem, yet it's still there, I tried to modify the script to use ./configure --with-gd=/usr/include and it did compile with just a warning
Code:
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h

Yet MRTG was unable to log anything, showing everything as zeroes.

What am I doing wrong?

Thanks!
 
After some help from smtalk I (well he) finally got it running,

Fixed, changed in update.script:
Code:
---------
./configure --with-gd=/usr/local/lib ; make ; make install
---------
to:
Code:
---------
./configure --with-gd=/usr/lib ; make ; make install

I just post this in case somebody runs into this problem.

Cheers

Jose
 
I upgraded openssl with this script. When I type "openssl version" in the console, it says I have the newest version. Now I am trying to rebuild PHP and Apache, but I get this message during build:

Code:
ext/openssl/.libs/openssl.o: In function `zif_openssl_seal':
/usr/local/directadmin/custombuild/php-5.2.8/ext/openssl/openssl.c:3650: undefined reference to `EVP_CIPHER_CTX_block_size'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

What should I do?
 
Back
Top