1. In order to enable php engine in apache, you should make sure php is installed in the system first. Then refer following steps :locate libphp5.so In most of cases, libphp5.so will be present inside /etc/httpd/modules2. Add following in httpd.conf :------------------# Use for PHP 5.x:LoadModule php5_module modules/libphp5.soAddHandler php5-script .php # Add index.php to your DirectoryIndex line:DirectoryIndex index.html index.phpAddType text/html .php# PHP Syntax Coloring# (optional but useful for reading PHP source for debugging):AddType application/x-httpd-php-source...
Wednesday, 21 March 2012
Wednesday, 14 March 2012
How to store sftp log messages in custom file on RHEL 6?
Posted on 06:01 by Unknown
How to setup chrooted sftp account on RHEL 6?$groupadd sftponly$$useradd user123$usermod -d /myhome -g sftponly -s /bin/false user123$mkdir -p /chroots/user123 ; chmod -R 755 /chroots/user123$mkdir /chroots/user123/myhome ; chown user123:sftponly /chroots/user123/myhome$passwd user123Also make sure below is successfully configured :How to store sftp log messages in custom file on RHEL 6?--------------------------------1. Make sure "AUTHPRIV" facility is used in sshd_config file. Sample file looks like :$ cat /etc/ssh/sshd_config :-------------Subsystem...
Wednesday, 7 March 2012
How to setup multiple gateways for multiple Ethernets?
Posted on 19:05 by Unknown
If you would like to use multiple gateways, you should use iproute package and define the gateway in two tables in conjunction with each interface. Here is an example how to configure it :Let's assume eth0 has gateway 10.1XX.69.1 and eth3's gateway is 10.1XX.66.1.So, you should execute following steps :echo 1 ISP1 >> /etc/iproute2/rt_tablesecho 2 ISP2 >> /etc/iproute2/rt_tablesThe next step is to have some routing rules and routes:For the ISP1 table:ip route add default via 10.1XX.69.1 dev eth0 table ISP1ip rule add from 10.1XX.69.0/24...
Subscribe to:
Posts (Atom)