Free cPanel Web Hosting with PHP5/Mysql - no advertising!
Register now: http://www.000webhost.com/358732.html
We can offer you a free web hosting package packed with advanced features for hosting & building professional dynamic websites. We provide secure free web space with all the web hosting tools you could possibly ever need.
Our package includes:
- 1500 MB of Disk Space, 100 GB Bandwidth
- Host your own domain (http://www.yourdomain.com)
- cPanel Powered Hosting (you will love it)
- Over 500 website templates ready to download
- Easy to use website builder
- Free POP3 Email Box with Webmail access
- FTP and Web based File Manager
- PHP, MySQL, Perl, CGI, Ruby.
- And many more..
Monday, September 27, 2010
Friday, September 24, 2010
OpenVPN server configuration
I wanted to have as much of the configuration on the server as possible so that I could easily add more clients and wouldn't have a need to update client configuration when ever the server preferences change.
Here is my OpenVPN server configuration:
mode server
tls-server
dev tap0
server-bridge 10.5.6.1 255.255.255.0 10.5.6.200 10.5.6.209
ifconfig-pool-persist /var/run/openvpn-ip.txt
keepalive 10 60
ping-timer-rem
persist-tun
push "route 10.5.6.0 255.255.255.0"
push "dhcp-option DNS 10.5.6.1"
ca /root/easy-rsa-2.0/keys/ca.crt
key /root/easy-rsa-2.0/keys/ressukka.net.key
cert /root/easy-rsa-2.0/keys/ressukka.net.crt
dh /root/easy-rsa-2.0/keys/dh1024.pem
client-to-client
up /etc/openvpn/ovpn-ressukka.sh
and the up script:
#!/bin/sh
# Bind the tunnel interface to the bridge
BRIDGE=br0
ifup $1
brctl addif $BRIDGE $1
There is nothing really special about that configuration. The server is in TLS mode configures a bridge. The keys are generated with easy-rsa by following a openvpn howto entry. The up script just binds the tap0 device to the network bridge after bringing up the device.
Next I created the interface configuration by adding the following to /etc/network/interfaces:
iface br0 inet static
address 10.5.6.17
gateway 10.5.6.1
netmask 255.255.255.0
bridge-ports eth0
The trick here is to create a single bridge with just the eth0 device. We use the up script for openvpn to add the tunnel device to the bridge. Otherwise the bridge would never contain the proper devices.
Client
As for the client, you simply set the client to use the CA-certificate and Host key created with easy-rsa, set the hostname and tunnel type. Tunnel type is assumed to be a tun-device instead of tap, so in my case I needed to change it too.
There is no need to tell the client anything else. Everything else will be negotiated through the tunnel. And since I use NetworkManager to set up my tunnels I didn't have a need to drop in to a shell even once at the client.
Here is my OpenVPN server configuration:
mode server
tls-server
dev tap0
server-bridge 10.5.6.1 255.255.255.0 10.5.6.200 10.5.6.209
ifconfig-pool-persist /var/run/openvpn-ip.txt
keepalive 10 60
ping-timer-rem
persist-tun
push "route 10.5.6.0 255.255.255.0"
push "dhcp-option DNS 10.5.6.1"
ca /root/easy-rsa-2.0/keys/ca.crt
key /root/easy-rsa-2.0/keys/ressukka.net.key
cert /root/easy-rsa-2.0/keys/ressukka.net.crt
dh /root/easy-rsa-2.0/keys/dh1024.pem
client-to-client
up /etc/openvpn/ovpn-ressukka.sh
and the up script:
#!/bin/sh
# Bind the tunnel interface to the bridge
BRIDGE=br0
ifup $1
brctl addif $BRIDGE $1
There is nothing really special about that configuration. The server is in TLS mode configures a bridge. The keys are generated with easy-rsa by following a openvpn howto entry. The up script just binds the tap0 device to the network bridge after bringing up the device.
Next I created the interface configuration by adding the following to /etc/network/interfaces:
iface br0 inet static
address 10.5.6.17
gateway 10.5.6.1
netmask 255.255.255.0
bridge-ports eth0
The trick here is to create a single bridge with just the eth0 device. We use the up script for openvpn to add the tunnel device to the bridge. Otherwise the bridge would never contain the proper devices.
Client
As for the client, you simply set the client to use the CA-certificate and Host key created with easy-rsa, set the hostname and tunnel type. Tunnel type is assumed to be a tun-device instead of tap, so in my case I needed to change it too.
There is no need to tell the client anything else. Everything else will be negotiated through the tunnel. And since I use NetworkManager to set up my tunnels I didn't have a need to drop in to a shell even once at the client.
FREE WEBHOSTING
Free cPanel Web Hosting with PHP5/Mysql - no advertising!
Register now: http://www.000webhost.com/358732.html

We can offer you a free web hosting package packed with advanced features for hosting & building professional dynamic websites. We provide secure free web space with all the web hosting tools you could possibly ever need.
Our package includes:
- 1500 MB of Disk Space, 100 GB Bandwidth
- Host your own domain (http://www.yourdomain.com)
- cPanel Powered Hosting (you will love it)
- Over 500 website templates ready to download
- Easy to use website builder
- Free POP3 Email Box with Webmail access
- FTP and Web based File Manager
- PHP, MySQL, Perl, CGI, Ruby.
- And many more..
Register now: http://www.000webhost.com/358732.html
We can offer you a free web hosting package packed with advanced features for hosting & building professional dynamic websites. We provide secure free web space with all the web hosting tools you could possibly ever need.
Our package includes:
- 1500 MB of Disk Space, 100 GB Bandwidth
- Host your own domain (http://www.yourdomain.com)
- cPanel Powered Hosting (you will love it)
- Over 500 website templates ready to download
- Easy to use website builder
- Free POP3 Email Box with Webmail access
- FTP and Web based File Manager
- PHP, MySQL, Perl, CGI, Ruby.
- And many more..
Tuesday, September 21, 2010
How to install WordPress on 000webhost free hosting without cPanel
For this click on create new > Enter domain name and password >Set up new account.
In the next page, they will show up nameservers, note up that and change it your domain control panel.
Wait 12 hours for complete transfer of domain to 000webhost account.
Now we are going to install WordPress on 000webhost account.
Download latest version of WordPress.
1. Extract the files to desktop and rename the file wp_config.php. to wp-config.php This file is WordPress configuration file where we keep important informations like MySQL database user name and password.
2. Now create a New MySQL database for WordPress.
Open up 000webhost control panel and select MySQL.
Now enter MySQL database name, MySQL user name,password for MySQL user. Furthermore, note the MySQL host address (It will be something like mysql9.000webhost.com).
3. Download any free HTML editor (Notepad also works) and open wp-config.php
Now under MySQL settings,
define(‘DB_NAME’, ‘enter full database name’);
/** MySQL database username */define(‘DB_USER’, ‘enter the full database user name’);
/** MySQL database password */define(‘DB_PASSWORD’, ‘enter the full database password’);
/** MySQL hostname */define(‘DB_HOST’, ‘enter full database host name’);
Now move down to these strings:
define (‘AUTH_KEY’, ‘ Enter key1 ‘); define(‘SECURE_AUTH_KEY’, ‘ Enter key 2′); define(‘LOGGED_IN_KEY’, ‘Enter key 3′); define(‘NONCE_KEY’, ‘Enter key 4′);
These keys are intended for providing security to WordPress installation. So make sure to use different characters in each line and should contain letters and numbers.
4. Save wp-config.php (WordPress configuration) file to the WordPress folder.
5. Now use our tutorial to upload WordPress via FTP to the public_html folder.
6. Now we can start WordPress installation to the directory where the files are uploaded.
Open up your browser and type http://www.yourdomain/wp-admin/install.php and hit enter. If everything went fine, the following screen will appear.
Monday, September 13, 2010
Install phpMyAdmin on Server CentOS 5.5
Install phpMyAdmin on Server CentOS 5.5
Install repository from rpmforge to server
# cd /tmp
On Centos x86 (i386)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
On Centos x64 (x86_64)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpmCommand to view version of CentOS is x86 (32bit) or x86_64 (64bit)
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
# uname -i
Install phpMyAdmin
# yum -y install phpmyadminedit file phpmyadmin.conf
# vi /etc/httpd/conf.d/phpmyadmin.confdelete the other settings and leave only the following:
Alias /phpmyadmin /usr/share/phpmyadminsave (press key "Esc" and then type ":wq")
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
edit file config.inc.php
# vi /usr/share/phpmyadmin/config.inc.phpfind the following line
$cfg['Servers'][$i]['auth_type'] = 'cookie';and replace 'cookie' with 'http'
Restart Apache
# service httpd restart
go to http://ServerIPaddress/phpmyadmin and you'll find a page like this after login with user and password mysqladmin which was created when installing MySQL.
Subscribe to:
Comments (Atom)