WordPress (or any other script) can automatically install during Virtualmin > Create Virtual Server.
Virtualmin automatically creates users, MySQL database, and installs WordPress in the public_html root, then gives a link to the WordPress Installer. You can even create a custom installer with a set of plugins and themes.
To create a custom script installer with plugins and themes:
- Download http://wordpress.org/latest.zip & unzip
- add some themes and plugins folders in /wp-content/
- zip as copy-of-latest.zip
- Create a copy of /usr/libexec/webmin/virtual-server/scripts/wordpress.pl
- edit copy-of-wordpress.pl to give a new name: script_wordpress_desc “Custom WordPress”
- link to your zip: ‘url’ => “file://localhost/path/to/copy-of-latest.zip”,
- Put copy-of-wordpress.pl in /usr/libexec/webmin/virtual-server/scripts/
- Virtualmin > System Settings > Server Templates > Default Settings > Default Script Installers
- Custom WordPress
If you want to have the script archive download from a protected web directory, that is also possible:
'url' => "http://repo.server.com/file-ver.zip", 'nocache' => 1, 'user' => "username", 'pass' => "password"
- virtualmin wordpress script installer
- virtualmin wordpress
- virtualmin script installers
- wordpress installer script
- virtualmin script installers download
- virtualmin install script wordpress
- Virtualmin script installer
- virtualmin and wordpress
- virtualmin install wordpress
- Unable to locate package webmin-virtualmin-nginx

Hi Chris, thanks for sharing this short article. I Will try this tips since it’s look more easier than what I usually do on my vps server and my local testing server. I usually download WordPress latest.tar.gz and extract it into ‘etc/skel/wordpress/public_html’.
I just know your blog and I think you have many posts that I can learned to improve my skill.
BTW, sorry if my English isn’t good. I’m Indonesian.
It’s very interesting, we are usually manual install in Webmin-Virtualmin.
Thanks
I have the script installed and it is working with the exception of getting my custom wordpress.zip file. for some reason the script continues do download from scripts.virtualmin.com… How do I force the script to download from a local site or directory?
Try changing line 151 to:
'url' => "file://localhost/path/to/mycustomwordpress.zip",You may want to read more about file URI scheme.
Hi
neat for use on a virtual server environment.
Could i also use this approach on a shared hosted environment such as hostgator.com?
Im not a coder but understand systems well.
Doubtful, this is specific to Virtualmin.
Hi Chris, thanks for letting me know.
A shame :-(
That brings up an interesting point: why pay for a control panel when you can use Virtuamin GPL for free. You should look into getting your own inexpensive VPS, installing Virtualmin GPL and learning more about Linux Systems Administration. If you want a very inexpensive and reliable VPS provider, try SemoWeb. Load up a supported 64-bit OS, then install Virtualmin GPL.
You will be surprised how easy it is to get up and running with Virtualmin, and if you have any questions, the Virtualmin forum is very helpful.
I have a couple of Pro licenses, so I have access to all of the script installers, so I like to copy and customize the script installers, which work even on Virtualmin GPL, which includes a few… like WHMCS and phpMyAdmin.
Steve, you would need to look into creating a customized Softaculous script for Cpanel… I do admin on a few Cpanel servers, but don’t really like them for several reasons… so have not yet done a custom Softaculous script… but it should be possible.
Hi,
Is this available only with Virtualmin Pro ?
Thanks
Script installers work with GPL as well. However, GPL only ships with a few scripts. But you can put any number of scripts in the installer folder, and copy and customize them if you like. The WordPress script is very handy indeed, I use it nearly every day.
I sort of cheat the system with Virtualmin… I have 2 Pro licenses, but I install a ton of GPL servers for my clients. So if they need script installers, I will install Pro, then downgrade it to GPL. Or just copy the necessary scripts from Pro to GPL.
Hi Chris,
Do you know of a place to download scripts for GPL users without a pro license? :)
Thanks,
TG
There’s no easy way to get the Pro script installers for free… buying a VM Pro license for 10 domains is pretty cheap and will get you all of the installers, which you can drop into GPL.
If you do a lot of server deployments, it’s well worth having at least 1 Pro license. Sometimes it’s easiest to install Pro, then downgrade to GPL so you get the benefit of more supported OS’s and the script installers. Doing this is unrestricted. Jamie & Joe probably would not approve, but there’s no technical roadblock to prevent you from using the Pro software keys this way.
Hi there would you mind letting me know which
webhost you are using? I’ve loaded your blog page in 2 completely different internet browsers and I have to say this web loads a lot quicker then most. Can you recommend a good hosting provider at a reasonable price? Thank you, I appreciate it! Please also excuse if my english is not good enough.
This site is self-hosted on Amazon Web Services.
I did everything as you described and ran the script to install wordpress, and it results in:
WordPress installation complete. It can be accessed at http://example.com/wordpress/wp-admin/install.php (example.com is the domain I’m running the script for).
When I try to click on the link above, it results in a 404 Not Found, The requested URL /wordpress/wp-admin/install.php was not found on this server, even though I see wordpress has been installed in public_html.
Any reason why I it doesn’t the wordpress install?
On Monday, I helped co-worker set up a VPS with CentOS 6, Virtualmin GPL, and Apache, installed this script, and had a wordpress site running, all in less than 30 minutes… so it’s not the script that’s at fault. Most likely, if you modified the script, you may have mis-typed something. Check your code changes? Let me know if I have mis-typed something?
Also,
file://localhost/path/to/copy-of-latest.zipneeds to use your own proper pathing (and point to an actual, valid WordPress installation file). See reply to X-ray, above, and accompanying link.…and if you can’t get file://localhost… to work for you, try http://domain.tld.com/my.zip and see if it works. If that does not work, try linking to the zip file linked from this post… it will work (though it installs WP 3.4.x).
…and be sure if/when you zip up your customized wordpress installer, you zip -r (recursive), and check to be sure you have the proper folder structure in your zip file.
Hi Chris,
Thank you for sharing the script, it works for me. Do you have similar .pl file for Drupal? Can you share it with us all, please?