Demiurgo
13/12/2011, 12:40
Al parecer ya dan soporte oficial a KLOXO 64 bits para centos 5 y pronto también para centos 6
Transaction Check Error: file /etc/my.cnf from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/charsets/Index.xml from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/charsets/cp1250.xml from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/charsets/cp1251.xml from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/english/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/french/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/german/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64 file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.0.77-4.el5_6.6.i386 conflicts with file from package mysql-libs-5.5.9-1.x86_64
service mysql restart
service mysqld restart
Codificación idioma apache
- Por defecto la codificación de idioma de apache es utf-8 (creo)
Para cambiarla en determinados dominios se puede hacer creando un archivo .htaccess :
Código:
Código:AddDefaultCharset IS0-8859-1
[Tue Nov 16 14:54:43 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Nov 16 14:54:43 2010] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!? [Tue Nov 16 14:54:43 2010] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!? [Tue Nov 16 14:54:43 2010] [warn] Init: SSL server IP/port conflict: srv3.racamet.eu:443 (/etc/httpd/conf/kloxo/ssl.conf:3) vs. WEB:443 (/home/httpd/WEB/conf/kloxo.WEB:71) [Tue Nov 16 14:54:43 2010] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Tue Nov 16 14:54:43 2010] [notice] Digest: generating secret for digest authentication ... [Tue Nov 16 14:54:43 2010] [notice] Digest: done [Tue Nov 16 14:54:43 2010] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!? [Tue Nov 16 14:54:43 2010] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!? [Tue Nov 16 14:54:43 2010] [warn] Init: SSL server IP/port conflict: srv3.racamet.eu:443 (/etc/httpd/conf/kloxo/ssl.conf:3) vs. WEB:443 (/home/httpd/WEB/conf/kloxo.WEB:71) [Tue Nov 16 14:54:43 2010] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Tue Nov 16 14:54:43 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
AddDefaultCharset IS0-8859-1
213.186.33.13 213.186.50.100 213.186.50.98 213.186.45.4 213.251.184.9
IpTuServidor.250 IpTuServidor.251
cd /usr/src wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz tar -zxf mod_evasive_*.tar.gz cd mod_evasive
apxs -cia mod_evasive20.c
yum install httpd-devel
vi /etc/httpd/conf/httpd.conf
DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 3600 DOSEmailNotify tuemaildenotificación@loquesea
DOSHashTableSize 3097 DOSPageCount 1 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSHashTableSize 3097 DOSPageCount 5 DOSSiteCount 100 DOSPageInterval 2 DOSSiteInterval 2
vi /etc/httpd/conf/httpd.conf :/ServerSignature ServerSignature Off :/Tokens ServerTokens ProductOnly
service httpd restart
vi /etc/php.ini :/expose_php expose_php = Off
vi /var/named/chroot/etc/named.conf
options { version "CHISPUM"; allow-recursion { 127.0.0.1; TUDNS1_CAMBIALO_POR_SUIP TUDNS2_CAMBIALO_POR_SUIP }; };
service named restart
locate proftpd.conf
vi rutahastadelarchivo
ServerIdent On "Servidor de FTP"
vi /root/.ssh/authorized_keys2
ssh-keygen -t rsa
cd /tmp wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf sh install.sh
vi /etc/csf/csf.conf
nmap fuser localhost
vi /etc/my.cnf
local-infile=0
service mysqld restart
service atd stop chkconfig atd off
service anacron stop chkconfig anacron off
vi /etc/ssh/sshd_config :/UseDNS ( desmarcar ) UseDNS no
rm -rf /var/tmp ln -s /tmp /var/tmp
cp /etc/fstab /etc/fstab.bak
vi /etc/fstab
mount -o remount /tmp mount -o remount /dev/shm
Step 1: Securing /tmp
Step 1.1: Backup your fstab file
cp /etc/fstab /etc/fstab.bak
Step 1.2: Creating tmpmnt partition file (Around 1Gb in size)
cd /var
dd if=/dev/zero of=tmpMnt bs=1024 count=1048576
Step 1.3: Format the new partition
mkfs.ext3 -j /var/tmpMnt
Press Y when asked
Step 1.4: Making backup of old /tmp
cp -Rp /tmp /tmp_backup
Step 1.5: Mount the tmp filesystem
mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp
Step 1.6: Set the right permissions
chmod 0777 /tmp
Step 1.7: Copy the files back to new tmp folder
cp -Rp /tmp_backup/* /tmp/
Step 1.8: Adding new /tmp filesystem to fstab
echo "/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0" >> /etc/fstab
Step 2: No need for 2 tmp filesystems, so we symlink /var/tmp to /tmp
rm -rf /var/tmp/
ln -s /tmp/ /var/tmp
vi /root/.ssh/authorized_keys2
vi /etc/ssh/sshd_config :/PubkeyAuthentication
PubkeyAuthentication yes PasswordAuthentication no
service sshd restart
mkdir /usr/local/webmin cd /usr/src wget http://www.webmin.com/download/webmin-current.tar.gz
tar -zxvf webmin-*.tar.gz
cd webmin-*/ ./setup.sh /usr/local/webmin
iptables -V
mkdir /usr/src/linux cd /usr/src/linux wget http://www.netfilter.org/projects/iptables/files/iptables-1.4.9.1.tar.bz2
tar xvfj iptables-*.tar.bz2 cd iptables-*/
./configure KERNEL_DIR=/usr/src/linux make KERNEL_DIR=/usr/src/linux
make install KERNEL_DIR=/usr/src/linux
cd /sbin mv iptables iptables.old mv iptables-restore iptables-restore.old mv iptables-save iptables-save.old
ln -s /usr/local/sbin/iptables iptables ln -s /usr/local/sbin/iptables-restore iptables-restore ln -s /usr/local/sbin/iptables-save iptables-save
php -v
rm -rf /var/cache/kloxo/kloxophp*/script/upcp
vi /etc/php.ini
:/extension_dir
extension_dir = /usr/lib/php/modules
extension_dir = /usr/lib64/php/modules
rm -rf /usr/lib/php/modules ln -s /usr/lib64/php/modules /usr/lib/php
cd /usr/lib/kloxophp/ rm -rf ioncube
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip unzip ioncube_loaders_lin_x86-64.zip rm -f ioncube_loaders_lin_x86-64.zip
cd /usr/lib/kloxophp/ wget http://downloads.zend.com/optimizer/3.2.8/ZendOptimizer-3.2.8-linux-glibc23-x86_64.tar.gz tar -zxvf ZendOptimizer-*.tar.gz cd ZendOptimizer-* ./install.sh
rm -rf /usr/lib/kloxophp/ZendOptimizer-3.2.8-linux-glibc23-x86_64* rm -rf /usr/lib/kloxophp/zend/
ln -s /usr/local/Zend /usr/lib/kloxophp/zend
service httpd restart php -v
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
yum -y update yum -y upgrade
setenforce 0 su - root cd /tmp wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh sh ./kloxo-install-master.sh
yum install subversion cd /usr/local/lxlabs/kloxo/httpdocs/lang svn checkout http://svn.lxcenter.org/svn/i8nl/trunk/kloxo/es