Install WordPress Manually Using PHP

We know Wordpress is most popular CMS over the world. It's easy to use and for this reason, it's occupied edge. A person who don't know a single line of coding he can create a site using WordPress. In this article, I am going to show how to Install WordPress Manually Using PHP. Usually, we download WordPress and upload it to a server using cPanel. We need to download WordPress first then need to upload this to the server. But there is an easy way to Install WordPress without download and upload manually. I am Introducing you a simple PHP snippet whether that help you to skip the manual process and upload WordPress to your website automatically. This snippet will upload WordPress latest version and unzip this into your website into a WordPress folder. Let's see the snippet how to import WordPress.

Import WordPress Using PHP

Create a PHP file in your server and write down this code into this file.

$wpURI = '';
$file = '';

echo 'file imported successfully!<br/>';
echo '<a href="?extract=true">Extraact Now</a>';
echo 'file import error!';
$zip = new ZipArchive;
$res = $zip->open($file);
if ($res === TRUE) {
echo 'zip file extracted!';
} else {
echo '<a href="?import=true">Import WordPress</a>';

Install WordPress Manually Using PHP Video Tutorial

This snippet import WordPress latest zip file directly from and extract this into your server. A directory name as WordPress will create automatically. Now you need to configure this.

Now setup WordPress regular way. Connect your database and run the installer. I hope you already know how to install WordPress and you understand this. If you have any question or comment about this Install WordPress Manually Using PHP article please don't hesitate to do that, please comment your question in comment section.

Download Source Code
Unlock source code with a social share.

Did you like this article? it will be appreciated if you share a coffee or burger with the author

Sent $5 to the author
Sent $10 to the author

Need Assistance?

I'm Sajjad Hossain, working on web application development since 2012. Do you need assistance on your project? or are you stuck with problems? I am available to help you.
If you want to contact with me ping me at -


We use cookies on our website. To find out more about how and why they are used or opt-out, please read our Cookie Policy. By choosing "I Accept", you consent to our use of cookies. Cookie Policy