Rebuild apache rpm on Centos4
Download src rpm
http://ftp.riken.jp/Linux/centos/4.7/centosplus/SRPMS/
httpd-2.0.63-2.el4s1.centos.2.src.rpm
Download src rpm
http://ftp.riken.jp/Linux/centos/4.7/centosplus/SRPMS/
httpd-2.0.63-2.el4s1.centos.2.src.rpm
1, add “ftp” use flag to /etc/make.conf
List all installed packages on gentoo you might use gentoolkit.
Additional reference : http://www.gentoo.org/doc/en/gentoolkit.xml
Install apache2 with php, mysql and ssl
1, Modify /etc/make.conf
add those use flag : apache2 ssl pam xml xml2 pcre session unicode php mysql innodb berkdb
1, Setup vmware to suspend or shutdown from Edit virtual machine startup/shutdown settings
2. add “/etc/init.d/vmware stop” into /etc/conf.d/local.stop
Refrence : http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo
Normally in Gentoo you would want to create an init script via rc-update to start a service at boot. However if there are a few miscellaneous commands you would like to run you can add them to local.start.
The local.start init script is similar to rc.local in other distributions. It is the last init script to be run after all other services have been started at the end of the boot process.
Add your commands to local.start file located here.
/etc/conf.d/local.startYou can also make commands run when the system is shutdown. These commands should be placed in local.stop located here.
/etc/conf.d/local.stop
When Vmware server2 console not popup with those error
try
to check?
if no prob
or
change symbolic link
Eg., /usr/src/linux -> linux-2.6.26-gentoo-r4/ must point latest kernel source
make config for kernel
Eg., copy old .config to new kernel and run
compile kernel, set grub
if using nvidia for graphic must re-compile nvidia modules else X not startup.
Eg., run “module-rebuild rebuild”. Need sys-kernel/module-rebuild or
Blocked Packages
Code Listing 4.1: Portage warning about blocked packages (with –pretend)
[blocks B ] mail-mta/ssmtp (is blocking mail-mta/postfix-2.2.2-r1)Code Listing 4.2: Portage warning about blocked packages (without –pretend)
!!! Error: the mail-mta/postfix package conflicts with another package.
!!! both can’t be installed on the same system together.
!!! Please use ‘emerge –pretend’ to determine blockers.Ebuilds contain specific fields that inform Portage about its dependencies. There are two possible dependencies: build dependencies, declared in DEPEND and run-time dependencies, declared in RDEPEND. When one of these dependencies explicitly marks a package or virtual as being not compatible, it triggers a blockage.
To fix a blockage, you can choose to not install the package or unmerge the conflicting package first. In the given example, you can opt not to install postfix or to remove ssmtp first.
.htaccess can redirect http request.
This is one of example how to show maintenance page.
To use this, you must install mod_rewrite.
Visitors – fast web log analyzer
http://www.hping.org/visitors/
How To install
wget http://www.hping.org/visitors/visitors-0.7.tar.gz
tar xvzf visitors-0.7.tar.gz
cd visitors_0.7
make
cp visitors /usr/bin/
Usege
like: visitors -A -m 30 access.log -o html > report.htm
like: visitors -A -m 30 access.log -o html –trails –prefix http://howto.net > report.html
make flowchart with Graphviz
http://www.graphviz.org/Download..php
How To install
wget http://dag.wieers.com/rpm/packages/graphviz/graphviz-2.2-1.2.el4.rf.i386.rpm
rpm -ivh graphviz-2.2-1.2.el4.rf.i386.rpm
Usege
1, make graph.dot
visitors access.log –prefix http://sample.net -V > graph.dot
2, make PNG image
dot -Tpng graph.dot > graph.png
for better use
visitors -GKZWMRDXYS -m 30 access_log –trails –prefix http://sample.net -o html > `date –date ‘1 day ago’ +%Y%m%d`report.html
visitors access_log –prefix http://gigazine.net -V > graph.dot
dot -Tpng graph.dot > `date –date ‘1 day ago’ +%Y%m%d`graph.png