what is the best way to instal wordpress.

Discussion in 'ISPConfig 3 Priority Support' started by conductive, May 15, 2023.

  1. conductive

    conductive Member HowtoForge Supporter

    We used to have web apps to install Wordpress.
    What is the best solution now?
    If i simply download latest.tar.gz and extract it is likely that I will have some permission problems.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Simply download it using a shell user of the website or upload it using a FTP user of that site. If you are using root user instead of a shell or FTP user of that site, then you must chown all files and folders inside the "web" folder to the webID user and clientID group of that website. But as long as you use a SSH or FTP user f the site, this chown is not needed and permissions will be correct out of the box.

    That's not the case on ISPConfig servers.
     
    Last edited: May 15, 2023
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    if you have wp-cli installed, ssh in as the website owner and use that.

    you could even create a little script to use it. eg...
    Code:
    wp core download
    wp core config --dbhost=127.0.0.1 --dbname=c2demo1 --dbuser=c2demo1 --dbpass=demo1pass
    wp core install --url=demo1.local --title="site title" --admin_name=<name> --admin_password=<password> --admin_email=<[email protected]>
    
    or to avoid typing a password on the cli....
    Code:
    wp core install --url=demo1.local --title="site title" --admin_name=<name> --admin_email=<[email protected]> --prompt=admin_password < admin_password.txt
    
    you could even script it to ask you for required details... owner email, site name, db host, user & pass. etc..
    assuming you've already created the db and db user for it.. otherwise you could also script it to create those via the ispconfig api.
    then all you have to do is upload the script to the site and run it as the site owner..
     

Share This Page