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
ADVERTISEMENT
Apr 8, 2009
I managed to install xcache on my Centos 4.5 server.
Xcache is shown in my phpinfo, but I think there's problem since php -v gives me following error, I don't have a clue how to fix this. See attached images.
I tried several different configurations in xcache.ini, but all with this same result.
It seems that this error doens't occur always.
PHP Warning: Module 'XCache' already loaded in Unknown on line 0
/dev/zero: No space left on device
Failed creating file mappping
PHP Fatal error: Failed creating file mappping in Unknown on line 0
PHP Fatal error: XCache: Cannot create shm in Unknown on line 0
PHP 5.2.9 (cli) (built: Mar 10 2009 16:30:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
Segmentation fault
View 9 Replies
View Related
May 3, 2009
I recently migrated my server from a CentOS VPS to a dedicated Windows Web Server 2008 machine.
Since the migration I have noticed some "odd" behaviour with xcache:
When I open the xcache admin panel I can see the hit counts for the var/php caches, under the CentOS server these values just went up and up into the high millions until the server or Apache was restarted.
Under Windows the hit counts never gets higher than around 6000, typically when I open the xcache admin panel I click on "statistics" a few times to make sure everything is incrementing as normal, however since the server move these get to around the 6k mark and then drops back down to sub 100 and start again.
I have also noticed that if I make changes in the PHP application running on the site (vBulletin) the changes are not reflected immediately and can sometimes take 30 seconds to "come through", this is a behaviour I never saw under CentOS
If this just a quirk of windows, or something I should be looking into further?
View 4 Replies
View Related
Nov 9, 2009
The issue I'm having is I want to use Xcache, the php opcode cache for PHP
I've installed it and it works fine, except it only works on ONE domain
I've made sure all domains work in the shard IIS pool, I've also tried copying the PHP.ini file to the domain's httpdocs folder, incase it needs it, but it still won't work
When loading www.thedarkages.info, I get this spammed across my screen
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
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
But on this site - www.uoforums.net - There is no error and that forum is using XCache without issue
I've tried increasing the var_size to a higher limit, but it doesn't have any effect.
PHP is running in FastCGI mode right now, I tried setting it to ISAPI mode, but it still threw back the same error
View 0 Replies
View Related
Dec 31, 2014
For some reason I am receiving nginx errors after migrating all sites to a new plesk server. It seems only the default permalinks are allowing the websites to work, but custom permalinks aren't working.
Error page below.
Not Found
The requested document was not found on this server.
View 16 Replies
View Related
Nov 28, 2007
We regular see the following errors in our CentOS 5 64-bit and 32-bit (the 32-bit has less errors, but all the same - dealing with prelinking):
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/sbin/lsof: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/addr2line: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/ar: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/as: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/c++filt: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/gprof: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/ld: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/nm: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/objcopy: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/objdump: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/ranlib: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/readelf: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/size: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/strings: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/strip: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /sbin/chkconfig: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/sbin/alternatives: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/basename: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/cat: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/chgrp: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/chmod: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/chown: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/cp: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/cut: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/date: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/dd: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/df: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/echo: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/env: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/false: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/link: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/ln: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/ls: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/mkdir: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/mknod: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/mv: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/nice: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/pwd: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/rm: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/rmdir: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/sleep: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/sort: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/stty: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/sync: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/touch: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/true: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/uname: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /bin/unlink: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /sbin/runuser: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/[: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/base64: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/chcon: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/cksum: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/comm: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/csplit: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/dir: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/dircolors: at least one of file's dependencies has changed since prelinking
prelink: /lib64/libc-2.5.so has a dependency cycle
prelink: /usr/bin/dirname: at least one of file's dependencies has changed since prelinking
How can we fix these errors or otherwise remove them?
View 0 Replies
View Related
Apr 12, 2015
OS CentOS 6.5
Panel version 11.5.30 Update #50
Tried migrating a site from a much older server. The migration never completed, so it was aborted and all the migration files deleted. Now, I'm getting the following error on the Plesk Home page:
=================
New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 319 of /etc/httpd/conf/plesk.conf.d/roundcube.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/webmails/roundcube/xxxxxxxxxxx.com_webmail.conf: No such file or directory . The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
=================
Clicking either of the 2 available options (links) does not resolve the issue. How to clear this error?
View 2 Replies
View Related
Apr 17, 2008
from Windows 2000 and II5. Painless?
Does IIS7 fully supprot ASP NET 1.1 applications?
View 1 Replies
View Related
Mar 16, 2007
We primarily work with unix servers and are new to the windows hosting. We have have a client with a large site moving from a shared account to a vps account on another host.
The shared account is on a server run by a local company and any type of login could probably be gotten for that host. And the other is a VPS so essentially functioning like dedicated.
Is there a way to transfer server to server instead of server to local to server? The equivalent of SSHing files from server to server on Unix?
View 3 Replies
View Related
Mar 26, 2015
I moved from one.com where my domain was hosted to strato, where I have a Windows Server 2012 r2 running Plesk 12.The problem is that wordpress is not working properly.one of my installations is accessable, the other isn't!The one that I can access, is working so far, as soon as I install a plugin for price tables and insert the shortcode to one of my pages, I get an "500 Internal Server Error". When I'm doing that on the server I'm seeing this error: "...httpdo cswp-contentpluginspricing-table able-templates td-grayprice_table.php on line 22"
As soon as I remove it and do it with another one, I get an error with an other file!So I guess the problem is not Wordpress but some missing php features, right?Do I need to activate or install some php extensions?
View 2 Replies
View Related
May 23, 2008
to migrate some Windows 2000 and Window 2003 server from 1 IDC to another. Wonder what is the easiest way to change all the IPs in the IIS?
View 2 Replies
View Related
Jul 15, 2015
I had some question about the migration tool : My task is to migrate a domain from a server with plesk 9 version to another server with plesk 12 version.
1. Does the migration includes the ftp accounts contained in the domain ?
2. During the migration can users from the plesk 9 server still connect to the ftp server and continue working on it ?
View 1 Replies
View Related
Oct 10, 2014
I just finished to migrate my Plesk 10.5 to 12 and everything is great now.
I just have a little problem with SMTP authorization.
This option, if i'm not doing something wrong, is located on Mail Settings and especially in the section "Relay options". I ticked "authorization is required" and "SMTP".
But when I try to check it on my email client, I can send emails with or without the the SMTP authorization option on the email client.
View 2 Replies
View Related
Nov 16, 2014
While attempting to migrate from previous version of Plesk Panel Windows to current (Windows 2012 R2 with Plesk Panel 12) version, following error appears which stops PMM to proceed further.
Error: [Errno 2] No such file or directory: 'C:ParallelsPleskPMM
sessions20141117102120197capability_info'
This error is generated for all subscriptions which we are trying to migrate and above file can indeed be confirmed missing.
View 7 Replies
View Related
May 6, 2014
I started a migration from HELM3 to Plesk 11.5 for a client.After 12 hours it failed.the error log says ERROR:()Unable to download dump files to local store.
ERROR:()You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name no other server with this hostname or workgroup exists on our network?
View 3 Replies
View Related
Jan 24, 2014
I have Plesk 11.0.9 From Godaddy.
I have a problem in PHP Errors Log/Display in PHP 5.4.15 FastCGI
In my configuration "C:Program Files (x86)ParallelsPleskAdditionalPleskPHP54php.ini"
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
In my Plesk Web Panel Settings For the domain
error_reporting 32767 <- For 5.4.x
display_errors on
log_errors on
I made a PHP error in test file
Code:
<?php
echo eeeee;
?>
It should give me error in line 2 [ Display & Log ] the error. but it don't do anyone of them it gave me 500 Internal Server Error and it's not logging the error to the directories
C:inetpubvhostsDomain.comstatisticslogs
OR
C:Program Files (x86)ParallelsPleskadminlogsphp_error.log
C:Program Files (x86)ParallelsPleskadminlogsphp_error.log <--- Successfully logging Errors Like
[14-Dec-2013 13:12:07 UTC] rrdtool execution failed: ERROR: fetching cdp from rra
But don't logging the websites errors....
View 1 Replies
View Related
Dec 30, 2014
Is it possible in migration manager set a non default RDP port?
View 1 Replies
View Related
May 5, 2013
I'm trying to migrate a server that has the version 10 to another server with version 11.
When I run the migration manager, I get the message "IP Address not found '.
Both teams have the same type of IP, exclusive.
View 2 Replies
View Related
Feb 27, 2015
I recently realized that domainkeys headers are not added to mail messages that are generated on our server. We are using MailEnable Enterprise 8.60 (upgraded on the Stardart edition, that is installed with Plesk).
I thought the problem could be related with this upgrade and created a new VM and tried that out. Installed Windows Server 2012 R2 Std, enabled DNS and IIS with ASP.NET versions, applied all updates, installed Plesk 12 and Upgraded to MailEnabled Enterprise. On the new server mails are going with the correct domainkeys headers.
Now I think that the problem was generated because of the Migration. On the old server Plesk 11.5 was installed and we didn't have any domainkeys issues. When we created our new server, with the same steps I wrote below, and migrated our backup to the new server, domainkeys headers weren't there anymore.
I couldn't find any documentation about this issue. Is there any commands to reset the settings related to domainkeys or may be it's a curruption in the psd database?
View 1 Replies
View Related
Apr 27, 2015
When I try to migrate from plesk 11.5 to Plesk 12.0 appears this error "Backup has wrong signature. Restoration prohibited" and migration is not performed . The Plesk 12.0 is a new installation in a new Windows 2012 R2 server.
View 3 Replies
View Related
Dec 22, 2014
After a server migration, some critical Plesk settings were not copied across, even though the option to backup/restore panel configuration was used. e.g.
skeleton (vhosts.skel folder)
php.ini (Program Files (x86)ParallelsPleskAdditionalPleskPHP5* folder)
Default site (vhostsdefault folder)
health config (Program Files (x86)ParallelsPleskadminconfcustom-health-config.xml)
Additional Administrator accounts
Is there a way to get these things to backup and restore that I am doing wrong?
Are there other important settings/data that I have missed from that list? I am still paying to keep the old server in case I discover something else!
Using Plesk Backup & Restore for disaster recovery will lose these settings unless they take extra steps. e.g. I now have a simple batch file that copies these files to a private folder on one of the domains before the daily backup kicks in.
View 1 Replies
View Related
Oct 10, 2014
When I try to reset the Personal FTP Repository setting in Backup Manager, I get "Transport error: unable to list directory: Curl error: Failure when receiving data from the peer"
I've read a solution to this issue for Plesk for Linux, but not for Windows. I have my FTP server setup for FTPS (require explicit FTP over TLS) and when I put the correct information in each box, I get this error. In the meantime, the current settings (for standard FTP) are incorrect.
Obviously the most important this is to correct the Transport and Curl errors, but if I'm unable to do so, how do you clear the current setting? There doesn't seem to be a way to do it...
View 2 Replies
View Related
Oct 18, 2013
I'm migrating from Plesk 9.5 to 11 and I'm getting the following on my Transfer Pre-Check from within the Migration Manager."The destination DNS server does not support networks in the Transfer Restrictions Template, but some subscriptions have networks in DNS transfer restrictions. The records with network IP addresses in the DNS transfer restrictions will not be restored."
I've gone to Server, DNS Settings, Transfer Restriction Template and added the new server's IP to the list of allowed networks to no avail. I also couldn't find any documentation on what the cause might be.
View 1 Replies
View Related
Jan 23, 2015
We are migrating an existing multi-site Windows2003/IIS6 web hosting system with
CFusion8
MS Access backend databases
SQL2000 backend databases
http and https site access
to
Windows2012 R2/IIS8.5 with
CFusion10
MS Access backend databases (not updated)
SQL2014 databases
http and https site access
On the new system we are looking to add Plesk12 to give users easier management of their own websites.I am about to install the trail version of Plesk12 WebHOST.I have the following questions:
1. Can we use the plesk migration tool to move the websites from the old IIS6 to the new IIS8.5 server?
2. If not, am I right to think we would migrate from IIS6 to IIS8.5 manually and then import these websites into Plesk12 from the new server?
3. Can I migrate the existing websites piecemeal over onto the new server and into the Plesk control panel at the same time as creating brand new websites under the control panel?
4. Once Plesk is installed on the new IIS server is there a KB article on how to add all these existing websites to Plesk - I could not find one.
5. Is the local windows administrator account used for the install used to run any services?
View 9 Replies
View Related
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
Feb 13, 2007
I'm noticed I was getting bounced email errors from a company I was sending email through and I further investigated this by running a dnsreport on my domain.
Turns out that it fails at Acceptance of NULL <> sender, Acceptance of postmaster address, and Acceptance of abuse address. The domain that I ran a test on is using a new IP that I had recently added to my Direct Admin server. None of the other domains on my server are having issues like this.
Is is possible that I need to do something to enable these new IP addresses in exim? I mean, exim obviously responds to that IP address, but it seems to be having some issues with it.
View 5 Replies
View Related
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
Apr 3, 2009
Almost all dedicated server providers offer windows 2003 server free. Any suggestions to choose one way or the other?
Any major limitations either of these cases? I never worked on linux before, have basic experience on unix though.
Please compare reliability, resources (if problems) in terms of cost, extendability, etc.,
Does cPanel support windows?
I am thinking of limestone 8gb Q9300 server (64bit) with their 30% off deal.
View 14 Replies
View Related
Feb 15, 2009
if i can create 2 VPS with completely different OS such as CentOS5 and Windows 2003 Std.
The main server will be running CentOS with HyperVM.
View 8 Replies
View Related
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
View Related
Mar 30, 2009
if anyone has run any tests or if there is a way to tell one of the other. I would like benchmark test them, just not sure how.
View 2 Replies
View Related