|
||||||||||
|
|
How to install CSF Firewall on virtuozzo – Cannot enter into server after CSF installation VPSMarch 14, 2010 on 4:33 am | In Cpanel, Installation, Linux | No CommentsCSF is a powerful Firewall for Linux and cPanel servers are here are the steps to get it working with Virtuozzo VPS Installation
After the installation you will need to customize CSF to run on VPS: edit /etc/sysconfig/iptables and add
create file /etc/csf/csfpre.sh and enter all the extra rules directly into it prefixed with “iptables” so the contents of that file should look something like:
edit /etc/csf/csf.conf file and add
Restart
LOCKOUT ISSUES FOR CSF WHEN INSTALLED IN VPS. or Cannot enter into server after CSF installation on VPS If the required IP table modules are not properly loaded to the container node, you may lockout yourself after the installation. If you have access to the main Hardware node, you can perform the following to get it up or ask your VPS provider to perform this on the Hardware (main) node. Before enabling iptables on VPS, it needs to make sure that the iptables modules are enabled on the Hardware Node. In order to enable iptables modules on Hardware Node, edit /etc/sysconfig/iptables-config file on a Virtuozzo hardware node and look for the following parameter value: IPTABLES_MODULES=. Edit it as the following.
Also edit /etc/sysconfig/vz file on a hardware node and look for the following parameter value: IPTABLES= , change it to the following.
Now your Hardware node is fine. You need to enable the iptable modules to the VPS nodes.
Now try entering into your node and restart CSF. It should start working fine. Descriptions and Functions ====================== csf+lfd works on all Linux servers on the Operating Systems listed above, with or without cPanel This suite of scripts provides:
Install PHP-MemCache Module On CentOS 5.0 + RHELJanuary 17, 2009 on 3:27 pm | In Apache, Installation, PHP | No CommentsDownload wget http://pecl.php.net/get/memcache-2.1.2.tgz phpize && This should create memcache.so in your extenstion directory (/usr/lib/php/modules) If it is not done copy the file memcache.so to the default module directory. php -i| grep php.ini add the line ——————— Restart Apache /etc/rc.d/init.d/httpd restart check the module is working should show something like ============= Also, you can find it in your phpinfo page. /usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux serversOctober 19, 2008 on 8:20 pm | In Apache, Centos, Cpanel, Installation, Linux | No CommentsIn some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK So we present here the installation of Java in Linux server. Its as easy as you run upcp in a Cpanel server. Download the installation binary from Sun’s Java site J2SE for Linux http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK) You may need to register at the site and then they will send you the download link. Download the non-rpm binary cd /usr/local/src/ wget thebinary mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/ cd /usr/local/ chmod 755 j2sdk-1_4_2_18-linux-i586.bin ./j2sdk-1_4_2_18-linux-i586.bin Now setup the environment variables. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME Also, you need to add these in the file /etc/profile. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME Ioncube InstallationOctober 19, 2008 on 7:59 pm | In Cpanel, Installation, PHP | No CommentsIoncube is easy to install without recompiling PHP. Specifically in cpanel servers you can install Ioncube without recompiling PHP. These steps can be used to install in any Linux servers.. Check the architecture. uname -i cat /etc/redhat-release Download the source from the link http://downloads2.ioncube.com/loader_downloads/ For i316 architecture linux server select ioncube_loaders_lin_x86.tar.gz 2. Installation cd /usr/local/src/ wget http://downloads2.ioncube.com/loader_downloads/<source>.tar.gz tar zxvff <source>.tar.gz mv ioncube /usr/local Locate you php.ini file using the command php -i | grep php.ini open up the php.ini file using any editors, find the “zend_extension” and add the line zend_extension=/usr/local/ioncube/ioncube_loader_lin_x.x.so Don’t forget to replace x.x with the php verision. For example you have php version 5.2.6, replace the x.x with 5.2. Restart Apache /etc/rc.d/init.d/httpd restart Test it php -v It should show Ioncube. How to install Python in linux serverApril 29, 2008 on 2:38 pm | In Installation, Python | No CommentsEasy….. cd /usr/local/src How to install Mod_Python in Linux serverApril 29, 2008 on 2:35 pm | In Installation, Python | 2 CommentsBoth instruction for Apache 1.x and Apache 2.x are given below. First, you need to check what version of Python you are running. python -V If you are running Apache 1.3.x, you should use mod_python version 2.7.11 and for Apache 2.2.x, use 3.3.1. Python with version 2.1.x greater than are only supported The step are for Apache 1.3.x. However, for Apache 2.1.x download mod_python 3.3.1 and follow the same steps cd /usr/local/src ./configure –with-apxs=/usr/local/apache/bin/apxs –with-python=/usr/local/bin/python The –with-python path should reflect the location of the python binary If you are on Apache 1.3, follow the steps below. If not, go for make and make install. vi src/Makefile Then add -lutil to the LIBS line like so: Run the make and make install. This should be done. for both Apache versions. Edit httpd.conf and create your handlers. Apache 1.3.x Apache 2.1.x How to install docutils in Linux serverApril 29, 2008 on 1:50 pm | In Installation, Python | No CommentsDownload manually the docutils tar gz from http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?download cd /usr/local/src/ sudo easy_install /pathto/docutils-0.4.tar.gz How to install Python Imaging Library PIL on Linux serverApril 29, 2008 on 1:47 pm | In Installation, Python | No CommentsPython Imaging Library (PIL) Make sure Python is installed. Prerequisites. If you need any of the features described below, make sure you feature library http://www.ijg.org http://www.ijg.org/files/jpegsrc.v6b.tar.gz ftp://ftp.uu.net/graphics/jpeg/ PNG support zlib (1.1.4 or later is recommended) http://www.gzip.org/zlib/ OpenType/TrueType freetype2 (2.1.3 or later is recommended) http://www.freetype.org http://freetype.sourceforge.net Installation Make sure Python is installed. Then go for wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz python setup.py install Thant’s all jmorecfg.hApril 26, 2008 on 3:06 pm | In Installation, PHP | No CommentsIf this header file is not found when you give make for gd installation download it =================== mv jmorecfg.h /usr/lib/ =================== jpeglib.hApril 26, 2008 on 3:04 pm | In Installation, PHP | No CommentsIf this header file is not found when you give make for gd installation download it =================== mv jpeglib.h?rev=1.2 /usr/lib/ =================== |
![]() Powered and designed by Presoon.com. |