Virtualmin by updating "System Settings -> Features and Plugins -> Awstats -> Configure".
Full path to AWstats program to /var/www/awstats/awstats.pl
Full path to AWstats icons directory to /var/www/awstats/icon
Full path to AWstats lang directory to /var/www/awstats/lang
Full path to AWstats lib directory to /var/www/awstats/lib
Full path to AWstats plugins directory to /var/www/awstats/plugins
Followers
Friday, 5 April 2013
Wednesday, 20 March 2013
How to install your own VPN server in 5 mins (PPTP on CentOS, RedHat and Ubuntu)
Virtual Private Network (VPN)
is the most effective way to bypass access control, the censorship, and
network spying. It is also a safe way to connect to the internet to
protect your privacy. It is usually better than using web proxy.
For example, when you are on a business visit to Asia, very likely, you are not able to access your Hulu Plus contents, or Amazon Prime unless you use a VPN connection to a server located in US. The reason is that Hulu or Amazon is only allowed to stream videos in US per license agreement with copyright holders.
Of course, there are many VPN providers. But if you want full control or want to share the vpn with your buddies, you can get a server and install it by yourself.
Before you start, you need get a dedicated server with root access. VPS may not work well depending on the virtualization software used. You can get a cheap dedicated server with less than $50/month.
There are mainly 3 types of VPN servers: Point-to-Point Tunneling Protocol (PPTP), Layer 2 Tunneling Protocol (L2TP) and OpenVPN. In this tutorial, we use PPTP because it is supported natively on almost all devices, Windows, Linux, Android, IOS and Mac OS.
Step 1. Install PPTPD
If your OS is CentOS/RedHat 5:
Step 6. Configure firewall
If you are using CSF firewall, you may refer to this post on firewall settings.
Step 7. Start PPTP VPN server
If your OS is CentOS or Redhat, using the following command:
If your OS is Ubuntu, you just reboot your machine.
Now you can test the VPN server from any client: Windows PCs, Linux PCs, Android phones/tablets, or iPhone and iPad.
The log of the VPN server, by default, is combined with system log located at /var/log/messages.
Source: ( http://freehostinganswers.com/blog/how-to-install-your-own-vpn-server-in-5-mins-pptp-on-centos-redhat-and-ubuntu/)
For example, when you are on a business visit to Asia, very likely, you are not able to access your Hulu Plus contents, or Amazon Prime unless you use a VPN connection to a server located in US. The reason is that Hulu or Amazon is only allowed to stream videos in US per license agreement with copyright holders.
Of course, there are many VPN providers. But if you want full control or want to share the vpn with your buddies, you can get a server and install it by yourself.
Before you start, you need get a dedicated server with root access. VPS may not work well depending on the virtualization software used. You can get a cheap dedicated server with less than $50/month.
There are mainly 3 types of VPN servers: Point-to-Point Tunneling Protocol (PPTP), Layer 2 Tunneling Protocol (L2TP) and OpenVPN. In this tutorial, we use PPTP because it is supported natively on almost all devices, Windows, Linux, Android, IOS and Mac OS.
Step 1. Install PPTPD
If your OS is CentOS/RedHat 5:
If your OS is CentOS/RedHat 6:yum install ppp
cd /usr/local/src
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
rpm -Uhv pptpd-1.3.4-2.rhel5.x86_64.rpm
If you are using Ubuntu:yum install ppp
cd /usr/local/src
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.x86_64.rpm
rpm -Uhv pptpd-1.3.4-2.el6.x86_64.rpm
apt-get install pptpd
Step 2. Edit IP setttings in /etc/pptpd.confvi /etc/pptpd.conflocalip 192.168.0.1Step 3. Add user account in/etc/ppp/chap-secrets (assign username and password)
remoteip 192.168.0.101-200
vi /etc/ppp/chap-secretsusernameForuser1 * setpassword1here *Step 4. Optional settings in /etc/ppp/options.pptpd
usernameForuser2 * setpassword2here *
vi /etc/ppp/options.pptpdms-dns 8.8.8.8Step 5. Enable network forwarding in /etc/sysctl.conf
ms-dns 4.4.4.4
vi /etc/sysctl.confnet.ipv4.ip_forward = 1use the following command to apply the change:
sysctl -pStep 6. Configure firewall
iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPTiptables -A INPUT -i eth0 -p gre -j ACCEPTiptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEiptables -A FORWARD -i ppp+ -o eth0 -j ACCEPTiptables -A FORWARD -i eth0 -o ppp+ -j ACCEPTservice iptables saveservice iptables restartIf you are using CSF firewall, you may refer to this post on firewall settings.
Step 7. Start PPTP VPN server
If your OS is CentOS or Redhat, using the following command:
service pptpd restartTo start PPTP Daemon automatically when rebooting next time, use command:
chkconfig pptpd onIf your OS is Ubuntu, you just reboot your machine.
Now you can test the VPN server from any client: Windows PCs, Linux PCs, Android phones/tablets, or iPhone and iPad.
The log of the VPN server, by default, is combined with system log located at /var/log/messages.
Source: ( http://freehostinganswers.com/blog/how-to-install-your-own-vpn-server-in-5-mins-pptp-on-centos-redhat-and-ubuntu/)
Monday, 12 November 2012
Connect PHP to MSSQL Server Setting
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
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)
