Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
http://codex.wordpress.org/Installing_WordPress
Go
Home
Showcase
Extend
About
Docs
Blog
Forums
Hosting
Download
Codex
Installing WordPress
Languages: Espaol English Portugus do Brasil Slovenina () () (Add your language)
WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than ve minutes to complete. Many web hosts now offer tools (e.g. Fantastico) to automatically install WordPress for you. However, if you wish to install WordPress yourself, the following guide will help. Now with Automatic Upgrade, upgrading is even easier. The following installation guide will help you, whether you go for the Famous 5 Minute
Contents
[hide] 1 Things to Know Before Installing WordPress 1.1 Things You Need to Do to Install WordPress 2 Famous 5-Minute Install 3 Detailed Instructions 3.1 Step 1: Download and Extract
Design and Layout Advanced Topics Troubleshooting Developer Docs About WordPress
Codex Resources
Community portal Current events Recent changes Random page Help
3.2 Step 2: Create the Database and a User 3.2.1 Using cPanel 3.2.2 Using Lunarpages.com's custom cPanel (LPCP) 3.2.3 Using phpMyAdmin 3.2.4 Using the MySQL Client 3.2.5 Using Plesk 3.2.6 Using DirectAdmin 3.3 Step 3: Set up wp-cong.php 3.4 Step 4: Upload the les
3.4.1 In the Root Directory 3.4.2 In a Subdirectory 3.5 Step 5: Run the Install Script 3.5.1 Setup conguration le 3.5.2 Finishing installation 3.5.3 Install Script Troubleshooting 4 Common Installation Problems 5 Automated Installation 5.1 Fantastico 5.2 Installatron 5.3 Softaculous 6 Installation Instructions in Other Languages 7 Installing Multiple Blogs
8 Installing WordPress on your own Computer 8.1 Local Installation Instructions 8.2 Software Appliance - Readyto-Use 8.3 Easy 5 Minute WordPress Installation on Windows
8.3.1 WAMP
If you are not comfortable with renaming les, Steps 3 and 4 are optional and you can skip them as the install program will create wp-cong.php le.
1 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
1. Download and unzip the WordPress package if you haven't already. 2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it. 3. Rename the wp-config-sample.php le to wp-config.php. 4. Open wp-config.php in a text editor and ll in your database details as explained in Editing wp-cong.php to generate and use your secret key password. 5. Upload the WordPress les in the desired location on your web server: If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server. If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), create the blog directory on your server and upload WordPress to the directory via FTP.
6. Run the WordPress installation script by accessing wp-admin/install.php in a web browser. If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com /blog/wp-admin/install.php
Detailed Instructions
Step 1: Download and Extract
Download and unzip the WordPress package from http://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 to the next step - uploading les is covered later. If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing: wget http://wordpress.org/latest.tar.gz Then unzip the package using: tar -xzvf latest.tar.gz
The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
If you do not have shell access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your web server using ZipDeploy.
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. 2. Click MySQL Database Wizard icon under the Databases section. 3. In Step 1. Create a Database enter the database name and click Next Step.
2 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
4. In Step 2. Create Database Users enter the database user name and the password. Make sure to use a strong password. Click Create User. 5. In Step 3. Add User to Database click the All Privileges checkbox and click Next Step. 6. In Step 4. Complete the task note the database name and user. Write down the values of hostname, username, databasename, and the password you chose. (Note that hostname will usually be localhost.)
Using phpMyAdmin
If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database.
Note: These instructions are written for phpMyAdmin 2.6.0; 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), enter it in the Create new database eld, and click Create. 2. Click the Home icon in the upper left to return to the main page, then click Privileges. If a user relating to WordPress does not already exist in the list of users, create one: 1. Click Add a new User. 2. Chose a username for WordPress ('wordpress' is good) and enter it in the User name eld. (Be sure Use text eld: is selected from the dropdown.) 3. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password eld. (Be sure Use text eld: is selected from the dropdown.) Re-enter the password in the Re-type eld. 4. Write down the username and password you chose. 5. Leave all options under Global privileges at their defaults. 6. Click Go. 3. Return to the Privileges screen and click the Check privileges icon on the user you've just created for WordPress. In the Database-specic privileges section, select the database you've just created for WordPress under the Add privileges to the following database dropdown. The page will refresh with privileges for that database. Click Check All to select all privileges, and click Go. 4. On the resulting page, make note of the host name listed after Server: at the top of the page. (This will usually be localhost.)
$ 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> CREATE DATABASE databasename; Query OK, 1 row affected (0.00 sec)
3 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" -> IDENTIFIED BY "password"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01 sec) mysql> EXIT Bye $
The example shows: that root is also the adminusername. It is a safer practice to choose a so-called "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 non-root account to administer your database.
password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers,
and symbols. One good way of avoiding the use of a word found in a dictionary, uses the rst letter of each word in a phrase that you nd 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 wp-cong.php le, there is no need to put them somewhere else, too.
Using Plesk
See: Plesk 7 at tamba2.org
Using DirectAdmin
a. Regular "User" of a single-site webhosting account logs in normally. Then click "MySQL Management." (If this is not readily visible, perhaps your host needs to modify your "package" to activate MySQL.) Then follow part "c" below. b. "Reseller" accounts or "Admin" accounts may need to click "User Level." They also must rst log-in as "Reseller" if the relevant domain is a Reseller's primary domain... or log-in as a "User" if the domain is not a Reseller's primary domain. If a Reseller's primary domain, then when logged-in as Reseller, you simply click "User Level." However if the relevant domain is not the Reseller's primary domain, then you must log-in as the relevant User. Then click "MySQL Management." (If not readily visible, perhaps you need to return to the Reseller or Admin level, and modify the "Manage user package" or "Manage Reseller package" to enable MySQL.) c. In "MySQL Management," click on the small words: "Create new database." Here you are asked to submit two suffixes for the database and its username. For maximum security, use two different sets of 4-6 random characters. Then the password eld has a "Random" button that generates an 8-character password. You may also add more characters to the password for maximum security. "Create." The next screen will summarize the database, username, password and hostname. Be sure to copy and paste these into a text le for future reference.
4 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
// ** 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 wp-cong.php).
DB_COLLATE
The database collation should normally be left blank (see Editing wp-cong.php). Enter your secret key values under the section labeled
For information on enabling SSL in WordPress 2.6, see SSL and Cookies in WordPress 2.6.
Note: The location of your root web directory in the lesystem 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.
In a Subdirectory
If you need to upload your les 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 web site. If your les 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 web site, and rename the directory to your desired name.
5 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
this directly by loading wp-admin/setup-config.php in your web browser.) WordPress will ask you the database details and write them to a new wp-config.php le. If this works, you can go ahead with the installation; otherwise, go back and create, edit, and upload the wp-config.php le yourself (step 3).
Finishing installation
The following screenshots show how the installation progresses. Notice in Entering the details screen, you enter your site title, your desired user name, your choice of a password (twice) and your e-mail address. Also displayed is a check-box 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 Panels. Version 3.0
6 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
All done!
1. Download wp-config.php (if you don't have shell access). 2. Open it in a text editor. 3. Check that the rst 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 Unicode-enabled text editors do not inform the user whether it adds a BOM to les; if so, try using a different text editor. 6. Save the le, 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.
If the <?php ?> tags are being 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 sure your web server meets the requirements to run WordPress, that PHP is installed and congured 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 conguration is correct.
Try resetting your MySQL password manually. If you have access to MySQL 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. My image/MP3 uploads aren't working. 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 eld, 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 le correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select "Send to Editor."
Automated Installation
Although WordPress is very easy to install, you can use one of the one-click autoinstallers typically available from hosting companies. Three of those autoinstallers, Fantastico, Installatron, and Softaculous are described here.
7 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
Fantastico
1. Login 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 WordPress is there. Click on it. 3. Click on the 'New Installation' Link in the WordPress Overview 4. Fill in the various details and Submit. 5. That's it you are done!
Installatron
Installatron is a popular automation company that provides multiple methods to automatically install and upgrade WordPress. Most commonly, Installatron is available through web hosting provider's control panel software. Installatron also provides a tool on its website that enables WordPress to be installed to any website using the website's FTP information. To install WordPress through your web hosting provider's control panel: 1. Login to your web host's control panel, navigate to "Installatron", click "WordPress", and choose the "Install this application" option. 2. After customizing the WordPress install by editing any of the prompts, click the "Install" button. 3. That's it! WordPress will be installed within a few seconds to your website. To install using your FTP account information on Installatron.com: 1. Navigate to WordPress @ Installatron and choose the "Install this application" option. 2. Enter your hosting account's FTP and MySQL database information. For increased security, create a separate FTP account and MySQL database for your WordPress installation. Once this information is entered, click "Install". 3. That's it! You will be redirect to a progress page where you can watch as WordPress is installed within a few seconds to your website. Installatron Home Page
Softaculous
1. Login 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!
8 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
9 di 10
05/02/12 22.00
http://codex.wordpress.org/Installing_WordPress
2. Congure the Database: After accepting the terms, if you need to install MySQL, you will be asked to create a password for the root account database account. Keep this password safe. WordPress will ask for this information later. 3. Choose the site: Choose a site to install WordPress to. You may install to an existing Web site in IIS or create a new site. Use the default setting if you do not have advanced conguration needs. 4. WordPress Setup: WordPress will need answers to a few specic questions such as the username (in the case of a new MySQL install is root) and password for your MySQL database to complete the install.
Step 5. Completion
1. Once you enter the WordPress setup information, Web PI will nish the installation. 2. Click, Launch in Browser and WordPress will launch. Alternatively, the BitNami WordPress installer is a free, self-contained native installer for WordPress that includes Apache, MySQL and PHP so it works out of the box.
WAMP
If you don't have IIS on your computer or don't want to use it, you could use a WAMP installation. WAMP Server, or WAMP Server at SourceForge, or BitNami WAMPStack can be downloaded freely and set up all the bits you need on your computer to run a web site. 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 le, 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). Categories: Installation | Getting Started | Troubleshooting | UI Link
Privacy | License / GPLv2 See also: WordPress.com | WordPress.TV | WordCamp | WP Jobs | Matt | Blog RSS
Mi piace
359 mila
12k
Follow @WordPress
10 di 10
05/02/12 22.00