Wordpress installation.

Discussion in 'ISPConfig 3 Priority Support' started by conductive, Apr 12, 2021.

  1. conductive

    conductive Member HowtoForge Supporter

    Now that the apps installer is not available what is the proper way to install Wordpress.

    I downloaded WP zip but ended up with the wrong permissions and am now having problems with installing plug-ins

    drwxr-xr-x 13 web1 client1 4096 Apr 3 11:16 plugins

    Not Correct:
    drwxr-xr-x 5 root root 4096 Apr 9 16:27 plugins
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Either you use an SSH user of the website, in this case, permissions are automatically correct. if you use the root user, then you must 'chown' the files to the correct user.

    Installing WordPress as root user:

    cd /var/www/domain.tld/web
    wget https://wordpress.org/latest.zip
    unzip latest.zip
    mv wordpress/* .
    chown -R web1:client1 *
    rmdir wordpress
    rm latest.zip
    web1 and client1 needs to be changed to the web user and client group of the site.
    Then open the domain of the site in a web browser and follow the instructions on the screen.
    conductive likes this.
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    or include wp-cli in your jailkit, then ssh into the server as the site owner.

    cd /web
    wp core download  
    wp config create --dbname=<database name> --dbuser=<database user> --dbpass=<database password>
    wp core install --url=<your_domain> --title=<Your_Blog_Title> --admin_user=<username> --admin_password=<password> --admin_email=<your_email.com>
    you can even specify the language/locale you want to download and install, use wp to create the database in mysql once the config is created, although you'd be better to create the database via ispconfig.
    or you could just stop at core download and then continue with installing wordpress through a web browser.

    you can even install and activate themes and plugins:
    wp theme install twentytwenty
    wp theme activate twentytwenty
    wp plugin install wordfence
    wp plugin activate wordfence
    ahrasis and Th0m like this.

Share This Page