Академический Документы
Профессиональный Документы
Культура Документы
org
Codex Codex tools: Log in
Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!
Installing WordPress
Languages: English • Español • Deutsch • বাংলা • Français • Italiano • Nederlands • 日本語 • 한국어 • Português • Português do Brasil • Русский •
č Српски • ไทย • 中文(繁體) • (Add your language)
Sloven ina •
WordPress is wellknown for its ease of installation. Under most circumstances,
Contents
installing WordPress is a very simple process and takes less than five minutes to
1 Things to Know Before Installing
complete. Many web hosts now offer tools (e.g. Fantastico) to automatically install
WordPress
WordPress for you. However, if you wish to install WordPress yourself, the following
1.1 Things You Need to Do to
guide will help. Now with Automatic Upgrade, upgrading is even easier.
Install WordPress
2 Famous 5Minute Install
The following installation guide will help you, whether you go for the Famous 5 Minute
3 Detailed Instructions
Installation, or require the more detailed installation guide.
3.1 Step 1: Download and Extract
3.2 Step 2: Create the Database
Things to Know Before You Begin Installing WordPress
and a User
The Famous 5Minute Installation
3.2.1 Using Plesk
Detailed Installation Instructions
3.2.2 Using cPanel
Common Installation Problems
3.2.3 Using Lunarpages.com's
Automated Installation
custom cPanel (LPCP)
WordPress in Your Language
3.2.4 Using phpMyAdmin
Installing WordPress in Your Language
3.2.5 Using the MySQL Client
How to Install Multiple Blogs
3.2.6 Using DirectAdmin
How to Install on Your Own Computer
3.3 Step 3: Set up wpconfig.php
Easy 5 Minute WordPress Installation on Windows
3.4 Step 4: Upload the files
How to Install with Amazon's Web Services (AWS)
3.4.1 In the Root Directory
How to Install at Digital Ocean on Ubuntu 14.04 LTS
3.4.2 In a Subdirectory
Unattended (automated) installation of WordPress on Ubuntu 16.04 LTS
3.5 Step 5: Run the Install Script
Getting Started with WordPress (much more installation info)
3.5.1 Setup configuration file
3.5.3 Install script
Before you begin the install, there are a few things you need to have and do.
troubleshooting
4 Common Installation Problems
These are:
5 Automated Installation
5.1 Plesk WordPress Toolkit
Access to your web server (via FTP or shell)
5.2 Cloudron
A text editor
5.3 Fantastico
An FTP Client
Your web browser of choice 5.4 Installatron
5.5 Softaculous
Languages
Begin your installation by:
7 Installing Multiple Blogs
8 Installing WordPress on your own
1. Checking to ensure that you and your web host have the minimum requirements to
Computer
run WordPress.
8.1 Local Installation Instructions
2. Downloading the most current version of WordPress.
8.2 Software Appliance Ready
3. Unzipping the downloaded file to a folder on your hard drive.
toUse
4. Creating a secure password for your Secret Key
8.3 Unattended/automated
5. Keeping this webpage open so you have it handy during the installation.
installation of WordPress on
8.3.1 WAMP
Here's the quick version of the instructions for those who are already comfortable with 9 Installing WordPress at popular
performing such installations. More detailed instructions follow. Hosting Companies
9.1 Installing WordPress at
If you are not comfortable with renaming files, step 3 is optional and you can skip it as Atlantic.Net
wp-config.php file for you.
the install program will create the 9.2 Installing WordPress at AWS
9.3 Installing WordPress at
1. Download and unzip the WordPress package if you haven't already. DigitalOcean
2. Create a database for WordPress on your web server, as well as a MySQL (or 9.4 Installing WordPress at Linode
MariaDB) user who has all privileges for accessing and modifying it. 9.5 Installing WordPress at iPage
edit the file (see Editing wpconfig.php) and add your database information. 9.6 Installing WordPress at
4. Upload the WordPress files to the desired location on your web server: Microsoft Azure
If you want to integrate WordPress into the root of your domain (e.g. 10 Installing through wpcli
http://example.com/), move or upload all contents of the unzipped 11 Moving an Existing WordPress
WordPress directory (excluding the WordPress directory itself) into the root Blog
directory of your web server.
If you want to have your WordPress installation in its own subdirectory on your website (e.g. http://example.com/blog/),
create the blog directory on your server and upload the contents of the unzipped WordPress package to the directory via FTP.
Note: If your FTP client has an option to convert file names to lower case, make sure it's disabled.
5. Run the WordPress installation script by accessing the URL in a web browser. This should be the URL where you uploaded the
WordPress files.
http://example.com/
If you installed WordPress in the root directory, you should visit:
If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/
That's it! WordPress should now be installed.
Detailed Instructions
Step 1: Download and Extract
Download and unzip the WordPress package from https://wordpress.org/download/.
If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with a web browser
and unzip the package.
If you will be using FTP, skip Step 2 and go to the next step uploading files is covered later.
If you have shell access to your web server, and are comfortable using consolebased tools, you may wish to download WordPress
directly to your web server using wget (or lynx or another consolebased web browser) if you want to avoid FTPing:
wget https://wordpress.org/latest.tar.gz
Then unzip the package using:
The WordPress package will extract into a folder called wordpress in the same directory that you downloaded
latest.tar.gz.
solution to do so. Check your hosting provider's support pages or your control panel for clues about whether or not you'll need to
create one manually.
If you determine that you'll need to create one manually, follow the instructions for accessing phpMyAdmin on various servers, or
If you have only one database and it is already in use, you can install WordPress in it just make sure to have a distinctive prefix for
your tables to avoid overwriting any existing database tables.
Using Plesk
Note: Plesk recommends all users to install and manage WordPress using the WordPress Toolkit. However, if you wish to install
WordPress manually, follow these steps to create a database:
1. Log in to Plesk.
Databases.
2. In the upper right corner of the screen, click
3. Click Add Database.
4. Type in the database name.
Ok.
5. Type in the database user name and password, and then click
Connection info to see the information you will need to connect to the database
Once the database has been created, click
(database server hostname and port, database name, and the database user name).
Using cPanel
If your hosting provider supplies the cPanel hosting control panel, you may follow these simple instructions to create your WordPress
username and database. A more complete set of instructions for using cPanel to create the database and user can be found in Using
cPanel.
1. Log in to your cPanel.
Create User.
and the password you chose. (Note that hostname will usually be localhost.)
Lunarpages has developed their own version of cPanel.
1. Log in to your account.
2. Go to Control Panel.
3. Click on the button on the left panel labeled 'Go to LPCP'.
4. Go to MySQL Manager.
5. Add the user name and database name but leave the host name as the default IP number.
6. Note the IP address of the database on the right which is different from the default IP number of the host indicated in the above
step.
7. When modifying the wp-config.php file, use the DB IP number, not 'LOCALHOST'.
8. When modifying the wp-config.php file, be sure to use the full name of the database and user name, typically
'accountname_nameyoucreated'.
9. Refer to http://wiki.lunarpages.com/Create_and_Delete_MySQL_Users_in_LPCP for more info.
Using phpMyAdmin
If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database. If
you work on your own computer, on most Linux distributions you can install PhpMyAdmin automatically.
Note: These instructions are written for phpMyAdmin 4.4; the phpMyAdmin user interface can vary slightly between versions.
1. If a database relating to WordPress does not already exist in the Database dropdown on the left, create one:
1. Choose a name for your WordPress database: ' wordpress' or 'blog' are good, but most hosting services (especially shared
hosting) will require a name beginning with your username and an underscore, so, even if you work on your own computer, we
advise that you check your hosting service requirements so that you can follow them on your own server and be able to
your language, to choose "utf8mb4_general_ci" (Reference: [1]).
phpMyAdmin icon in the upper left to return to the main page, then click the Users tab. If a user relating to WordPress
1. Click the
does not already exist in the list of users, create one:
1. 1. Click Add user.
2. Choose a username for WordPress (' wordpress' is good) and enter it in the User name field. (Be sure Use text field: is
selected from the dropdown.)
3. Choose a secure password (ideally containing a combination of upper and lowercase letters, numbers, and symbols), and
4. Write down the username and password you chose.
You can create MySQL/MariaDB users and databases quickly and easily by running mysql from the shell. The syntax is shown below
and the dollar sign is the command prompt:
$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> EXIT
Bye
$
The example shows:
that root is also the adminusername. It is a safer practice to choose a socalled "mortal" account as your mysql admin, so that you
are not entering the command "mysql" as the root user on your system. (Any time you can avoid doing work as root you decrease
your chance of being exploited.) The name you use depends on the name you assigned as the database administrator using
mysqladmin.
wordpress or blog are good values for databasename.
wordpress is a good value for wordpressusername but you should realize that, since it is used here, the entire world will know it,
too.
hostname will usually be localhost. If you don't know what this value should be, check with your system administrator if you are
not the admin for your WordPress host. If you are the system admin, consider using a nonroot account to administer your
database.
password should be a difficulttoguess password, ideally containing a combination of upper and lowercase letters, numbers, and
symbols. One good way of avoiding the use of a word found in a dictionary is to use the first letter of each word in a phrase that you
find easy to remember.
If you need to write these values somewhere, avoid writing them in the system that contains the things protected by them. You need to
remember the value used for databasename, wordpressusername, hostname, and password. Of course, since they are already in (or
will be shortly) your wpconfig.php file, there is no need to put them somewhere else, too.
Using DirectAdmin
Random button that generates an 8character password. You may also add more characters to the password for maximum security.
Click Create. The next screen will summarize the database, username, password and hostname. Be sure to copy and paste these into
a text file for future reference.
please see Editing wpconfig.php.)
Return to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php, and
open it in a text editor.
Enter your database information under the section labeled
// ** MySQL settings - You can get this info from your web host ** //
DB_NAME
The name of the database you created for WordPress in Step 2.
DB_USER
The username you created for WordPress in Step 2.
DB_PASSWORD
The password you chose for the WordPress username in Step 2.
DB_HOST
The hostname you determined in Step 2 (usually localhost, but not always; see some possible DB_HOST values). If a port,
socket, or pipe is necessary, append a colon ( :) and then the relevant information to the hostname.
DB_CHARSET
The database character set, normally should not be changed (see Editing wpconfig.php).
DB_COLLATE
The database collation should normally be left blank (see Editing wpconfig.php).
Enter your secret key values under the section labeled
Save the wp-config.php file.
In the root directory of your website. (For example, http://example.com/)
In a subdirectory of your website. (For example, http://example.com/blog/)
Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating
systems. Check with your hosting provider or system administrator if you do not know where this is.
If you need to upload your files to your web server, use an FTP client to upload all the contents of the wordpress directory (but not
the directory itself) into the root directory of your website.
If your files are already on your web server, and you are using shell access to install WordPress, move all of the contents of the
wordpress directory (but not the directory itself) into the root directory of your website.
In a Subdirectory
If you need to upload your files to your web server, rename the wordpress directory to your desired name, then use an FTP client
to upload the directory to your desired location within the root directory of your website.
If your files are already on your web server, and you are using shell access to install WordPress, move the wordpress directory to
your desired location within the root directory of your website, and rename the directory to your desired name.
Note: If your FTP client has an option to convert file names to lower case, make sure it's disabled.
If you placed the WordPress files in the root directory, you should visit: http://example.com/wp-admin/install.php
If you placed the WordPress files in a subdirectory called blog, for example, you should visit: http://example.com/blog/wp-
admin/install.php
If WordPress can't find the wp-config.php file, it will tell you and offer to try to create and edit the file itself. (You can also do this
wp-admin/setup-config.php in your web browser.) WordPress will ask you the database details and write
directly by loading
them to a new wp-config.php file. If this works, you can go ahead with the installation; otherwise, go back and create, edit, and
upload the wp-config.php file yourself (step 3).
Finishing installation
The following screenshots show how the installation progresses. Notice that in entering the details screen, you enter your site title,
your desired user name, your choice of a password (twice), and your email address. Also displayed is a checkbox asking if you would
like your blog to appear in search engines like Google and Technorati. Leave the box checked if you would like your blog to be visible
to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors. Note all this
information can be changed later in your Administration Screens.
If you successfully install the WordPress, login prompt will be displayed.
If you get an error about the database when you run the install script:
Go back to Step 2 and Step 3, and make sure you entered all the correct database information into wp-config.php.
Make sure you granted your WordPress user permission to access your WordPress database in Step 3.
Make sure the database server is running.
WordPress installation, check out FAQ Installation and FAQ Troubleshooting.
1. Download wp-config.php (if you don't have shell access).
2. Open it in a text editor.
3. Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
4. Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace).
5. If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicodeenabled text editors do not
inform the user whether or not it adds a BOM to files; if so, try using a different text editor.
6. Save the file, upload it again if necessary, and reload the page in your browser.
My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.
<?php ?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be
If the
executed before the server sends the resulting HTML to your web browser. (That's why it's called a preprocessor.) Make sure your
web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider
or system administrator for assistance.
I keep getting an Error connecting to database message but I'm sure my configuration is correct.
Try resetting your MySQL/MariaDB password manually. If you have access to MySQL/MariaDB via shell, try issuing:
If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you
should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control
panel to reset the password for your database user.
I keep getting an Your PHP installation appears to be missing the MySQL extension which is required by
WordPress message but I'm sure my configuration is correct.
Check to make sure that your configuration of your webserver is correct and that the MySQL plugin is getting loaded correctly by your
webserver program. Sometimes this issue requires everything in the path all the way from the webserver down to the
MySQL/MariaDB installation to be checked and verified to be fully operational. Incorrect configuration files or settings are often the
cause of this issue.
If you use the Rich Text Editor on a blog that's installed in a subdirectory, and drag a newly uploaded image into the editor field, the
image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information
during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into
Automated Installation
Although WordPress is very easy to install, you can use one of the oneclick autoinstallers typically available from hosting companies.
The most popular autoinstallers, WordPress Toolkit, Cloudron, Fantastico, Installatron, and Softaculous are described here.
Custom this option enables you to select the desired WordPress version and tinker with the installation settings while still taking
care of all drudgery.
Note that you are still responsible for making sure that your domain meets the requirements for WordPress installation (for example,
that a supported PHP version is configured).
To perform a quick install, follow these steps:
1. Log in to Plesk.
WordPress.
2. In the upper right corner of the screen, click
Install > Install (Quick).
3. Click
4. The installation has started.
Log In to type your first post!
5. In a few seconds, the installation will be finished. Click
To perform a custom install, follow these steps:
1. Log in to Plesk.
2. In the upper right corner of the screen, click WordPress.
Install > Install (Custom) .
3. Click
4. In the opened Installation of WordPress window, select the desired WordPress version.
5. Fill in all the required fields (marked with an asterisk).
6. Make any changes you wish to the default settings and click Install once you’re done.
7. The installation has started.
Regardless of the installation type you chose, the WordPress Toolkit can make managing your WordPress installation easier. Read the
documentation for more information.
Cloudron
Cloudron is a smartserver on which you can install web apps like WordPress. You can install WordPress into a custom domain and
each installation gets a free SSL cert, is backed up and kept uptodate automatically.
Fantastico
1. Log in to your cPanel account and click on the Fantastico (or Fantastico Deluxe) option.
2. Once you enter Fantastico, on the left hand side there is a Blogs category under which you will find WordPress. Click on it.
3. Click on the New Installation link in the WordPress Overview.
Submit.
4. Fill in the various details and click
5. That's it, you are done!
Fantastico Home Page
Installatron
Installatron is a oneclick web application installer that enables WordPress and other top web applications to be instantly installed and
effortlessly managed. WordPress installations managed by Installatron can be updated (manually or automated), cloned, backed up
and restored, edited to change installation parameters, and more.
Many web hosting providers include Installatron through their web hosting control panel. If Installatron is not available from your
provider, you can use Installatron directly from Installatron.com.
Here's how to install WordPress through your web hosting provider's control panel:
option.
2. Change any of the install prompts to customize the install. For example, you can choose a different language for WordPress.
3. Click the Install button to begin the installation process. You will be redirected to a progress page where you can watch as
WordPress is installed within a few seconds to your website.
Here's how to install WordPress using Installatron.com:
database. For increased security, create a separate FTP account and MySQL/MariaDB database for your WordPress installation.
3. Change any of the install prompts to customize the install. For example, you can choose a different language for WordPress.
4. Click the Install button to begin the installation process. You will be redirected to a progress page where you can watch as
WordPress is installed within a few seconds to your website.
Installatron Home Page
Softaculous
1. Log in to your host and look for Software/Services.
2. In Softaculous, there is a Blogs category. Collapse the category and WordPress will be there. Click on it.
3. You will see an Install TAB. Click it.
4. Fill in the various details and submit.
5. That's it, you are done!
Softaculous Home Page
Clone a WordPress Blog Clone existing installations in a minute with this simple bash script for Linux.
Installing WordPress locally is usually meant for the purpose of development. Those interested in development should follow the
instructions below and download WordPress locally.
AMPPS: Free WAMP/MAMP/LAMP stack, with inbuilt Softaculous Installer. Can 1 click install and upgrade WordPress and others
as well.
DesktopServer Limited: Free Windows/Macintosh server, creates multiple virtual servers with fictitious top level domains (i.e.
www.example.dev) specifically for working on multiple WordPress projects.
Mac App Store 1click install for WordPress Installs a free, selfcontained allinone bundle of WordPress and everything it needs to
run: MySQL/MariaDB, Apache and PHP
Installing WordPress Locally on Your Mac With MAMP
User:Beltranrubo/BitNami Free allinone installers for OS X, Windows and Linux. There are also available installers for WordPress
Multisite User:Beltranrubo/BitNami_Multisite using different domains or subdomains.
Instant WordPress is a free, standalone, portable WordPress development environment for Windows that will run from a USB key.
combination with virtual machine software (e.g., VMWare, VirtualBox, Xen HVM, KVM).
Another software that can be used is Parallels, which you would have to pay for unlike virtual machine software. It allows you to run
both Mac and Windows on your machine.
A software appliance allows users to altogether skip manual installation of WordPress and its dependencies, and instead deploy a
selfcontained system that requires little to no setup, in just a couple of minutes.
TurnKey WordPress Appliance: a free Debianbased appliance that just works. It bundles a collection of popular WordPress plugins
and features a small footprint, automatic security updates, SSL support and a Web administration interface. Available as ISO,
various virtual machine images, or launch in the cloud.
BitNami WordPress Appliance: free WordPress appliances based on Ubuntu or Open Suse. Native installer and Cloud images also
available. There are also virtual machines for WordPress Multisite already configured.
UShareSoft WordPress Appliance: free WordPress appliance for many of the major virtualization and cloud platforms (Cloud.com,
Xen, VMware, OVF, Abiquo)
You can follow this guide by copy & pasting commands in a terminal to set up WordPress on a fresh Ubuntu Server 16.04 installation
with nginx, PHP7, MySQL plus free SSL from LetsEncrypt.
You will not be prompted to enter any credentials or details like in other guides, everything is automated. You can even skip the
installation wizard.
WAMP
If you don't have IIS on your computer or don't want to use it, you could use a WAMP Stack :
WAMP Server or WAMP Server at SourceForge
AMPPS WAMPStack has Softaculous WordPress Installer
EasyPHP Has WordPress installer plugin
BitNami WAMPStack Has WordPress stack
XAMPP WAMPStack
These stacks can be downloaded freely and set up all the bits you need on your computer to run a website. Once you have
downloaded and installed WAMP, you can point your browser at localhost and use the link to phpmyadmin to create a database.
Then, in order to install WordPress, download the zip file, and extract it into the web directory for your WAMP installation (this is
normally installed as c:\wamp\www). Finally visit http://localhost/wordpress to start the WordPress install. (Assuming you extracted into
c:\wamp\www\wordpress).
Tip: If you want to use anything other than the default permalink structure on your install, make sure you enable the mod_rewrite
module in WAMP. This can be enabled by clicking on the WAMP icon in the taskbar, then hover over Apache in the menu, then Apache
modules and ensure that the rewrite_module item has a checkmark next to it.
You can also install WordPress on Ubuntu with one click WordPress Hosting on Atlantic.Net.
and Installatron's WordPress management tools.
Architecting a Highly Scalable WordPress Site in AWS A guide for building a more expensive, highly scalable AWS implementation
using Amazon's Relational Data Store (RDS) et al.
You can also install WordPress on Ubuntu with one click using this StackScript on Linode.
In less than 5 minutes from now, you will have your blog ready on your domain. You will install WordPress on your own domain as an
Automated Process with ONE Click WordPress Installation feature from iPage hosting.
configured, so you're ready to start creating within a matter of seconds.
Running into some issues and need to troubleshoot your WordPress site on Azure? Follow this handy Troubleshooting guide for
WordPress on Azure
There is a full listing of resources on how to learn more about WordPress on Microsoft Azure!
Migrating a WordPress blog to Amazon. A technical tutorial on moving your WordPress blog to Bitnami's AWS configuration.
Categories:
Installation
Getting Started
Troubleshooting
UI Link
Home Page
WordPress Lessons
Getting Started
Working with WordPress
Design and Layout
Advanced Topics
Troubleshooting
Developer Docs
About WordPress
Codex Resources
Community portal
Current events
Recent changes
Random page
Help
Matt
Mi piace 1,1 mln
Privacy
+10000
License / GPLv2