Tiny WordPress

Follow me!

If you like this article, go ahead and follow me on Twitter:

Follow @getButterfly

Tiny WordPress – tinywp.php – is a quick (but not dirty) PHP script which auto-installs WordPress on any host. Just upload it via (S)FTP and run it.

$n = basename($_SERVER['SCRIPT_NAME']);
copy('https://wordpress.org/latest.zip', 'wordpress.zip');

$b = new ZipArchive;

for ($i = 0; $i < $b->numFiles; $i++) {
    $f = $b->getNameIndex($i);
    $b->renameName($f, str_replace('wordpress/', '', $f));

$b = new ZipArchive;

header('Location: https://' . $_SERVER['HTTP_HOST'] . str_replace($n, 'wp-admin/setup-config.php', $_SERVER['REQUEST_URI']));

Use it when you have a slow (S)FTP connection or an SSH-only connection.

👋 Added by Ciprian on Tuesday, August 27, 2019 in Blog. Last modified on Friday, August 21, 2020.


Contribute to this article by sharing your opinion on Twitter:

Unlimited Automated Page Speed Monitoring & Tracking.
Use SpeedFactor to track your website. It’s simple and reliable.
See how real people experience the speed of your website. Then find (and fix) your web performance problems.
Get Started
Privacy Policy