Skip to content Skip to sidebar Skip to footer

How to Upload Word Press to an Existing Domain

Topics

  • Things to Know Before Installing WordPress
  • Bones Instructions
  • Detailed Instructions
    • Step 1: Download and Extract
    • Step 2: Create the Database and a User
      • Using phpMyAdmin
    • Step iii: Fix wp-config.php
    • Step 4: Upload the files
      • In the Root Directory
      • In a Subdirectory
    • Step 5: Run the Install Script
      • Setup configuration file
      • Finishing installation
      • Install script troubleshooting
    • Mutual Installation Problems

WordPress is well-known for its ease of installation. Under virtually circumstances, installing WordPress is a very simple process and takes less than five minutes to complete. Many web hosts now offer tools (e.grand. Fantastico) to automatically install WordPress for you lot. However, if yous wish to install WordPress yourself, the following guide will help.

Things to Know Before Installing WordPress

Before you lot begin the install, at that place are a few things yous need to have and exercise. Refer the article Earlier You lot Install.
If you lot demand multiple WordPress instances, refer Installing Multiple WordPress Instances.

Superlative ↑

Basic Instructions

Hither'southward the quick version of the instructions for those who are already comfortable with performing such installations. More detailed instructions follow.

  1. Download and unzip the WordPress package if yous haven't already.
  2. Create a database for WordPress on your web server, as well every bit a MySQL (or MariaDB) user who has all privileges for accessing and modifying it.
  3. (Optional) Notice and rename wp-config-sample.php to wp-config.php, so edit the file (run into Editing wp-config.php) and add your database information.
    Notation: If you are not comfortable with renaming files, pace 3 is optional and you can skip it as the install program will create the wp-config.php file for y'all.
  4. Upload the WordPress files to the desired location on your web server:
    • If you want to integrate WordPress into the root of your domain (e.chiliad. http://example.com/), motion or upload all contents of the unzipped WordPress directory (excluding the WordPress directory itself) into the root directory of your web server.
    • If y'all want to take your WordPress installation in its own subdirectory on your website (e.g. http://instance.com/blog/), create the web log directory on your server and upload the contents of the unzipped WordPress package to the directory via FTP.
    • Notation: If your FTP client has an option to convert file names to lower case, make sure it'south disabled.
  5. Run the WordPress installation script by accessing the URL in a web browser. This should exist the URL where you uploaded the WordPress files.
    • If y'all installed WordPress in the root directory, you should visit: http://example.com/
    • If you installed WordPress in its own subdirectory called blog, for case, you should visit: http://example.com/blog/

That'due south information technology! WordPress should at present be installed.

Top ↑

Detailed Instructions

Tiptop ↑

Step one: Download and Extract

Download and unzip the WordPress package from https://wordpress.org/download/.

  • If y'all volition be uploading WordPress to a remote web server, download the WordPress package to your computer with a spider web browser and unzip the package.
  • If you will be using FTP, skip to the next step – uploading files is covered later.
  • If y'all take shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your spider web server using wget (or lynx or some other console-based web browser) if you want to avoid FTPing:
    • wget https://wordpress.org/latest.tar.gz
    • Then extract the packet using:
      tar -xzvf latest.tar.gz

      The WordPress package will excerpt into a folder called wordpress in the aforementioned directory that you lot downloaded latest.tar.gz.

Peak ↑

Stride ii: Create the Database and a User

If you lot are using a hosting provider, yous may already have a WordPress database set upward for you, or in that location may be an automated setup solution to do so. Check your hosting provider'southward back up pages or your control panel for clues about whether or non you'll need to create ane manually.

If you make up one's mind that you'll need to create i manually, follow the instructions for Using phpMyAdmin below to create your WordPress username and database. For other tools such every bit Plesk, cPanel and Using the MySQL Client, refer the commodity Creating Database for WordPress.

If you have but ane database and it is already in employ, you can install WordPress in it – just make sure to take a distinctive prefix for your tables to avoid over-writing whatsoever existing database tables.

Acme ↑

Using phpMyAdmin

If your web server has phpMyAdmin installed, y'all may follow these instructions to create your WordPress username and database. If y'all work on your ain calculator, on about Linux distributions you can install PhpMyAdmin automatically.

Note: These instructions are written for phpMyAdmin 4.4; the phpMyAdmin user interface tin vary slightly between versions.

  1. If a database relating to WordPress does not already be in the Database dropdown on the left, create i:
    1. Choose a proper name for your WordPress database: 'wordpress' or 'blog' are practiced, but almost hosting services (specially shared hosting) volition require a name beginning with your username and an underscore, so, fifty-fifty if you work on your own computer, we propose that y'all check your hosting service requirements so that yous can follow them on your ain server and be able to transfer your database without modification. Enter the chosen database name in the Create database field and choose the best collation for your linguistic communication and encoding. In most cases it's amend to choose in the "utf8_" series and, if yous don't find your language, to cull "utf8mb4_general_ci" (Refer this article).
      phpMyAdmin_create_database_4.4
  2. Click the phpMyAdmin icon in the upper left to return to the chief folio, then click the Users tab. If a user relating to WordPress does non already exist in the list of users, create one:

    users.jpg

    1. Click Add user.
    2. Cull a username for WordPress ('wordpress' is practiced) and enter it in the User proper noun field. (Be certain Employ text field: is selected from the dropdown.)
    3. Choose a secure password (ideally containing a combination of upper- and lower-example letters, numbers, and symbols), and enter it in the Countersign field. (Be sure Utilise text field: is selected from the dropdown.) Re-enter the password in the Re-typefield.
    4. Write down the username and countersign you chose.
    5. Get out all options under Global privileges at their defaults.
    6. Click Go.
    7. # Render to the Users screen and click the Edit privileges icon on the user you've just created for WordPress.
    8. # In the Database-specific privileges department, select the database you've just created for WordPress nether the Add privileges to the post-obit database dropdown, and click Go.
    9. # The page volition refresh with privileges for that database. Click Cheque All to select all privileges, and click Go.
    10. # On the resulting page, make note of the host name listed after Server: at the tiptop of the page. (This volition commonly exist localhost.)

phpMyAdmin_server_info_4.4

Top ↑

Step three: Gear up wp-config.php

Yous can either create and edit the wp-config.php file yourself, or you tin skip this step and let WordPress endeavor to do this itself when you run the installation script (step 5). (y'all'll nevertheless need to tell WordPress your database information).

(For more extensive details, and stride by footstep instructions for creating the configuration file and your undercover key for password security, please encounter Editing wp-config.php.)

Return to where you extracted the WordPress package in Footstep ane, rename the file wp-config-sample.php to wp-config.php, and open it in a text editor.

Enter your database information nether the department labeled

                  // ** MySQL settings - Yous can get this info from your spider 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 Pace two.
DB_PASSWORD
The password you lot chose for the WordPress username in Step 2.
DB_HOST
The hostname you determined in Step ii (commonly localhost, but not always; see some possible DB_HOST values). If a port, socket, or piping is necessary, append a colon (:) and then the relevant information to the hostname.
DB_CHARSET
The database grapheme prepare, normally should not exist changed (come across Editing wp-config.php).
DB_COLLATE
The database collation should normally be left blank (meet Editing wp-config.php).

Enter your surreptitious key values under the section labeled

                  * Hallmark Unique Keys and Salts.                

Save the wp-config.php file.

Top ↑

Footstep 4: Upload the files

Now you will need to decide where on your domain you'd similar your WordPress-powered site to announced:

  • In the root directory of your website. (For case, http://example.com/)
  • In a subdirectory of your website. (For instance, http://example.com/blog/)

Notation: The location of your root web directory in the filesystem on your web server volition vary across hosting providers and operating systems. Check with your hosting provider or arrangement ambassador if you lot do not know where this is.

Top ↑

In the Root Directory

  • 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 thewordpress directory (but not the directory itself) into the root directory of your website.

Top ↑

In a Subdirectory

  • If you need to upload your files to your web server, rename the wordpress directory to your desired name, so utilize 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 inside the root directory of your website, and rename the directory to your desired proper name.

Top ↑

Step 5: Run the Install Script

Point a web browser to showtime the installation script.

  • If you placed the WordPress files in the root directory, you lot should visit: http://instance.com/wp-admin/install.php
  • If yous placed the WordPress files in a subdirectory called blog, for example, you lot should visit: http://example.com/blog/wp-admin/install.php

Top ↑

Setup configuration file

If WordPress can't discover the wp-config.php file, it volition tell you and offering to try to create and edit the file itself. (You can also exercise this directly by loading wp-admin/setup-config.php in your web browser.) WordPress will enquire you the database details and write them to a new wp-config.php file. If this works, yous tin can get ahead with the installation; otherwise, become back and create, edit, and upload the wp-config.php file yourself (step three).
install-step3_v47

Acme ↑

Finishing installation

The following screenshots testify how the installation progresses. Detect that in entering the details screen, you lot enter your site championship, your desired user name, your choice of a password (twice), and your e-mail service address. Also displayed is a check-box asking if you would like your web log to announced in search engines similar Google and DuckDuckGo. Leave the box unchecked if you would like your web log to exist visible to anybody, including search engines, and bank check the box if you lot desire to block search engines, merely let normal visitors. Notation all this data can be inverse subsequently in your Administration Screen.
install-step5_v47

If you successfully install the WordPress, login prompt will be displayed.

Top ↑

Install script troubleshooting

  • If you get an error nigh the database when you run the install script:
    • Go back to Step two and Footstep three, and brand certain you entered all the right database information into wp-config.php.
    • Brand sure you lot granted your WordPress user permission to access your WordPress database in Step 3.
    • Make sure the database server is running.

Top ↑

Common Installation Problems

The following are some of the most common installation issues. For more than data and troubleshooting for problems with your WordPress installation, check out FAQ Installation and FAQ Troubleshooting.

I see a directory listing rather than a web page.

The web server needs to be told to view alphabetize.php past default. In Apache, use the DirectoryIndex index.php directive. The simplest option is to create a file named .htaccess in the installed directory and place the directive there. Another option is to add the directive to the web server's configuration files.

I see lots of Headers already sent errors. How do I fix this?

You probably introduced a syntax fault in editing wp-config.php.

  1. Download wp-config.php (if you don't have shell admission).
  2. Open it in a text editor.
  3. Check that the first line contains zip but <?php, and that there is no text earlier it (not even whitespace).
  4. Cheque that the last line contains nix but ?>, and that there is no text later on it (not fifty-fifty whitespace).
  5. If your text editor saves equally Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors exercise not inform the user whether or not it adds a BOM to files; if and so, try using a different text editor.
  6. Save the file, upload information technology again if necessary, and reload the folio in your browser.

My folio comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.

If the <?php ?> tags are existence sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That's why it's called a preprocessor.) Make certain 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 Mistake connecting to database bulletin but I'm sure my configuration is correct.

Try resetting your MySQL countersign manually. If you have access to MySQL via beat, try issuing:

Gear up PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');                

If you practise non take shell admission, you lot should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to apply your host'south control console to reset the password for your database user.

I keep getting an Your PHP installation appears to exist missing the MySQL extension which is required past WordPress message but I'm sure my configuration is correct.

Check to make sure that your configuration of your web-server is correct and that the MySQL plugin is getting loaded correctly by your web-server program. Sometimes this issue requires everything in the path all the way from the spider web-server down to the MySQL installation to exist checked and verified to exist fully operational. Wrong configuration files or settings are often the cause of this issue.

My image/MP3 uploads aren't working.

If you lot apply the Rich Text Editor on a blog that'southward installed in a subdirectory, and elevate a newly uploaded prototype into the editor field, the paradigm may vanish a couple seconds afterwards. This is due to a trouble with TinyMCE (the rich text editor) not getting plenty data during the drag performance to construct the path to the paradigm or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the prototype and select Send to Editor.

wethingtonwhicteplethe78.blogspot.com

Source: https://wordpress.org/support/article/how-to-install-wordpress/

Post a Comment for "How to Upload Word Press to an Existing Domain"