APS Installer?

Discussion in 'ISPConfig 3 Priority Support' started by Gaston Girardi, Nov 11, 2020.

  1. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Hi everyone, i update IPSconfig to version 3.2 and the seccion APS Installer does not exist anymore, but now i have a cliente that need wordpress :confused:.

    I never used the APS Installer section but it look very usefull, to add those package to the web site if you need it, so how can i add it to a site?!., there a guide or another tool to be able to do that in an easy way?...
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    We removed the APS installer as the project is dead. It is currently hidden and will be purged in the near future. I wouldn't advise to re-enable it as the installer uses outdated insecure packages and we don't fix bugs for in anymore.

    We are working on a new 1-click CMS installer, see https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5698

    I have written a simple bash script to quickly download WordPress and place it in the web folder of the client, if you want I can share that tomorrow when I'm in office.
     
  3. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    If you can that will be perfect, thank you so much.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Code:
    read -p "Client ID (without prefix): " clientid
    read -p "Web ID: " webid
    mkdir /var/www/clients/client$clientid/web$webid/web/tmp-at-wp
    cd /var/www/clients/client$clientid/web$webid/web/tmp-at-wp
    wget https://nl.wordpress.org/latest-nl_NL.zip
    unzip latest-nl_NL.zip
    mv  ./wordpress/* ../
    cd ../
    mv index.html index-standaard.html
    rm -r tmp-at-wp
    chown -R web$webid:client$clientid /var/www/clients/client$clientid/web$webid/web/*
    chmod 400 /var/www/clients/client$clientid/web$webid/web/wp-config.php
    WP-CLI is probably better though, but I haven't used it for installing: https://wp-cli.org/
     
    Gaston Girardi likes this.
  5. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Hi Th0m sorry for my late reply but i wasn't available for personal reasons, but now i'm ok up and running. :D:D

    I've used your script and works perfectly i only make one step because you dont have the wp-config.php file, the one that come is wp-config-sample.php, so i made a copy and change the mame.

    The thing is i've got in Dutch :confused: and i need it in Spanish or English, so there is a way to change just the lenguage?.

    Thanks for all.
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes, just change the file download url and unzip command:
    Code:
    wget https://nl.wordpress.org/latest-nl_NL.zip
    unzip latest-nl_NL.zip
    replace nl_NL with the correct country code (iirc recall correctly you can strip -nl_NL for english)
     
  7. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Thanks i did that, and i even got it in spanish, but i was asking because maybe there was a setting or something i could use to avoid the replacement of all the files.

    But you help me a lot, thanks you so much.
     
    Th0m likes this.

Share This Page