Extracting from WordPress downloaded file (latest.tar.gz) to custom name directory readable www-data ownership and ready to use.
git clone https://github.com/rayatiga/wordpress-extractor.git
Go to inside wordpress-extractor
directory
cd wordpress-installer/
Make makewpdir.sh
executable
chmod +x makewpdir.sh
Move to WordPress root directory (e.g., /var/www/html/
)
sudo mv makewpdir.sh /var/www/html/
Make sure file latest.tar.gz
is inside the WordPress root directory (check with ls
command)
Execute with sudo
or root
privileges
sudo ./makewpdir.sh