yum list installed | grep ftp
1083 yum install vsftpd
1084 chkconfig vsftpd on
1085 service vsftpd start
creat group
groupadd ftp-users
chown root:ftp-users /var/www/html/
adduser to ftp group
useradd -g ftp-users -d /var/www/html/ imran
create password for user.
passwd imran
how to change password of ftp user.
passwd imran
enter new password;
retype password:
how to restrict and lock ftp user when not needed
passwd -l username{ftp user}
how to unlock the ftp user when needed
passwd +l username {ftp user}
Wednesday, 30 May 2012
how to install ftp server vsftpd and configure on centos
Tuesday, 24 April 2012
how to install php53-mcrypt on centos
To install manually php53-mcrypt on your server follow the steps below,
when you are facing the issue of conflict then these steps will help you to resolve the issue.
when you are facing the issue of conflict then these steps will help you to resolve the issue.
First install some required packages:
yum install php53-devel libmcrypt-devel gcc gcc-c++
Then download the php 5.3.6 source code from php.net and unpack it:
wget http://mx2.php.net/get/php-5.3.6.tar.bz2/from/us3.php.net/mirror
tar xvjf php-5.3.6.tar.bz2
(Please note that the download link will change with every subsequent PHP release.)
Go to the directory with the mcrypt extension source code and compile:
cd php-5.3.6/ext/mcrypt/
phpize
aclocal
./configure
make
Then install:
make install
Create the configuration file for PHP /etc/php.d/mcrypt.ini containing:
extension=mcrypt.so
Restart apache:
/etc/init.d/httpd restart
Create a file with phpinfo just to check if the extension was loaded:
<?php
phpinfo();
?>
Wednesday, 4 April 2012
installing Mysql-server mysql Table 'mysql.servers' doesn't exist
This should solve the problem. Not sure how this problem started for me but I have used the below query and its eliminated the error.
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
Regards:
Imran
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
Regards:
Imran
Friday, 30 March 2012
How to install php-5.2.17 on CentOS-6.2 and configure Zend optimizer-3.3
To install php-5.2.17 on CentOS-6.2 and configure Zend optimizer.
Follow the procedure carefully.
ssh user@sever
password:
Cd /usr/src
wget http://
php-5.2.17-1.el6.art.x86_64.rpm
php-bcmath-5.2.17-1.el6.art.x86_64.rpm
php-cli-5.2.17-1.el6.art.x86_64.rpm
php-common-5.2.17-1.el6.art.x86_64.rpm
php-dba-5.2.17-1.el6.art.x86_64.rpm
php-devel-5.2.17-1.el6.art.x86_64.rpm
php-embedded-5.2.17-1.el6.art.x86_64.rpm
php-gd-5.2.17-1.el6.art.x86_64.rpm
php-imap-5.2.17-1.el6.art.x86_64.rpm
php-ldap-5.2.17-1.el6.art.x86_64.rpm
php-mbstring-5.2.17-1.el6.art.x86_64.rpm
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm
php-mhash-5.2.17-1.el6.art.x86_64.rpm
php-mssql-5.2.17-1.el6.art.x86_64.rpm
php-mysql-5.2.17-1.el6.art.x86_64.rpm
php-pdo-5.2.17-1.el6.art.x86_64.rpm
php-soap-5.2.17-1.el6.art.x86_64.rpm
................................................
rpm -ivh --nodeps php-5.2.17-1.el6.art.x86_64.rpm
php-bcmath-5.2.17-1.el6.art.x86_64.rpm
php-cli-5.2.17-1.el6.art.x86_64.rpm
php-common-5.2.17-1.el6.art.x86_64.rpm
php-dba-5.2.17-1.el6.art.x86_64.rpm
php-devel-5.2.17-1.el6.art.x86_64.rpm
php-embedded-5.2.17-1.el6.art.x86_64.rpm
php-gd-5.2.17-1.el6.art.x86_64.rpm
php-imap-5.2.17-1.el6.art.x86_64.rpm
php-ldap-5.2.17-1.el6.art.x86_64.rpm
php-mbstring-5.2.17-1.el6.art.x86_64.rpm
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm
php-mhash-5.2.17-1.el6.art.x86_64.rpm
php-mssql-5.2.17-1.el6.art.x86_64.rpm
php-mysql-5.2.17-1.el6.art.x86_64.rpm
php-pdo-5.2.17-1.el6.art.x86_64.rpm
php-soap-5.2.17-1.el6.art.x86_64.rpm
....................................................
/etc/init.d/httpd restart
stoping httpd ok
starting httpd ok
....................................................
cat /etc/yum.conf|grep php
exclude=php*
....................................................
Zendoptimizer
....................................................
wget http://www.zend.com/products/guard/downloads
zindoptimizer 3.3(php-2.5.x linux)
tar -zxvf zedoptimizer-3.3-tar.gz
1. Extract the Zend Optimizer package.
2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).
2. Add the following line to your php.ini file:
Linux and Mac OS X: zend_extension=
Windows: zend_extension_ts=
Windows non-thread safe: zend_extension=
(*) The Windows non-thread safe binary is only used with Zend Core 2.0.
3. Restart your Web server.
vim /etc/php.ini
zend_extension=
4.php -v
reboot the server.
enjoy
Follow the procedure carefully.
ssh user@sever
password:
Cd /usr/src
wget http://
php-5.2.17-1.el6.art.x86_64.rpm
php-bcmath-5.2.17-1.el6.art.x86_64.rpm
php-cli-5.2.17-1.el6.art.x86_64.rpm
php-common-5.2.17-1.el6.art.x86_64.rpm
php-dba-5.2.17-1.el6.art.x86_64.rpm
php-devel-5.2.17-1.el6.art.x86_64.rpm
php-embedded-5.2.17-1.el6.art.x86_64.rpm
php-gd-5.2.17-1.el6.art.x86_64.rpm
php-imap-5.2.17-1.el6.art.x86_64.rpm
php-ldap-5.2.17-1.el6.art.x86_64.rpm
php-mbstring-5.2.17-1.el6.art.x86_64.rpm
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm
php-mhash-5.2.17-1.el6.art.x86_64.rpm
php-mssql-5.2.17-1.el6.art.x86_64.rpm
php-mysql-5.2.17-1.el6.art.x86_64.rpm
php-pdo-5.2.17-1.el6.art.x86_64.rpm
php-soap-5.2.17-1.el6.art.x86_64.rpm
................................................
rpm -ivh --nodeps php-5.2.17-1.el6.art.x86_64.rpm
php-bcmath-5.2.17-1.el6.art.x86_64.rpm
php-cli-5.2.17-1.el6.art.x86_64.rpm
php-common-5.2.17-1.el6.art.x86_64.rpm
php-dba-5.2.17-1.el6.art.x86_64.rpm
php-devel-5.2.17-1.el6.art.x86_64.rpm
php-embedded-5.2.17-1.el6.art.x86_64.rpm
php-gd-5.2.17-1.el6.art.x86_64.rpm
php-imap-5.2.17-1.el6.art.x86_64.rpm
php-ldap-5.2.17-1.el6.art.x86_64.rpm
php-mbstring-5.2.17-1.el6.art.x86_64.rpm
php-mcrypt-5.2.17-1.el6.art.x86_64.rpm
php-mhash-5.2.17-1.el6.art.x86_64.rpm
php-mssql-5.2.17-1.el6.art.x86_64.rpm
php-mysql-5.2.17-1.el6.art.x86_64.rpm
php-pdo-5.2.17-1.el6.art.x86_64.rpm
php-soap-5.2.17-1.el6.art.x86_64.rpm
....................................................
/etc/init.d/httpd restart
stoping httpd ok
starting httpd ok
....................................................
cat /etc/yum.conf|grep php
exclude=php*
....................................................
Zendoptimizer
....................................................
wget http://www.zend.com/products/guard/downloads
zindoptimizer 3.3(php-2.5.x linux)
tar -zxvf zedoptimizer-3.3-tar.gz
1. Extract the Zend Optimizer package.
2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).
2. Add the following line to your php.ini file:
Linux and Mac OS X: zend_extension=
Windows: zend_extension_ts=
Windows non-thread safe: zend_extension=
(*) The Windows non-thread safe binary is only used with Zend Core 2.0.
3. Restart your Web server.
vim /etc/php.ini
zend_extension=
4.php -v
reboot the server.
enjoy
Labels:
CentOS.6.2,
php-5.2.x,
rpm,
zendoptimizer
Subscribe to:
Posts (Atom)