Duplicite website

Discussion in 'Installation/Configuration' started by Zack07, Aug 4, 2018.

  1. Zack07

    Zack07 New Member


    I am totally new in ISPconfig so sorry If i am asking wrong way.

    I have ISPConfig 3.0.5. and one server on it. I have a lots of websites on that server, all working on Wordpress.

    Is any chance how to duplicate (copy) one website and not always copying all dates via FTP?

    I mean for example I have aaa.com and I want same things on website bbb.com but with different database of course.

    Or maybe I was thinking maybe is any chance that after creating new website will automatically be installed wordpress system on it?

    Sorry if stupid questions :)

    Thank you :)
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no function to copy the content from one site to another one. But you can do that easily on the shell, much faster than ftp. In regard to installing WP in a website, you can do that with the ISPConfig APS installer.
  3. Zack07

    Zack07 New Member

    Thank you very much for quick reply.

    What please means: ,,You can can easily do that on the shell,"? :)

    Thank you for explaining:)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Steps to duplicate a website. , in this example I'll assume that the old site has the domain old.tld and the new site the domain new.tld:

    1) Create the website 'new.tld' in ISPConfig.
    2) Login to your server as root user and run:

    cp -prf /var/www/old.tld/web/* /var/www/new.tld/web/
    3) In the last step, you'll have to correct the ownership of the files. First, you need to know which user and group owns the. Go to the settings of the new website in ISPConfig and switch to the options tab, there you will see the Linux user and group. Linux user is something like 'web5' and the Linux group is something like 'client3'. I'll assume these values for my example command which has to be run as root user:

    chown -R web5:client3 /var/www/new.tld/web/*
    That's all. If the site contains a database, then you'll have to export that with phpmyadmin and import it into the new database, or you do that on the commandline as well with the mysqldump and mysql commands.
  5. Zack07

    Zack07 New Member

    Thank you for reply. I did step one and now i am stucked in step two. How i can login to server and where exactly i can put this code? :) Thank you for patience :)
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You need to learn how to use your server using the command line. I don't want to write forum posts long enough for that.
    Those lines are not code, they are commands you need to run.
    Ask from those that gave you this server and ISPConfig how you can log in as root.
    By the way, that ISPConfig version is very old. Consider updating it when you have time.

Share This Page