[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
hello
on
MODsecurity 2.x


[root@server updatescript]# vi /etc/httpd/conf/extra/httpd-includes.conf
[root@server updatescript]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 167 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-includes.conf: Cannot load /usr/lib/libxml2.so into server: /usr/lib/libxml2.so: cannot open shared object file: No such file or directory

libxml2.so.2 or libxml2.so same

Wael
 
tnx and where is modsecurety log file?
to see which ip for what reason ban?
and how can i delete that ip

tnx
 
hello. today i try to install eAccelerator. so run ./update.script EACCELERATOR and then it ask me cli or cgi. becasue we run suphp so select ./update.script EACCELERATOR2 but iys my output:


[root@serv updatescript]# ./update.script EACCELERATOR



##################################################################
#
# If you use PHP CGI run
# ./update.script EACCELERATOR2
# If you use PHP CLI run
# ./update.script EACCELERATOR1
#
##################################################################


[root@serv updatescript]#
[root@serv updatescript]# ./update.script EACCELERATOR2

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

--2010-11-21 22:04:32-- http://els.web4host.net/eaccelerator/eaccelerator-0.9.6.1.tar.bz2
Resolving els.web4host.net... 173.212.207.52
Connecting to els.web4host.net|173.212.207.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 106049 (104K) [application/x-bzip2]
Saving to: `eaccelerator-0.9.6.1.tar.bz2'

100%[======================================>] 106,049 372K/s in 0.3s

2010-11-21 22:04:33 (372 KB/s) - `eaccelerator-0.9.6.1.tar.bz2' saved [106049/106049]

MD5 valid.
eaccelerator-0.9.6.1/
eaccelerator-0.9.6.1/COPYING
eaccelerator-0.9.6.1/mm.h
eaccelerator-0.9.6.1/control.php
eaccelerator-0.9.6.1/AUTHORS
eaccelerator-0.9.6.1/doc/
eaccelerator-0.9.6.1/doc/php/
eaccelerator-0.9.6.1/doc/php/dasm.php
eaccelerator-0.9.6.1/doc/php/info.php
eaccelerator-0.9.6.1/doc/phpdoc.ini
eaccelerator-0.9.6.1/eaccelerator.c
eaccelerator-0.9.6.1/config.w32
eaccelerator-0.9.6.1/opcodes.c
eaccelerator-0.9.6.1/dasm.php
eaccelerator-0.9.6.1/eaccelerator.h
eaccelerator-0.9.6.1/ea_dasm.c
eaccelerator-0.9.6.1/NEWS
eaccelerator-0.9.6.1/mm.c
eaccelerator-0.9.6.1/ea_store.c
eaccelerator-0.9.6.1/eaccelerator.ini
eaccelerator-0.9.6.1/config.m4
eaccelerator-0.9.6.1/ea_restore.c
eaccelerator-0.9.6.1/debug.h
eaccelerator-0.9.6.1/bugreport.php
eaccelerator-0.9.6.1/ea_dasm.h
eaccelerator-0.9.6.1/README.win32
eaccelerator-0.9.6.1/opcodes.h
eaccelerator-0.9.6.1/ea_store.h
eaccelerator-0.9.6.1/ChangeLog
eaccelerator-0.9.6.1/fnmatch.h
eaccelerator-0.9.6.1/eaccelerator_version.h
eaccelerator-0.9.6.1/fnmatch.c
eaccelerator-0.9.6.1/Makefile.in
eaccelerator-0.9.6.1/ea_info.h
eaccelerator-0.9.6.1/.gitignore
eaccelerator-0.9.6.1/optimize.c
eaccelerator-0.9.6.1/debug.c
eaccelerator-0.9.6.1/PHP_Highlight.php
eaccelerator-0.9.6.1/ea_info.c
eaccelerator-0.9.6.1/win32/
eaccelerator-0.9.6.1/win32/eAccelerator.sln
eaccelerator-0.9.6.1/win32/eAccelerator.dsp
eaccelerator-0.9.6.1/win32/eAccelerator.vcproj
eaccelerator-0.9.6.1/win32/eAccelerator.dsw
eaccelerator-0.9.6.1/README
eaccelerator-0.9.6.1/ea_restore.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 1180: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
eAccelerator install/update done
 
Wael,

I've never used your script because I've always used custombuild, and I've been concerned about any overlap.

I suppose I could do the research myself, but perhaps you know the answers and can spend a moment helping me understand this...

Can I run the update script and custombuild interchangeably without concern?

Thanks.

Jeff
 
Dear Jeff, you can use update script and custombuild without any problem,
update script did not touch custombuild folder and build script,
update script only work inside /usr/local/updatescript

Wael
 
Thanks, Wael, but that's not exactly what I meant. I'm sorry if I'm not clear enough.

I meant if I update using your script will customapache now have incorrect information?

And if so, will it matter?

How do you update with customapache after you've used your update script? Which commands do you run to make sure everything is updated properly?

Thanks.

Jeff
 
Just some little questions. When installing only Clamav (and/or Clamav, I do "./update.script CLAMAV" and after that make the Exim changes you defined in the first thread and restart Exim.

When finished, I wonder the following:

1.) Do virus definitions get updated automatically?

2.) If yes, is it done each day and how is it done? By cronjob or something?

3.) Do I have to redo the ./update.script CLAMAV (or mod_clamav) after Exim or Proftpd is upgraded?

4.) What is the difference between using the custombuild ./build update_versions to update for example PROFTPD and ./update.script PROFTP? Will this work the same way and will custombuild "see" that proftpd is updated? There seems to be an overlap here.

5.) Suppose I want to uninstall CLAMAV, is there a update.script uninstall function or something like that? Or when using the exim update, and want to restore the older exim which comes with custombuild, how do I do that?

6.) Which is the difference between the spamasssin in the script and the spam.sh script from DA which installs spamassassin too?

7.) Or maybe there is a page/site/faq which explains all these kind of questions?

Seems a very interesting script, but that's also why I wonder about these things.
 
Thanks, Wael, but that's not exactly what I meant. I'm sorry if I'm not clear enough.

I meant if I update using your script will customapache now have incorrect information?

And if so, will it matter?

How do you update with customapache after you've used your update script? Which commands do you run to make sure everything is updated properly?

Thanks.

Jeff
update script work fine with customapache and custombuild, the different between customapache and custombuild only php configure file and apache configure file.

Wael
 
1.) Do virus definitions get updated automatically?
Yes every 6hr.

2.) If yes, is it done each day and how is it done? By cronjob or something?
update.script will add this
/usr/local/bin/freshclam -d -c 6
to start update every 6hr, so no need to update clamav using ssh.

3.) Do I have to redo the ./update.script CLAMAV (or mod_clamav) after Exim or Proftpd is upgraded?
no, no need.

4.) What is the difference between using the custombuild ./build update_versions to update for example PROFTPD and ./update.script PROFTP? Will this work the same way and will custombuild "see" that proftpd is updated? There seems to be an overlap here.
update script will install proftpd with modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_delay.c
mod_facts.c
mod_ident.c
mod_ratio.c
mod_readme.c
mod_wrap.c
mod_wrap2.c
mod_wrap2_file.c
mod_clamav.c
mod_cap.c
more modules then custombuild.

5.) Suppose I want to uninstall CLAMAV, is there a update.script uninstall function or something like that? Or when using the exim update, and want to restore the older exim which comes with custombuild, how do I do that?
kill clamav and freshclam, remove clamav mod from exim.conf, go to custombuild then run ./build for more help.

6.) Which is the difference between the spamasssin in the script and the spam.sh script from DA which installs spamassassin too?
the same i think.

7.) Or maybe there is a page/site/faq which explains all these kind of questions?
use this topic and my forum
http://www.web4host.net/forum/viewtopic.php?f=2&t=1

Wael
 
Thanks for answering the questions, however I missed an added question on 4.
will custombuild "see" that proftpd is updated? (when using update.script)

Then another one on 5.
go to custombuild then run ./build for more help.
How can the custombuilds ./build function help me removing something (Clamav in this case) which is not installed by the ./build of custombuild?
 
Thanks for answering the questions, however I missed an added question on 4.


Then another one on 5.

How can the custombuilds ./build function help me removing something (Clamav in this case) which is not installed by the ./build of custombuild?

custombuild will see proftpd.tar.gz file not proftpd ver and there is no clamav in custombuild.

Wael
 
Sorry, but I think we have a slight communication or interpretation error here. Could be on my behalve, I'm not sure.

I asked you how I could uninstall Clamav. You answered:
kill clamav and freshclam, remove clamav mod from exim.conf, go to custombuild then run ./build for more help.
I understand the part about killing and removing from exim.conf, but I don't understand the part about going to custombuild and running ./build for more help, since clamav is not installed with custombuild.
So why you answered that I should run to the custombuild ./build for more help on removing clamav?
 
Sorry, but I think we have a slight communication or interpretation error here. Could be on my behalve, I'm not sure.

I asked you how I could uninstall Clamav. You answered:

I understand the part about killing and removing from exim.conf, but I don't understand the part about going to custombuild and running ./build for more help, since clamav is not installed with custombuild.
So why you answered that I should run to the custombuild ./build for more help on removing clamav?

uninstall Clamav :
download clamav then ./configure then make uninstall

Wael
 
custombuild will see proftpd.tar.gz file not proftpd ver and there is no clamav in custombuild.

Wael

i think custombuild dont check the file cause ive tryed to delete the .tar.gz file and tryed build versions and he recognize the installed version so i think he check every application via command line

for roundcube and phpmyadmin prolly he does ls -l /var/www/html/
and check the directory name of that kind of component

for example i use to rename phpmyadmin-* in phpmyadmin and build versions give me this:

phpMyAdmin xr-x 11 webapps webapps 4096 25 mar 2010 /var/www/html/phpMyAdmin to 3.3.8.1-all-languages update is available.


so custombuild cut the version from ls -l command

cya
 
Back
Top