[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
**** PROFTPD

hi!

i have this error if upgrade v.1.3.1 to 1.3.2 (old server)

"Starting proftpd: - Fatal: unknown configuration directive 'DisplayFirstChdir' on line 40 of '/etc/proftpd.conf"

All new servers it's ok!!

Thanks!!

comment this line out.
 
Weird custombuild + script.update error: accept.lock

Concerning: /var/log/httpd/error_log

1) If I activate this line:
LoadModule security2_module /usr/lib/apache/mod_security2.so

I will get the following error and httpd can not be started:
[Wed Jun 17 11:05:26 2009] [emerg] (28)No space left on device: Couldn't create accept lock (/var/logs/accept.lock.6543) (5)

2) I am always getting the following error:
shmem.c:35: cannot create shared memory /var/tmp/clamav.shm: statistics will not be available


This only happened after I used custombuild to install zend.
(./build zend & ./build rewrite_confs)
During installation of zend, I selected /usr/.../apachectl1 (the default values always).

After installation the server would not start and I reinstalled all your mods via ./script.update (both mod_clamav & mod_security for apache 2)

What did I do wrong in the process and how to recover?

Thank you in advance!
 
Hi,

I'm thinking about installing ClamAV and mod_clamav troug the tool.
But its not yet clear to me what will be scanned and what not....
*Will the server its mail be scanned?
*Files on the server? What files and when?
*Als all the HTML output and images that websites are using?
*what about the CPU use and I/O use?

Does anyone have any experience with it who likes to share with me? What I can find on the moment of information is +1year old, or just not that what I want to know ;-)

Regards,
 
Concerning: /var/log/httpd/error_log

1) If I activate this line:
LoadModule security2_module /usr/lib/apache/mod_security2.so

I will get the following error and httpd can not be started:
[Wed Jun 17 11:05:26 2009] [emerg] (28)No space left on device: Couldn't create accept lock (/var/logs/accept.lock.6543) (5)

2) I am always getting the following error:
shmem.c:35: cannot create shared memory /var/tmp/clamav.shm: statistics will not be available


This only happened after I used custombuild to install zend.
(./build zend & ./build rewrite_confs)
During installation of zend, I selected /usr/.../apachectl1 (the default values always).

After installation the server would not start and I reinstalled all your mods via ./script.update (both mod_clamav & mod_security for apache 2)

What did I do wrong in the process and how to recover?

Thank you in advance!


don't install Mod_ClamAV , it doesn't work , install it from :
Code:
http://www.directadmin.com/forum/showthread.php?t=30855

and for zend :
go to http://www.zend.com/en/products/guard/downloads and select your OS version & download it , then by wget download it to your server & run installer , it's so easy , Say Ok to All Questions at last you installed ZEND ,

and for memory error :

Code:
cp -a /tmp /tmp_backup
mount -t tmpfs tmpfs /tmp
cp -a /tmp_backup/* /tmp/
rm -rf /tmp_backup/
rm -rf /var/tmp
ln -s /tmp /var/tmp
nano /etc/fstab

and add these lines :
Code:
tmpfs /dev/shm tmpfs defaults,nosuid,noexec 0 0
tmpfs /tmp tmpfs defaults,nosuid,noexec 0 0
and Save it & Exit , then type mount -oremount /tmp and just press enter

after this remove Update.SCript and download it again to your server & start installing Mod_security ,


it's my Yahoo ID : irtabligh.2800
i can help you if you got problem !!!
 
If I get a message from Nobody check it says that the version is outdated:

Nobody Check 1.0.3 Old Version Please Update on DirectAdmin

DirectAdmin version is 1.3.3.7. Problem or not?
 
can you update it for php 5.2.10 ?
for example eAccelerator need update for this version of php. its for 5.2.9 now
 
i installed Mod_security 2 , but i want know whereIs Mod_Security Logs ? to know which Scripts blocked by Mod_security and why blocked , by which Line of rules ,

note : now i'm using LiteSpeed Enterprise
 
I tried to install ClamAV using the script. I am getting the following error. Any ideas? This was from a fresh install

Code:
./update.script: line 861: ldconfig: command not found
/usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
/usr/local/bin/freshclam: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
clamd: no process killed
freshclam: no process killed
/usr/local/bin/freshclam: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
/usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
./update.script: line 870: ldconfig: command not found
ClamAV auto start when server reboot
clamd: no process killed
freshclam: no process killed
/usr/local/bin/freshclam: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
/usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory
 
I have a problem with MODsecurity 2.5.x Rules. I saw log and found

Code:
[Mon Aug 17 09:09:52 2009] [error] [client 125.24.13.209] ModSecurity: Access denied with code 500 (phase 4). Pattern match "<b>Warning<\\/b>.{0,100}?:.{0,1000}?\\bon line\\b" at RESPONSE_BODY. [file "/etc/modsecurity2/modsecurity-rules-selected-by-web4host.net.conf"] [line "660"] [id "970009"] [msg "PHP Information Leakage"] [severity "WARNING"] [tag "LEAKAGE/ERRORS"] [hostname "www.xxxxxxxxx.com"] [uri "/administrator/index.php"] [unique_id "5V-bScuSfzYAAD5lhUkAAAAA"]

I fixed above problem by close some rules, I would like to say thank you for very useful tool I can install and setup many server production softwares with this tool.

Thank you X times
 
Last edited:
Hello,

I have a comment with update some softwares such as eAccelerator. be careful with this line.

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"

You need to recheck version and dir name after install it'll different from above line.

Thank you.
 
I've upgraded openssl to 0.9.8k but after recompiling apache and php, apache wont start:

/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: SSL_CTX_sess_set_new_cb
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: SSL_CTX_sess_set_new_cb
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: SSL_CTX_sess_set_new_cb
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: SSL_CTX_sess_set_new_cb


#openssl version:
OpenSSL 0.9.8k 25 Mar 2009 (Library: OpenSSL 0.9.8c 05 Sep 2006)

Yesterday I've done same operations without problems.

Anyone can help me? I've just tried to reinstall openssl by debian repository....
 
php.ini:

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

phpinfo:
eAccelerator
eAccelerator support enabled
Version 0.9.6-rc1
Caching Enabled false

Directive Local Value Master Value

Why disabled eaccelerator ?

my php version 5.2.10
 
error with install Suhosin

13:11:34 (916.22 KB/s) - `suhosin-0.9.27.tgz' saved [115936/115936]

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors
./update.script: line 1203: cd: suhosin-0.9.27: No such file or directory
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

./update.script: line 1203: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
 
hello.
today i want to install modevasive with this script.
befor this time i install it with source and so add this line on httpd.conf:

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 50
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 300
</IfModule>

but in this script we must creat new file :
/etc/httpd/conf/extra/httpd-includes.conf

adn then add this line en this new file:

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSWhitelist 127.0.0.1
DOSEmailNotify [email protected]
</IfModule>

whats differente betwet them?

tnx
 
hello.
today i want to install modevasive with this script.
befor this time i install it with source and so add this line on httpd.conf:

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 50
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 300
</IfModule>

but in this script we must creat new file :
/etc/httpd/conf/extra/httpd-includes.conf

adn then add this line en this new file:

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSWhitelist 127.0.0.1
DOSEmailNotify [email protected]
</IfModule>

whats differente betwet them?

tnx

I dont no what is the different, but when you install apache (1.3, 2.0 or 2.2) with custumbuild you get the extra directory "Extra", its a lot easer to work with these extra files in it.
 
so you mean i do what he say on that post ?
creat that file and paste that command on it? instead of what i say ?
 
so you mean i do what he say on that post ?
creat that file and paste that command on it? instead of what i say ?

Yes Dear nima , do it ! it's better other files lite this, Load from extra mirror and if your script ( mod evasive or other ) have a problem , there is nothing reason to hurt your httpd ! , do it' , it's safe and i did it many many more time

Just Paste the commands to ssh and trust it
 
how to slove this problem?

checking OpenSSL header version... 9080bf (OpenSSL 0.9.8k 25 Mar 2009)
checking OpenSSL library version... 90802f (OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008)
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.2p1 done
 
Back
Top