HOWTO OpenVPN Setup Guide For FC3, FC4, FC5, CentOS And Others,connecting Via Windows

Apr 1, 2007

I have had great difficulty in setting up OpenVPN, so I thought, when I finally do get it to work, I will write a HOWTO, so other can hopefully benefit…

This guide was done using a FC4 VPS, running on Xen, it will work on OpenVZ, all you need to do is ask your VPS provider to install “tun support”.

1.First of all get a few additional repos, If you already have your repos setup, skip this step

If you have Fedora 3, follow these steps,

[url]

If you have Fedora 4, follow these steps,

[url]

If you have Fedora 5, follow these steps,

[url]

If you have CentOS, follow the “additional third party CentOS repos”

[url]

Then issue these commands, each line is a new command, anything beginning with "#" are comments so dont try to execute those.

Code:
yum update

yum install openssl openssl-devel
# openssl and openssl-devel may be installed already… so don’t worry

2. Right, now you want to install OpenVPN, here are the commands,

Code:
yum install openvpn -y

#Now check that it works

service openvpn start
service openvpn stop

3. A few things to setup before you can make certificates, issue these commands,

Code:

find / -name "easy-rsa"

#you should get an output like this…

/usr/share/doc/openvpn-2.0.7/easy-rsa

#Now, make a copy of the easy-rsa directory, to /etc/openvpn/ ( make sure you #have put the right version number in i.e. mine was -2.0.7, change if needed)

cp -R /usr/share/doc/openvpn-2.0.7/easy-rsa /etc/openvpn/

cd /etc/openvpn/easy-rsa

chmod 777 *

mkdir /etc/openvpn/keys

4. You need to edit the vars file, located in /etc/openvpn/easy-rsa
You can use any editor you like, I used vi.

Change the line

Code:
export KEY_DIR=$D/keys
to

Code:
export KEY_DIR=/etc/openvpn/keys
Also at the bottom of this file you will see something similar to this,

Code:
export KEY_COUNTRY=US
export KEY_PROVINCE=CA
export KEY_CITY=SOMEWHERE
export KEY_ORG="My Org"
export KEY_EMAIL=me@mydomain.com
Change this to your own values.

5. Now its time to make the certificates, enter these commands

Code:
. ./vars

Code:
./clean-all

Code:
./build-ca
# just hit enter to the defaults apart from Common Name, this must be unique
# call it something like mydomain-ca

Code:
./build-key-server server

Code:
./build-key client1
# remember that common name must be unique e.g. use mydomain-client1
# and YES you want to sign the keys

Code:
./build-key client2
# do this step for as many clients as you need.

Code:
./build-dh

6. We are almost done now… right we need to create a few config files, you can download my template from here,

Code:
cd /etc/openvpn

Code:
wget www.designpc.co.uk/downloads/server.conf
# make sure you change a few things in the server.conf file, like DNS
# servers

Code:
touch server-tcp.log
~ this makes the log file..

Code:
touch ipp.txt
this makes the IP reservation list.

7. You need to make a few changes to OpenVPN itself. Go to..

Code:
cd /etc/init.d/
edit the openvpn file

#Uncomment this line (line 119)

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
Add these lines below it, changing 123.123.123.123 to your public IP address,

Code:
iptables -t nat -A POSTROUTING -s 192.168.2.3 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.4 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.5 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.6 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.7 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.8 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.9 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.10 -j SNAT --to 123.123.123.123
Now install iptables if you don’t have it already,

Code:
yum install iptables

#test it

service iptables start
service iptables stop

8. Now for the client config files. If your client is a Windows machine, make sure you have installed OpenVPN, use the gui version, downloadable from here;

[url]

You need to copy a few files from the server to your client machine, here is the list, located in /etc/openvpn/keys/

## WARNING ## Use a secure way of transferring these files off the server, something like WinSCP.

ca.crt
client1.csr
client1.key
client1.crt

Put these files in this directory C:Program FilesOpenVPNconfig

Now you need to make a client config, here is an example..

PHP Code:

clientdev tunproto tcp#Change my.publicdomain.com to your public domain or IP addressremote my.publicdomain.com 1194resolv-retry infinitenobindpersist-keypersist-tunca ca.crtcert client1.crtkey client1.keyns-cert-type server#DNS Options here, CHANGE THESE !!push "dhcp-option DNS 123.123.123.123"push "dhcp-option DNS 123.123.123.124"comp-lzoverb 3 

Make sure you edit any of the lines with comments above them.

Call this file client1.opvn and put it in C:Program FilesOpenVPNconfig

Make sure the file extension is .opvn not .txt

To connect right click on OpenVPN in the taskbar >> Connect

To test ping 192.168.2.1

View 14 Replies


ADVERTISEMENT

Plesk 12.x / Windows :: Setup FTP Access - Connecting To Server?

Sep 28, 2014

I setup FTP access on Plesk, then when i try connect to the server it seems to be trying to access through a old installation on FileZilla Beta server manager, that was obviously installed on the server a while back. I can only think it is not using which ever FTP manager Plesk uses.

View 2 Replies View Related

Guide To Setup A Internet Data Center

Jul 16, 2008

We are about to open a data center in India. Can u please someone guide us to setup a data center. I require some article, reference for all setup and from scratch.

View 11 Replies View Related

OpenVPN- My Setup/config?

Nov 20, 2007

In the /var/log/messages snippet posted below, I see this (see below snippet)

Is this bad? Are the highlighted parts bad? Do they show an incorrect or inefficient configuration? I tried to find out what it means, but google isn't being too helpful in this instance.

(The VPN is used only as an "internet gateway" for about 5 users who need to browse the internet from within a foreign country.)

Here is the logfile snippet from /var/log/messages. (I changed he vpn username and client IP for privacy.)

Quote:

Nov 20 09:28:07 vpn openvpn[13712]: MULTI: multi_create_instance called
Nov 20 09:28:07 vpn openvpn[13712]: Re-using SSL/TLS context
Nov 20 09:28:07 vpn openvpn[13712]: LZO compression initialized
Nov 20 09:28:07 vpn openvpn[13712]: Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Nov 20 09:28:07 vpn openvpn[13712]: Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 20 09:28:07 vpn openvpn[13712]: Local Options hash (VER=V4): 'b695cb4a'
Nov 20 09:28:07 vpn openvpn[13712]: Expected Remote Options hash (VER=V4): 'bc07730e'
Nov 20 09:28:07 vpn openvpn[13712]: TCP connection established with 91.186.11.226:52093
Nov 20 09:28:07 vpn openvpn[13712]: TCPv4_SERVER link local: [undef]
Nov 20 09:28:07 vpn openvpn[13712]: TCPv4_SERVER link remote: 91.186.11.226:52093
Nov 20 09:28:07 vpn openvpn[13712]: user1/1.1.1.1:3861 MULTI: packet dropped due to output saturation (multi_process_incoming_tun)
Nov 20 09:28:18 vpn last message repeated 31 times
Nov 20 09:28:21 vpn openvpn[13712]: 91.186.11.226:52093 Connection reset, restarting [-1]
Nov 20 09:28:21 vpn openvpn[13712]: 91.186.11.226:52093 SIGUSR1[soft,connection-reset] received, client-instance restarting
Nov 20 09:28:21 vpn openvpn[13712]: TCP/UDP: Closing socket
Nov 20 09:28:26 vpn openvpn[13712]: user1/1.1.1.1:3861 MULTI: packet dropped due to output saturation (multi_process_incoming_tun)
Nov 20 09:28:57 vpn last message repeated 38 times
Nov 20 09:29:03 vpn last message repeated 9 times
Nov 20 09:29:07 vpn openvpn[13712]: MULTI: multi_create_instance called
Nov 20 09:29:07 vpn openvpn[13712]: Re-using SSL/TLS context
Nov 20 09:29:07 vpn openvpn[13712]: LZO compression initialized
Nov 20 09:29:07 vpn openvpn[13712]: Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Nov 20 09:29:07 vpn openvpn[13712]: Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 20 09:29:07 vpn openvpn[13712]: Local Options hash (VER=V4): 'b695cb4a'
Nov 20 09:29:07 vpn openvpn[13712]: Expected Remote Options hash (VER=V4): 'bc07730e'
Nov 20 09:29:07 vpn openvpn[13712]: TCP connection established with 91.186.11.226:52687
Nov 20 09:29:07 vpn openvpn[13712]: TCPv4_SERVER link local: [undef]
Nov 20 09:29:07 vpn openvpn[13712]: TCPv4_SERVER link remote: 91.186.11.226:52687
Nov 20 09:29:08 vpn openvpn[13712]: user1/1.1.1.1:3861 MULTI: packet dropped due to output saturation (multi_process_incoming_tun)
Nov 20 09:29:21 vpn last message repeated 16 times
Nov 20 09:29:21 vpn openvpn[13712]: 91.186.11.226:52687 Connection reset, restarting [-1]
Nov 20 09:29:21 vpn openvpn[13712]: 91.186.11.226:52687 SIGUSR1[soft,connection-reset] received, client-instance restarting
Nov 20 09:29:21 vpn openvpn[13712]: TCP/UDP: Closing socket
Nov 20 09:29:21 vpn openvpn[13712]: user1/1.1.1.1:3861 MULTI: packet dropped due to output saturation (multi_process_incoming_tun)
Nov 20 09:29:34 vpn last message repeated 144 times
Nov 20 09:30:06 vpn openvpn[13712]: MULTI: multi_create_instance called
Nov 20 09:30:06 vpn openvpn[13712]: Re-using SSL/TLS context
Nov 20 09:30:06 vpn openvpn[13712]: LZO compression initialized
Nov 20 09:30:06 vpn openvpn[13712]: Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Nov 20 09:30:06 vpn openvpn[13712]: Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 20 09:30:06 vpn openvpn[13712]: Local Options hash (VER=V4): 'b695cb4a'
Nov 20 09:30:06 vpn openvpn[13712]: Expected Remote Options hash (VER=V4): 'bc07730e'
Nov 20 09:30:06 vpn openvpn[13712]: TCP connection established with 91.186.11.226:53285
Nov 20 09:30:06 vpn openvpn[13712]: TCPv4_SERVER link local: [undef]
Nov 20 09:30:06 vpn openvpn[13712]: TCPv4_SERVER link remote: 91.186.11.226:53285
Nov 20 09:30:21 vpn openvpn[13712]: 91.186.11.226:53285 Connection reset, restarting [-1]
Nov 20 09:30:21 vpn openvpn[13712]: 91.186.11.226:53285 SIGUSR1[soft,connection-reset] received, client-instance restarting
Nov 20 09:30:21 vpn openvpn[13712]: TCP/UDP: Closing socket

It goes on like this, with this pattern repeating every 20 seconds or so. Is this normal?

View 5 Replies View Related

Howto Load Tun/tap On Centos XEN VPS

Aug 31, 2007

Anyone have any info on how to do this? It appears my hosts don't know how to do it..

"You have the tun module which can be loaded via a modprobe but the dev entries would appear to be needed to be made. Of course, you could do this if you know how or wait while I research it. We know tun/tap works on openvz but you're the first request we've had on Xen."

View 1 Replies View Related

Howto Load Tun/tap On Centos XEN VPS

Aug 31, 2007

"You have the tun module which can be loaded via a modprobe but the dev entries would appear to be needed to be made. Of course, you could do this if you know how or wait while I research it. We know tun/tap works on openvz but you're the first request we've had on Xen."

View 2 Replies View Related

How Can I Install Openvpn In Centos Server

Sep 7, 2007

I want to make vpn server beside hosting server .

how can i install openvpn in centos server?

View 7 Replies View Related

Performance With A Simple Openvpn Setup

Sep 29, 2009

How do go about discovering where your bottleneck is with an openvpn setup?

Ive setup openvpn on my remote server and have setup everything so that my desktop clients (vista and ubuntu) at home can connect and have all internet traffic directed successfully through the tunnel.

Im using it to stream video that would normally be inaccessible outside of the UK whilst im in Japan i.e. iplayer.

The problem is its oftenvery choppy and unplayable. Though its good when england is sleeping.

Im new to servers (not to stuff like programming though) so dont know where the problem lies, how to find it out or even where to start looking. For example things ging through my head

Is it the limitations of the vps? How do i find that out? my plan:- vps1

Is it the location of the actual server in the uk? How do i know if there are any better coming from japan?

Is it my configurations? How do i pinpoint that?

Or is it working as good as it can be? How do i know that for sure?
etc etc

What would be your process of elimantion? Quick checks that would tell you which direction to move forward in?

View 2 Replies View Related

Howto Add IP Permanently To Your Dedicated CentOS Server

Aug 11, 2007

Any straight up easy way. So they stay permanent?

Can I simply use system-config-network and add each IP one at a time.

View 6 Replies View Related

Setup A OpenVPN Server On A Trixbox Server

Jun 12, 2008

to setup a OpenVPN server on a Trixbox Server I'm running and tell us how to setup a Linksys router running DD-WRT Firmware to connect as a client. We need to make it so remote Cisco IP phones can connect to Trixbox.

View 0 Replies View Related

Plesk 12.x / Windows :: PHP Connecting Over Localhost To MySQL Very Slow

Jan 27, 2015

I have windows server 2012 and Plesk v12.0.18 #30 - I noticed speed problem.

When I try to connect to mySQL with:

$conn = new mysqli('localhost', 'joomla_***', '*****', 'joomla_test');

Connection takes 1 second!!!When I try to connect with '127.0.0.1' instead of 'localhost' connection takes 0,009 seconds.

1. I tried solution to add line '127.0.0.1 localhost' to c:windowssystem32driversetshosts - but no luck.

2. I tried to edit C:Program Files (x86)ParallelsPleskMySQLDatamy.ini - adding lines
bind-address=127.0.0.1
skip-name-resolve
then restarted mySql but 1 second lag time on connection was still there.

3. I even tried to disable IPv6 but still no luck

I guess all users windows windows server 2012 has the same problem??!?!...

View 3 Replies View Related

How To Setup Ip Address On Centos

Aug 5, 2008

my ISP offers me vlan environment for my two servers, but I need to setup internal IPs myself on my centos. Now I have no idea on how to do it. Anybody may help me on this problem?

View 5 Replies View Related

Software Raid1 Setup On Centos 5

Dec 4, 2008

How can setup software raid1 on centos 5?

Can you provide any refrence?

I see [url]but i dont know is this need to /boot partition or no? and if need to this, is it must set for raid1 too?

View 6 Replies View Related

How To Setup Virtual Private Server (VPS) On CentOS?

Jan 16, 2008

How can I setup VPS's on my new server?, I want something which is free, can anyone give me some software? for centos

View 5 Replies View Related

How Do I Setup A Ubuntu DomU Guest On A CentOS / Fedora Core XEN Server

Jul 27, 2008

how to install Ubuntu (either 7.10 or 8.04) as a XEN domU guest on a CentOS 5 / Fedora Core 8 XEN dom0 server?

I have tried installing Ubuntu as a fully virtualized guest, but the Ubuntu CD doesn't even bootup. I get the Linux bootloader, and that's it,it doesn't continue to boot. Odd.

When trying to install a Paravirtualized guest, I had to use the debootstrap method, but can't get it to boot up.

Quote:

xm create anya_zanet
Using config file "/etc/xen/anya_zanet".
Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found
')

This is the xen configuration:

Code:
kernel = "/boot/vmlinuz-2.6.23.1-42.fc8"
ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img"
builder='linux'
memory = 256
name = "anya_zanet"
vcpus = 1
vif = [ 'bridge=xenbr0' ]
disk = [ 'phy:/dev/System/anya_zanet,hda1,w' , 'phy:/dev/System/anya_zanet,hda2,w' ]
root = "/dev/hda1 ro"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

how to get Ubuntu working on a CentOS / Fedora Core XEN server?

View 1 Replies View Related

Cpanel DNS Only Installation Guide?

Apr 27, 2008

where I can find a Cpanel DNS only installation guide?

View 2 Replies View Related

Is There Some Sort Of Rating Guide

Jul 9, 2008

Is there some sort of rating guide (or site) that compares/rates performance and reliability of web hosts.

I just signed up with namecheap and the first three days were great but now it seems to be going down hill.

I've seen other sites with lists but they seem to be advertiser biased.

View 14 Replies View Related

Web Hosting Company Start-up Guide

Mar 30, 2009

I currently own my own hosting company using another companies servers, which is good, and I've learned a lot of the ins and outs of hosting, but there's a great deal I need to learn before I start Hosting using my own servers. Can anyone provide some good resources or books that might help me get on with my mission?

View 5 Replies View Related

HyperVM To Virtuozzo Migration Guide

Jun 30, 2009

So a few days ago we had the wonderful experience of migrating Virtual Private Servers from HyperVM to Virtuozzo. After spending endless hours attempting to migrate with vzmigrate, vzp2v and rsync we were getting very frustrated and were just about to give up. With this we decided to contact our datacenter SoftLayer who usually is able to help out. Like always they managed to rise to the challange and save the day providing us with a solution thay may not have been the best, but probably the only one. We must have searched the entire Internet looking for guides and after we found out a solution we knew it had to be posted so that the frustration we went through would never have to happen again. While this solution is a little timely and requires some work it actually isn't as bad as it sounds. Also we have created a little shell scripts that does a good amount of the migration for you. Below I have made step by step instructions so that there will no longer be "no answer" to this question. Also just to let you know we contacted Parallels and unfortunatly we were told that "I can not find anything in our knowledgebase". Basiclly useless support... they regurgiate their online knowledgebase to you. So below is the guide.

Pre-Requisites:

1. Download the Migration Kit zip that includes the shell scripts for the migration.

Migration Kit Download: [url]

2. You must create a new container in Virtuozzo for each HyperVM VPS that you would like to migrate. You MUST use the same VEID and I you need to keep the hostname the same. Also the OS TEMPLATE you pick DOES NOT MATTER!
If you are copying a customer HyperVM template don't worry cause the OS Template has no effect as far as I know. We transfered 30+ VPS's and the OS TEMPLATE made no difference.

3. Stop the container you created and mount it.

Code:
# vzctl stop <VEID>
#vzctl mount <VEID>
For LIVE MIGRATION SKIP TO STEP 4b.

4a. Stop the VPS on the source server (HyperVM) and mount it.

Code:
# vzctl stop <VEID>
#vzctl mount <VEID>
4b. Leaving the VPS running while migrating has a risk of posible database corruption. During our migration we did it this way and we experienced no issues so I think it is safe to say that in rare cases there may be problems but usually not.

5. Unzip the Migration Kit and be inside the folder where it was unziped.

6. Execute the shell script.

Code:
./migrate.sh <IP-ADDRESS>
IP-ADDRESS = the IP Address of the source VPS Node

7. Enter the CTID when the prompt requests it. (CTID = VEID)

8. Enter the root password for the server you are migrating from.

9. The script runs inside a screen session so to back out of it to do other things or start another migration you must hit:

Code:
CTRL + A + D
To list all the screens you have open.

Code:
# screen -ls
To enter a screen session

Code:
# screen -r SESS-ID
SESS-ID = the numbers before the period listed when you list all the open screens.

10. Once the migration is completed a broadcast message will alert you. Also if you check /var/log/migrate/migrate.log will contain all the migrations that have completed.

11. Once a migration has completed you must unmount the VPS and start it.

Code:
# vzctl umount <VEID>
# vzctl start <VEID>

If everything went "ok" than your VPS should start up without issues and should be just like it was on the old server. Lastly I would like to give credit to SoftLayer for the method of migration. Thanks again SoftLayer

View 14 Replies View Related

How-To: Server Optimization Guide (2007)

Jan 24, 2007

I'm sure by now most of you have read the Web Server Optimization Guide by Shaw Networks. It came in handy for me when I was first starting out, I reduced my load & memory usage by tonnes. I thought I would make a new thread with an updated How-To.

Recommended Tools/Programs:
Putty - Free SSH Client - [url]
WinSCP - Free SFTP and SCP Client - [url]

MySQL Optimization:
BACKUP:
cp /etc/my.cnf /etc/my.cnf.backup

Use Pico (pico /etc/my.cnf) or Download via WinSCP for editing,
Delete everything that is currently in the file and add the following...

Code:
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=8M
query_cache_size=256M
query_cache_type=1
max_connections=500
max_user_connections=100
interactive_timeout=60
wait_timeout=60
connect_timeout=30
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=100
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=2
myisam_sort_buffer_size=64M
#log-bin
server-id=1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
To Save: CTRL-X
Restart Service: "service mysqld restart" or "service mysql restart" or "/etc/rc.d/init.d/mysql restart"

HTTP/APACHE Optimization:

BACKUP:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.backup

Use Pico (pico /usr/local/apache/conf/httpd.conf) or Download via WinSCP for editing,
Change the following settings in your httpd.conf...

Set "Timeout" value to "Timeout 60"
Set "KeepAlive" to "KeepAlive on"
Set "KeepAliveTimeout" to "KeepAliveTimeout 3"
Set "MinSpareServers" to "MinSpareServers 16"
Set "MaxSpareServers" to "MaxSpareServers 32"
Set "MaxRequestsPerChild" to "MaxRequestsPerChild 256"
Set "HostnameLookups" to "HostnameLookups Off"

Note:
These settings will not work under all server environments its recommended that you tweak around with the numbers until your web server is running 100% please read Apache documentation before changing any settings so you know what you are changing [url]

To Save: CTRL-X
Restart Service: "service httpd restart" or "/etc/rc.d/init.d/httpd restart"

Installing eAccelerator:
eAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. [url]

If you run CPanel please visit [url] for an auto-installer which will do all the hard work for you.

Run the following in SSH.

Code:
cd /

mkdir ea

cd ea

wget [url]

bunzip2 eaccelerator-0.9.5.tar.bz2
tar -xvf eaccelerator-0.9.5.tar

cd eaccelerator-0.9.5

export PHP_PREFIX="/usr"

$PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config

make

make install

mkdir /phpcache

chmod 0777 /phpcache
Edit your PHP.INI file and at the bottom add...

Code:
To install as a ZEND extension:

zend_extension="/ea/eaccelerator-0.9.5/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/phpcache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

OR to install as a PHP extension:

extension="/ea/eaccelerator-0.9.5/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/phpcache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
Restart Service: "service httpd restart" or "/etc/rc.d/init.d/httpd restart"

For a great tutorial on Optimizing host.conf & sysctl.conf visit..
http://www.eth0.us/node/104

Common SSH Commands visit..
[url]

How to block an IP using iptables visit..
[url]

View 14 Replies View Related

Bs Best Tutorial And Reference Guide For RHEL And GUI Admin

Feb 18, 2008

Is there a Windows GUI software for remote Admining servers that run on Red Hat Linux?

FYI: Currently I use Putty for remotely managing our servers.

So if you can recommend a GUI like Windows desktop software for remotely Admining servers running Red Hat Enterprise, I would very much appreciate that.

FYI: we have like 10 dedicated severs, so a desktop GUI that would allow one to monitor/manage multiple servers would be best. But if the GUI that you think is best can only remotely connect/manage one server at a time, requiring disconnecting to connect to the other server to Admin it, that is fine.


Also, I would love to hear what you think is the best book, best tutorial and reference guide for remotely Admining servers running RHEL? I am not looking for one of those books that are 1000 pages, but something that is a few 100 pages and can be read in 1 month assuming a few hours per day of reading.

View 6 Replies View Related

Anyone Using VMWare On Windows X64 Setup?

Nov 22, 2007

We already use Virtuozzo and MS Virtual Server 2005 but wanted to know if anyone had any feedback for VMWare for Windows VPS.

View 1 Replies View Related

Best Windows Host And Setup

Apr 29, 2007

what most people use for a windows vps host and which companies you trust.

I am looking at powervps and solarvps.

Also what set up do you like?

EG: virtuozzo, plesk or what do you like to give your clients and use for admin, and why.

View 3 Replies View Related

Setup VPN Using RRAS Windows

Apr 5, 2007

I'm trying to setup a public VPN network where remote clients can access the VPN server and connect to the internet through the VPN server.

I have Users assigned to different groups, and need each group to obtain a Unique Public IP address.

For example:

User1Group1 > connect to RRAS > access the internet with Public IP x
User2Group1 > connect to RRAS at the same time > access internet IP x
User3Group1 > connect to RRAS at the same time > access internet IP x

User1Group2 > connect to RRAS at the same time > access internet IP y
User2Group2 > connect to RRAS at the same time > access internet IP y
User3Group2 > connect to RRAS at the same time > access internet IP y

The trouble I'm having is only the first login in a group able to gain the Public IP address while the other ones default to the RRAS IP address.

I've setup a remote access policy to each group, then assigned these groups specific internal IP for each one. Then in NAT/LAN reserved a public IP for each private IP.

But when multiple users login, the server allows them access and provide them with internal IPs that are not specified in the access policy.
(I actually find that like a bug, instead it should deny access if the IP is in use).

I only have One NIC and hence the DHCP server and DHCP relay did not work.
how to have multiple users in certain group assigned the same public IP when they access the internet?

View 0 Replies View Related

Windows To CentOS URL Case Sensitive

Jun 22, 2008

I am moving one of my site from windows to centOS hosting. The problem is that the new server is case sensitive for folders and file names. I had all my folders in capital letters previously and also all my links inside pages(www.domain.com/FOLDER/Page-Name.php).

I have nearly 1000 pages and most of them are indexed in google in this format
[url]

Now i have renamed all my folders, files and links inside the files to absolute lowercase.

View 4 Replies View Related

FTP Setup On Windows 2003 Standard

Oct 5, 2006

Im trying to setup FTP on Windows 2003 Standard. Multiple people will need access, the problem Im having is how do I make it to where certain ftp accounts only have access to certain folders and certain ftp accounts have access to the whole root directory of that folder?

For instance under websitefolder you have a folder called bobsfolder. I want bob to login and just be "jailed" to bobsfolder, but when websitefolderadmin logs in they have access to the root of websitefolder and all its subfolders.

View 14 Replies View Related

Windows Server 2003 - VPS Setup

Jun 12, 2008

How do I setup a VPS on my Server?

It is Windows Server 2003.

View 4 Replies View Related

Basic Windows Server Setup On A PC?

Jul 13, 2008

I want to be able to do some testing on a Windows Server. Instead of finding a domain and finding web space I figured I could just use one of my own PCs as a web server.

However, I've never done that before and have no idea what I would need.

Does anyone have a tutorial of what needs to be installed (OS, software, etc) in order to setup a Windows web server? Doesn't have to have any features other than supporting ASP. And I'd need to be able to access it from the internet via my ISP and a port.

View 2 Replies View Related

How To Setup A Windows Dedicated Server

Jul 9, 2008

I am a good systems administrator but I have never setup a windows web server. Are there any tutorials out on the web that would show me how to do it. Is it true when a dedicated server is purchased the only thing I have to do is transfer the htm or asp files?

View 3 Replies View Related

XCache - Errors After Migration From CentOS To Windows

Apr 11, 2009

I have just migrated my server from a Linux CentOS VPS to a dedicated Windows Web Server 2008, everything seems to have gone quite well except xcache.

I have installed xCache v1.2.2 with the following configuration:

Quote:

[xcache-common]
extension = php_xcache.dll

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "admin"
xcache.admin.pass = "b95e560e4a31ce20cd522f224932c080"

[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 48M
xcache.count = 2
xcache.slots = 8K
xcache.ttl = 7200
xcache.gc_interval = 300
xcache.var_size = 128M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 7200
xcache.var_maxttl = 14400
xcache.var_gc_interval = 300
xcache.test = Off
xcache.readonly_protection = Off
xcache.mmap_path = "anonymous"
xcache.coredump_directory = "c:/xCache/tmp"
xcache.cacher = On
xcache.stat = On
xcache.optimizer = On

[xcache.coverager]
xcache.coverager = Off
xcache.coveragedump_directory = ""

If I open phpinfo I can see that xcache is loaded and can see the settings, I have also installed the xcache admin panel and I am able to access that without problem.

However if I enable xcache on in the PHP scripts (vbulletin) file I get multiples of the following errors:

Quote:

Warning: xcache_isset() [function.xcache-isset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 557

Quote:

Warning: xcache_unset() [function.xcache-unset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 596

Quote:

Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 597

Now unless I am being thick, var_size is currently set to 128M, it was originally 4M but as the error suggested "too small" I upped it a little with no affect.

The only thing I can think might be related to this is that I am using PHP 5.2.6 and I am using xCache 1.2.2 for PHP 5.2.5 as there is no 5.2.6 version

View 3 Replies View Related

Remote Install Windows 2003 From CentOS?

Jan 8, 2009

manually install Windows 2003 std to a linux box ( CentOS 5.2 to be exact). The reason is my provider does not provide Windows or custom OS installation.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved