[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
Code:
ls: cannot access /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: No such file or directory

?
 
So, is clear, the path is invalid, check the correct path.

Should work doing:

Code:
ls -l /usr/local/lib/php/extensions/no-debug-non-zts-*

Regards
 
Code:
ls: cannot access /usr/local/lib/php/extensions/no-debug-non-zts-*: No such file or directory

this is really strange i did follow all instructions :)
 
so retry instlal suhoisn extension using

Code:
cd /usr/local/update.script
./update.script SUHOSIN

And pay attention on the path it say where the extension get intsalled at the end of the script.

Regards
 
Code:
./update.script SUHOSIN

--2012-02-07 02:31:07--  http://download.suhosin.org/suhosin-0.9.32.1.tar.gz
Resolving download.suhosin.org... 85.214.93.8
Connecting to download.suhosin.org|85.214.93.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 119117 (116K) [application/x-gzip]
Saving to: “suhosin-0.9.32.1.tar.gz”

100%[======================================>] 119,117      278K/s   in 0.4s    

2012-02-07 02:31:12 (278 KB/s) - “suhosin-0.9.32.1.tar.gz” saved [119117/119117]

MD5 valid.
suhosin-0.9.32.1/
suhosin-0.9.32.1/aes.c
suhosin-0.9.32.1/Changelog
suhosin-0.9.32.1/compat_snprintf.c
suhosin-0.9.32.1/config.m4
suhosin-0.9.32.1/config.w32
suhosin-0.9.32.1/CREDITS
suhosin-0.9.32.1/crypt.c
suhosin-0.9.32.1/crypt_blowfish.c
suhosin-0.9.32.1/crypt_md5.c
suhosin-0.9.32.1/crypt_md5.h
suhosin-0.9.32.1/crypt_win32.c
suhosin-0.9.32.1/crypt_win32.h
suhosin-0.9.32.1/ex_imp.c
suhosin-0.9.32.1/execute.c
suhosin-0.9.32.1/header.c
suhosin-0.9.32.1/ifilter.c
suhosin-0.9.32.1/log.c
suhosin-0.9.32.1/mbregex/
suhosin-0.9.32.1/mbregex.h
suhosin-0.9.32.1/memory_limit.c
suhosin-0.9.32.1/php_suhosin.h
suhosin-0.9.32.1/post_handler.c
suhosin-0.9.32.1/rfc1867.c
suhosin-0.9.32.1/session.c
suhosin-0.9.32.1/sha256.c
suhosin-0.9.32.1/sha256.h
suhosin-0.9.32.1/suhosin.c
suhosin-0.9.32.1/suhosin.ini
suhosin-0.9.32.1/suhosin_logo.h
suhosin-0.9.32.1/suhosin_rfc1867.h
suhosin-0.9.32.1/tests/
suhosin-0.9.32.1/treat_data.c
suhosin-0.9.32.1/ufilter.c
suhosin-0.9.32.1/tests/empty.inc
suhosin-0.9.32.1/tests/executor/
suhosin-0.9.32.1/tests/filter/
suhosin-0.9.32.1/tests/funcs/
suhosin-0.9.32.1/tests/include/
suhosin-0.9.32.1/tests/skipif.inc
suhosin-0.9.32.1/tests/skipifcli.inc
suhosin-0.9.32.1/tests/skipifnotcli.inc
suhosin-0.9.32.1/tests/include/include_constant.phpt
suhosin-0.9.32.1/tests/include/include_etc_passwd.phpt
suhosin-0.9.32.1/tests/include/include_once_constant.phpt
suhosin-0.9.32.1/tests/include/include_once_tmpvar.phpt
suhosin-0.9.32.1/tests/include/include_once_var.phpt
suhosin-0.9.32.1/tests/include/include_tmpvar.phpt
suhosin-0.9.32.1/tests/include/include_var.phpt
suhosin-0.9.32.1/tests/include/require_constant.phpt
suhosin-0.9.32.1/tests/include/require_once_constant.phpt
suhosin-0.9.32.1/tests/include/require_once_tmpvar.phpt
suhosin-0.9.32.1/tests/include/require_once_var.phpt
suhosin-0.9.32.1/tests/include/require_tmpvar.phpt
suhosin-0.9.32.1/tests/include/require_var.phpt
suhosin-0.9.32.1/tests/funcs/crypt_blowfish.phpt
suhosin-0.9.32.1/tests/funcs/crypt_ext_des.phpt
suhosin-0.9.32.1/tests/funcs/crypt_md5.phpt
suhosin-0.9.32.1/tests/funcs/crypt_std_des.phpt
suhosin-0.9.32.1/tests/funcs/sha256.phpt
suhosin-0.9.32.1/tests/filter/get_globals.phpt
suhosin-0.9.32.1/tests/executor/disable_emod_off.phpt
suhosin-0.9.32.1/tests/executor/disable_emod_on.phpt
suhosin-0.9.32.1/tests/executor/disable_eval_off.phpt
suhosin-0.9.32.1/tests/executor/disable_eval_on.phpt
suhosin-0.9.32.1/tests/executor/memory_limit.phpt
suhosin-0.9.32.1/tests/executor/memory_limit_other_hardlimit.phpt
suhosin-0.9.32.1/tests/executor/negative_memory_limit.phpt
suhosin-0.9.32.1/tests/executor/preg_replace.phpt
suhosin-0.9.32.1/tests/executor/preg_replace_error.phpt
suhosin-0.9.32.1/tests/executor/recursion_maxdepth.phpt
suhosin-0.9.32.1/mbregex/COPYING.LIB
suhosin-0.9.32.1/mbregex/mbregex.h
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

./update.script: line 1356: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.




Suhosin 0.9.32.1 install/update Done

this is what a get when i install it again
 
So the install fail cause you have no autoconf...

If you are using centos run

Code:
yum install autoconf

and try rebuild suhosing again.

Regards
 
Code:
server1 updatescript]# grep extension /usr/local/lib/php.ini
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
; leading '/'. You must also specify the file extension being used including
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"
; If you wish to have an extension loaded automatically, use the following
;   extension=modulename.extension
;   extension=msql.dll
;   extension=msql.so
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_fdf.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
; Sets the directory name where SOAP extension will put cache files.
extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so"

Did yum install autoconf and suhosing did install fine but i still get this error

Code:
php -v
PHP Warning:  PHP Startup: Unable to load dynamic library './/usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so' - .//usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.17 (cli) (built: Nov 29 2011 12:50:39) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

I did google it and they where talking on some forum about comment out some line

If you have an empty "extension =" line, then it will produce these errors. Comment out that line, then see if the errors cease occurring.
 
Use the command ive already gave you to find out where suhosin has been installed.

If installation went fine you are using a wrong path.
 
Thank you so much SeLLeRoNe i did and it is working fine thank you very much for the help friend
 
Can somebody explain what this does?

./update.script CLAMAV = install Clamav to be used with Exim
./update.script MODCLAMAV = install Clamav to be used with Proftpd? Only ProFTPD or also Pureftpd or also other things?
./update.script PHPCLAMAV = ??? What does this do?

Any software requirements for using phpclamav?
 
Problem with mod_security2

After i run these commands:



I've added those line in httpd-includes.conf



And restart httpd, i get this error:



Please help me :(
Thanks in advance

same problem here i get :

[root@server ~]# /sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Tue Apr 24 23:04:36.652692 2012] [so:warn] [pid 16869] AH01574: module php5_module is already loaded, skipping
httpd: Syntax error on line 133 of /etc/httpd/conf/httpd.conf: Syntax error on line 10 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 337
of /etc/modsecurity2/modsecurity-rules-selected-by-web4host.net.conf: No matches for the wildcard '*.conf' in '/etc/modsecurity2/activated_rules', failing (
use IncludeOptional if required)
 
Is this update script really needed? A must have to do ?

I have CentOS 5.8 Final
Apache 2.2.22
With DirectAdmin
 
I'm getting these messages in my /var/log/exim/panic.log

malware acl condition: clamd: unable to send file body to socket (127.0.0.1:3310)
I've updated clamav via ./update.script CLAMAV but that did not help.

Is there a way to fix this? If possible without rebooting the server?

By the way... what is the difference between the clamav in update.script and if you use the one in options.conf of custombuild 1.2?
 
Back
Top