is this possible

16 posts / 0 new
Last post
#1 Tue, 06/14/2011 - 07:27
phillip1983

is this possible

i have a name server NS2 but i want to rebuild this on a new box, im thinking of :

Install Centos on new box configure the networking the same as NS2 download install Virtuialmin, restore webmin backup from NS2 then restore Virtualmin Backup of NS2 to the new server shutdown old NS2 server, new server should then be up and running as NS2 ?

Tue, 06/14/2011 - 09:27
andreychek

Yup, that sounds about right.

Instructions for performing a migration of a Virtual Server are available here:

https://www.virtualmin.com/documentation/system/migrate

Tue, 06/14/2011 - 10:45
phillip1983

so acording to that document i dont have to back up the webmin part and restore the back up to the new server only the backup and restore of the virtualmin part ?

Tue, 06/14/2011 - 10:53
andreychek

Well, to clarify -- if you made changes to Webmin settings, you would want to copy those over as well.

The Virtual Server backup/restore only handles Virtualmin settings.

So, you have a good point, you'd want to restore those Webmin settings too :-)

Though, if you're changing distros -- note that not all Webmin settings can move cleanly from one distribution to another.

I'm actually in the midst of doing some testing on Webmin settings, and will work on adding that component to the migration instructions over the next few days :-)

-Eric

Tue, 06/14/2011 - 12:23
phillip1983

ok cool... i just restored the webmin setting first from a back up i took from the other system and got PID error... i have restarted the box and also now restored the Virtualmin settings and again restarted and all seems fine with the box... though i will test it somemore ...

any idea about the PID error ....

also i only use CentOS 5.5 32 BIt as i dont like the 65 Bit version and some ftp stuff dont work correctly ...

Tue, 06/14/2011 - 12:27
andreychek

Well, we can help, but you'll need to tell us the full errors that you're seeing there :-)

As far as FTP goes -- FTP should work on both 32bit and 64bit systems. Let us know exactly what symptoms you're seeing, including any error messages, and we'll try to help.

-Eric

Tue, 06/14/2011 - 14:43
phillip1983

the error i get when i restore from a web min back on a fresh install from another system is

Restore failed : Incorrect Webmin PID 3230

how what i do is restore the Webmin back up, restart the server, restore the virtualmin backup, restart the server and all seems fine... but i am checking stuff...

Tue, 06/14/2011 - 15:24
phillip1983

ok i have built the new server imported the webmin backup and virtualmin backup and apache will not start now i get the error

Failed to start apache : Starting httpd: Syntax error on line 1011 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/DOMAIN.COM/fcgi-bin/php5.fcgi(/home/DOMAIN.COM/fcgi-bin/php5.fcgi), errno: 13

though if i look in the dir i see the file and the contense its moaning about ... any ideas to fix this ?

Tue, 06/14/2011 - 15:31
andreychek

Hmm, that's an unusual error.

One thing you might try is to go into Server Configuration -> Website Options, and to set your PHP Execution Mode to something else... perhaps CGI.

After that, are you able to start Apache?

If so, then you can either try changing that back to FCGID, or you can just leave it at Apache.

-Eric

Tue, 06/14/2011 - 15:51
phillip1983

ok if i change it to CGI and then start apache everything is fine.... if i change it to FastCGI then restart apache it fallso ver with the same error ...

i have also tried deleting the Virtual server and creating it from scratch and still dont like it ....

Tue, 06/14/2011 - 21:33
andreychek

What output do you see if you run this command:

ls -la /home/DOMAIN.COM/fcgi-bin/

I'm curious if you're seeing a permissions issue of some sort...

-Eric

Wed, 06/15/2011 - 05:10
phillip1983

ok i have done some testing (lots of coffee and redbull!!!) and virtualmin phpcgifast does not seem to like running in a XenServer centos5.5 32bit installation

testing:

i have setup a virtualbox on my computer with virtualmin installed and centos5.5 32bit created a domain stopped apache and started it and all works no problems i set up a domain restarted apache and all was fine output of ls -la of the testdomain folder :

[root@ns2 ~]# ls -la /home/testssssss/fcgi-bin/ total 12 drwxr-xr-x 2 testssssss testssssss 4096 Jun 15 10:39 . drwxr-x--- 13 testssssss testssssss 4096 Jun 15 10:39 .. -rwxr-xr-x 1 testssssss testssssss 161 Jun 15 10:39 php5.fcgi [root@ns2 ~]#

i set up a XenServer installation of centos 5.5 32bit virtualmin did the same thing created a domain stop apache and restarted it and i got the same apache error about cgi, ls -ls output below

[root@ns1 ~]# ls -la /home/test/fcgi-bin/ total 24 drwxr-xr-x 2 test test 4096 Jun 15 10:21 . drwxr-x--- 11 test test 4096 Jun 15 10:21 .. -rwxr-xr-x 1 test test 161 Jun 15 10:21 php5.fcgi [root@ns1 ~]#

both machines where configured the same side by side and apart from the IP address and host name being differantthe configuration of both Centos 5.5 and virtual min are defaul, not other options entered.

so does this mean that apache has some problem with Xenserver?????

my plan was to have 2 NS servers on Xenserver configured with some domains .... could you see whats going on ... if you need 2 test boxes i have set up please ask...

Wed, 06/15/2011 - 12:49
phillip1983

ok this is strange i have just switched my virtualbox machine on on that had a perfect config and fcgid is not working on this eithernow and i have done noting to this box ... i have had a look around and in the apache config i can not see any referance to mod_fchid or anything like that ...

help.....????

Wed, 06/15/2011 - 12:58
andreychek

Yeah, I'm not sure what's going on, the problems you're describing are pretty atypical. I can't think of a reason why the VPS type you're using would cause that sort of trouble. Any userspace application should run just fine, whether it's Virtualbox or Xenserver shouldn't matter.

The only thing I can think of is that some folks do run into really strange issues when there isn't enough RAM allocated to the guest... how much RAM do you have there? You can determine that by running the command "free -m".

As far as FCGID configuration goes -- FCGID on CentOS would normally be configured in the file /etc/httpd/conf.d/fcgid.conf.

-Eric

Wed, 06/15/2011 - 15:45
phillip1983

ok so i downloaded centos 5.3 32 bit and used the templete in xenserver to install centos i have installed xs tools, installed virtualmin created a test domain restarted apache and got the same error... i gave the vm 1.5gb ram and free theres 794MB free...

Thu, 06/16/2011 - 04:24
phillip1983

ok i have now installed a fresh box but using Ubuntu 10.4 Server LTS 32 Bit with the same paramiters as i did with centos and FCGID works fine... this is in a XenServer VM with 512MB ram i uploaded a restore of a domain that had the FCGID errors restarted the box set the website options thing to CGI restarted Apache, then set it back to FCGId restarted apache and all worked fine, so if there a problem with FCGI on Centos 5.5 32 Bit ?

Topic locked