rpm -ivh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
cd /etc/yum.repos.d/
wget http://rpms.famillecollet.com/enterprise/remi.repo
yum install freetds
yum install freetds-devel
yum install --enablerepo=remi php-mssql
Followers
Monday, 12 November 2012
Connect PHP to MSSQL Server Setting
Thursday, 8 November 2012
How to install wireshark in CentOs 6.2
firstly type
# yum install wireshark -y
install for GUI version
# yum install wireshark-gnome
# yum install wireshark -y
install for GUI version
# yum install wireshark-gnome
Tuesday, 6 November 2012
Sunday, 4 November 2012
ProFTPD and AuthUserFile for password file
ProFTPD and AuthUserFile for password file
By dooblem on Monday 11 October 2010, 00h45 - Permalink
Default in Debian: ProFTPD only uses the
/etc/passwd
system user base.
To add "virtual" users :
In
/etc/proftpd/proftpd.conf
:DefaultRoot ~ AuthUserFile /etc/proftpd/ftpd.passwd RequireValidShell off
Then restart proftpd:
/etc/init.d/proftpd restart
Create users file:
vi /etc/proftpd/ftpd.passwd username:HASH:1011:1011:MyUserName:/home/ftp/directory:/bin/true
You can also generate the user lines with the
ftpasswd
command, but I think it's simpler to generate passwords with the command:mkpasswd --hash=md5
Then paste the HASH in the passwd file.
Correct passwd file permissions:
chown proftpd /etc/proftpd/ftpd.passwd chmod go-r /etc/proftpd/ftpd.passwd
And just test it to finish.
Thursday, 1 November 2012
mod_python installation guide
To install mod_python, we need the EPEL repositories:
Now edit the /etc/yum.repos.d/eped.repo file and add priority=10 to the [epel] section.
After that follow the steps below and you’ll have mod_python installed and active.
Now you should configure your httpd.conf files so that apache nows
where and when to interpret your Python scripts. If you have installed
you system with our LAMP installer, then go to /etc/httpd/conf.d and edit you websites .conf file (starting with a z_)
Make sure you add the following lines in the <Directory …> </Directory> statements.
Don’t forget that PythonDebug is for debug mode. When you’re done developing it may be a good idea to turn it off.
Also don’t forget to add your DirectoryIndex handlers so that Apache knows you can also have Python Index files. You can add this right after the </Directory> statement.
Since we’ve altered with the configuration files of Apache, we should restart it again, then you are ready to go.
1 | rpm -- import https://fedoraproject.org/static/0608B895.txt |
2 | wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm |
3 | rpm -ivh epel-release-6-7.noarch.rpm |
4 | yum install yum-priorities |
After that follow the steps below and you’ll have mod_python installed and active.
1 | yum install mod_python |
2 | service httpd restart |
1 | vi /etc/httpd/conf.d/z_castmator.com |
1 | AddHandler mod_python .py |
2 | PythonHandler mod_python.publisher |
3 | PythonDebug On |
Also don’t forget to add your DirectoryIndex handlers so that Apache knows you can also have Python Index files. You can add this right after the </Directory> statement.
1 | DirectoryIndex index.html index.php index.py |
1 | service httpd restart |
Subscribe to:
Posts (Atom)