Change directory from /var/www to /home/www

  • Hello ;


    It's normally possible but... Give me some minutes to test before.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;



    WARNING - You follow those instructions at your risks - WARNING

    As root user:


    Move the /var/www/virtual directory to new /home/www location (be sure to have enough space in /home before processing)


    Shell-Script
    1. # mkdir /home/www# mv /var/www/virtual /home/www


    Once it's done:

    • Change the USER_WEB_DIR parameter value from the /etc/imscp/imscp.conf file to /home/www/virtual
    • Change the FTP_HOMEDIR parameter value from the /etc/imscp/imscp.conf file to /home/www/virtual
    • Copy the changes to old file: # cp /etc/imscp/imscp.conf /etc/imscp/imscp.old.conf
    • Change the APACHE_WWW_DIR parameter value from the /etc/imscp/apache/apache.data file to /home/www/virtual
    • Copy the change to old file # cp /etc/imscp/apache/apache.data /etc/imscp/apache/apache.old.data
    • Edit the /etc/apache2/suexec/www-data file add the /home/www entry


    Once it's done, run the setup script (not the installer)


    Shell-Script
    1. # perl /var/www/imscp/engine/setup/imscp-setup -d


    Be aware that some others adjustments can be needed.


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Previous post has been edited.

    • Added suexec part


    BTW: Instructions given are only for /var/www/virtual... I'll create a full howto for moving the entire /var/www directory soon. ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello Nuxwin


    I have a Error when i run the setup script:



  • @ruv6000


    Not a bug coming from i-MSCP ;


    Try # apt-get install debconf --reinstall and then, rerun the setup script.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. # apt-get install debconf --reinstall


    I have try:


    Code
    1. Paketlisten werden gelesen... Fertig
    2. Abhängigkeitsbaum wird aufgebaut.
    3. Statusinformationen werden eingelesen.... Fertig
    4. Probieren Sie »apt-get -f install«, um dies zu korrigieren:
    5. Die folgenden Pakete haben unerfüllte Abhängigkeiten:
    6. python-numpy : Hängt ab von: liblapack3 soll aber nicht installiert werden oder
    7. liblapack.so.3 oder
    8. libatlas3-base soll aber nicht installiert werden
    9. E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt-get -f install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).
  • @ruv6000


    AGAIN: This is not not a problem that come from i-MSCP. Here, you have some package dependencies problems. You must update your distro first ( # aptitude dist-upgrade ) and then retry.


    Anyway, without further info, we cannot help you... Please follow the posting rules the next time, else your post will be deleted.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206