Posts by Jake-GR

    Thanks for the info.


    I really don't know how to go about setting up a listener. So I symlinked the htdocs to another folder in it's root area that vuXXXX has access to, and used .htaccess to redirect/rewrite to another symlink that has the correct permissions.


    If you were curious about why I needed this, is that this particular site is updated by a Source Code Management program (like GitHub). So when there are changed pushed, it updates the live site without having to manually upload there.

    So I have a site that is using a symlink'd folder to another location. More accurately the htdocs folder is a symlink to another folder under the /home directory. When I change the owner of the symlink, everything works. However, when there is any kind of update to the imscp control panel, the ownership of that symlink is reverted back to vuXXXX and the symlink no longer works. I have also tried a structure of /var/www/vir..../htdocs/link thinking it was just the htdocs folder. This did not give the results as intended, as any update causes any file or folder to be reverted to vuXXXX.


    My question is this, is there a way to prevent imscp from reverting the ownership of the file/folder, or possibly an alternative solution to accomplish this?


    Thanks in advance!


    [edit]
    I know I'm using an out-dated version (1.1.18), so if upgrading is the solution that would be fine. I have just been really paranoid about upgrading with some of the changes, and that this is a "live" server.

    Thank you FISA4 and MR_LOLKOPF, your information helped me enough to get this completed successfully without any headaches! I have also updated my first post with the exact steps along the way in case someone else needs the same information.

    Thanks for the response, I will give this a go as soon as I am able to connect to my old server for more than 5 seconds :(


    As for "export databases" I have seen some posts talking about migrating over /var/lib/mysql directly, would that be a way to export them all?

    So I have been finding some information in other/older posts but most are for migrating from ispcp or other versions of imscp. What I am looking for is more of a "comprehensive" guide for migrating to a new server (fresh server, no unix users, different ip/hostname). I have seen scattered info about nullifing admin-related fields, but not entirely sure what that means etc...


    For this I would be transferring to a new datacenter, the version of Debian would be different, but the version of imscp would be the same (1.1.18).


    Any help would be greatly appreciated, I may just be over-thinking how to do this, but as this is a production-level system I really do not want to mess up my client login information or their sites.


    So with the help of the following posters and some information from other threads these are the steps I did to migrate to a new server:

    • Setup new server
    • Install i-MSCP on new server
    • Export database from old server
      Code
      1. mysqldump -u root -p --all-databases > alldb.sql
    • Import database on new server
      Code
      1. mysql -u root -p < alldb.sql
    • Copy password for the "debian-sys-maint" user in /etc/mysql/debian.cnf
    • Copy over /var/www/virtual, /var/www/fcgi, and /var/mail from older server
    • Setup database for new user creation
      Code
      1. # mysql -u root -p<password>> use imscp;> update domain set domain_status = 'ok';> update subdomain set subdomain_status = 'ok';> update domain_aliasses set alias_status = 'ok';> update subdomain_alias set subdomain_alias_status = 'ok';> update mail_users set status = 'ok';> update admin set admin_status = 'ok', admin_sys_name = null, admin_sys_uid = 0, admin_sys_gname = null, admin_sys_gid = 0;


    • Replace old ip with the new in imscp-database
    • Update IPs for i-MSCP on new server
      Code
      1. /var/www/imscp/engine/setup/imscp-setup --reconfigure ips
    • Update MySQL for i-MSCP on new server
      Code
      1. /var/www/imscp/engine/setup/imscp-setup --reconfigure sql


    I setup my server with the Numeric ID as a Suffix (behind). Then I got some stuff setup, and other clients have been working on their sites. I didn't notice, but I actually wanted the Numeric ID to be a Prefix (in front) instead.


    Is there a way to swap that for future items that are created (like databases/users), even if the existing ones keep the suffix, that would be fine.

    Looked for more information on this, but havent seen anything (or know where to look).


    I have been having issues with my current server host, and want to migrate to another server. So was looking around for some information on how this could be done (relatively easy).


    Basically looking for the easiest/quickest way to copy my entire setup (including data/email/etc to my new server). I do know of the imscp-setup --reconfigure ips command to get that working, its the data part im unsure of.