пї FAQ Installation - ประวัติการปรับปรุง http://codex.wordthai.com/index.php?title=FAQ_Installation&action=history ประวัติการปรับปรุงของหน้านี้ในวิกิ th MediaWiki 1.13.2 Thu, 28 Mar 2024 09:02:48 GMT Kazama: สร้างหน้าใหม่: {{Languages| {{en|FAQ Installation}} {{nl|Installatie FAQ}} {{pt-br|FAQ Instalação}} {{ja|FAQ/インストール}} {{zh-cn|安装的常见问题}} }} [[FA... http://codex.wordthai.com/index.php?title=FAQ_Installation&diff=290&oldid=prev <p>สร้างหน้าใหม่: {{Languages| {{en|FAQ Installation}} {{nl|Installatie FAQ}} {{pt-br|FAQ Instalação}} {{ja|FAQ/インストール}} {{zh-cn|安装的常见问题}} }} [[FA...</p> <p><b>หน้าใหม่</b></p><div>{{Languages|<br /> {{en|FAQ Installation}}<br /> {{nl|Installatie FAQ}}<br /> {{pt-br|FAQ Instalação}}<br /> {{ja|FAQ/インストール}}<br /> {{zh-cn|安装的常见问题}}<br /> }}<br /> <br /> [[FAQ|Back to FAQ]]<br /> __TOC__<br /> <br /> <br /> == Installation ==<br /> ===How do I install WordPress?===<br /> See also:<br /> * [[Installing WordPress]]<br /> <br /> ===What is the Famous 5-Minute Install? ===<br /> See also:<br /> * [[Installing_WordPress#Famous_5-Minute_Install|The WordPress Famous 5-Minute Install]]<br /> <br /> ===How do I find a good host for my WordPress blog?===<br /> See also:<br /> * [[Hosting WordPress]]<br /> <br /> ===How do I install using CPanel / CPanel X?===<br /> See also:<br /> * [[cPanel_X]]<br /> <br /> ===How do I configure the 'wp-config' file?===<br /> See also:<br /> * [[Editing_wp-config.php]]<br /> <br /> ===What are the requirements for installing WordPress?===<br /> See also:<br /> * [[Hosting WordPress]] and [http://wordpress.org/about/requirements/ Requirements at WordPress.org]<br /> <br /> ===How do I get WordPress to use my language?===<br /> See also:<br /> * [[WordPress Localization]]<br /> <br /> ===Do I need to create a database?===<br /> <br /> WordPress requires access to a [[Glossary#MySQL|MySQL database]] database to store information. So you need a database. <br /> <br /> You can create a new database if:<br /> #You have not already created one on the server<br /> #Your generous host offers you more than one database, and you wish to have a separate database for the blog you are setting up. <br /> <br /> It is not essential to create a new database for each WordPress installation. <br /> <br /> *If you are using the same database for multiple WordPress installations, take care to edit the [[Editing wp-config.php|wp-config.php]] file ensuring that each installation has a unique database prefix.<br /> *If you are setting up a new database for a new blog, edit [[Editing wp-config.php|wp-config.php]], and be sure to get the database name, and other details correct.<br /> <br /> See also:<br /> * [[Installation#Detailed_Instructions|Installation, Detailed Instructions]]<br /> <br /> ===What is the 403 error I get when trying to see my site?===<br /> '''Symptoms:''' You cannot seem to login after using the right username and password, into your admin account. You get an error message like:<br /> <br /> &lt;pre&gt; You are not authorized to view this page<br /> You might not have permission to view this<br /> directory or page using the credentials you <br /> supplied. If you believe you should be able <br /> to view this directory or page, please try <br /> to contact the Web site by using any e-mail <br /> address or phone number that may be listed <br /> on the personal.fredsmith.com home page. <br /> You can click Search to look for information<br /> on the Internet. HTTP Error 403 - Forbidden''&lt;/pre&gt;<br /> <br /> '''Solution:''' If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load &lt;tt&gt;index.htm&lt;/tt&gt;, &lt;tt&gt;index.html&lt;/tt&gt;, &lt;tt&gt;default.htm&lt;/tt&gt;, &lt;tt&gt;default.html&lt;/tt&gt;, &lt;tt&gt;default.asp&lt;/tt&gt; files.<br /> <br /> Wordpress is done in PHP so the default page is &lt;tt&gt;index.php&lt;/tt&gt;. Now, this is not part of the default configuration so we need to add it. To do this, you need to click on '''Web Options''' in the '''Control Panel'''. Then scroll down to the '''Directory Indexes''' section to add &lt;tt&gt;index.php&lt;/tt&gt; to the '''Directory Indexes'''.<br /> <br /> If necessary, contact your web host for support in this matter.<br /> <br /> ===Can I rename the WordPress folder?===<br /> If you have not already installed WordPress, you can rename the folder with the WordPress files, before, or even after uploading the files.<br /> <br /> If you have already installed WordPress, and you want to rename the folder, login to the weblog as the administrator and change the following settings in [[Administration_Panels#Options_-_Configuration_Settings|Settings]] &gt; [[Administration_Panels#General|General]]:<br /> <br /> * WordPress address (URI):<br /> * Blog address (URI):<br /> <br /> Once you have done this, you can rename the directory or folder with the WordPress files in it. <br /> <br /> See also:<br /> * [[Moving WordPress|Moving Wordpress]]<br /> <br /> ===How can I reset my password?===<br /> See also:<br /> * [[Resetting Your Password]] and http://www.tamba2.org.uk/wordpress/phpmyadmin<br /> <br /> ===Why is my upload directory &quot;C:apachehtdocswordpress&quot;?===<br /> When you specified the upload path, you used backslashes.<br /> <br /> Use forward slashes &quot;/&quot; to specify the path to the directory.<br /> <br /> ===Can I install WordPress on Windows 2000?===<br /> Do '''NOT''' use [[Glossary#MySQL|MySQL database]] version 4.1.7 if you are trying to get WordPress installed using a Windows platform. Read this post originally made to the forums:<br /> &lt;blockquote&gt;<br /> &quot;To all those having problems installing Wordpress on your own Windows 2000 (and other Win OS versions) workstation - and maybe some host servers, too: Do not use MySQL 4.1.7 - it is the problem if you get &quot;Error establishing a database connection!&quot;. It does not seem compatible with the other components. Use MYSQL 4.0.22 instead.&lt;br /&gt;&lt;br /&gt;<br /> Thanks to the Reply by ADAMANT in response to the POST of Nov 6, 2004 02:21:29 by ANTOINE, the Wordpress installation really did become only 5 minutes, after two days of frustration:<br /> &lt;br /&gt;&lt;br /&gt;<br /> I started with Windows 2000, PHP 4.3.9, Apache 1.3.33 and MySQL 4.1.7. I spent two days checking my wp-config.php literally 100 times; making changes; troubleshooting my database, using every known name for my host (localhost, 127.0.0.1, &lt;IP address&gt;, computer name, etc...) to no avail. I kept getting:&lt;br /&gt;&lt;br /&gt;<br /> &quot;Error establishing a database connection!&quot; ...<br /> &lt;br /&gt;&lt;br /&gt;<br /> I knew it wasn't my config. So thanks to ADAMANT's suggestion, I uninstalled MySQL 4.1.7 and downloaded and installed MySQL 4.0.22 from mysql.org. After installing and configuring the new (old) MySQL, which took approximately 7 minutes (very easy), I ran the install.php once again and YES!! it actually took less than 5 minutes for the Wordpress install.&lt;br /&gt;&lt;br /&gt;<br /> NOTE: the Apache web site says NOT to use Apache 2 in production. So, after all my wasted time with the latest MySQL, I suggest the following to those who can control their environment:&lt;br /&gt;&lt;br /&gt;<br /> PHP 4.3.9, Apache 1.3.33 and MySQL 4.0.22. On Windows at least, they all work well together.&quot;<br /> &lt;br /&gt;&lt;br /&gt;Steven&lt;/blockquote&gt;<br /> <br /> '''UPDATE''': MySQL 4.1.7 uses a new password encryption system that is incompatible with prior methods. If you want to get WordPress working with a 4.1.7 database, you need to make sure your user password is set as an old-style password (password-old instead of password, if you're using mysqladmin). -- Nabil<br /> <br /> '''ADDITIONAL''': As stated above by Nabil, you can force Post 4.1.7 MySQL systems to use the old password lengths. From the MySQL command line interface, as a user that can manipulate the mysql tables (most likely root):<br /> <br /> USE mysql;<br /> SET PASSWORD FOR 'wordpressuser'@'localhost' = OLD_PASSWORD('somePassword444');<br /> FLUSH PRIVILEGES;<br /> <br /> As the normal password methods will result in the new style password function being used. Another hack would be to run the mysql service with --old-passwords, but I've seen the above password method work under 4.1.19 and 4.1.20 on an XP install - Grey<br /> <br /> '''Note:''' The above are actual user comments, and may be subjective in their content. It is hoped that it will be of help to some users who face the specific problems that are addressed by this question.<br /> <br /> ==Advanced Installation==<br /> <br /> ===How do I install WordPress with the files in different directories?===<br /> This also answers the questions:<br /> <br /> *How can I have my blog in one folder but my index at root?<br /> *How can I have people see my blog at www.example.com but keep all the files in &lt;nowiki&gt;www.example.com/wordpress&lt;/nowiki&gt;?<br /> *How do I install WordPress in a different directory than where the index.php resides?<br /> <br /> See also:<br /> * [[Giving_WordPress_Its_Own_Directory|Giving WordPress Its Own Directory]]<br /> * [[Moving WordPress]]<br /> <br /> ===How can I hide my blog from people?===<br /> Whether you are testing a new version of WordPress, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out.<br /> <br /> '''Apache'''<br /> <br /> There is no guaranteed way to do this. You can use the '''.htaccess''' file (which also contains your permalink code) to check for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they have access to an allowed IP address, they can get to your page. One tutorial for this is located at [http://www.clockwatchers.com/htaccess_intro.html Clockwatchers.com]<br /> <br /> An '''.htaccess''' file can also be used to prevent others from &quot;hot-linking&quot; to your images (bandwidth theft) or to set up a password protected blog.<br /> <br /> '''Apache Basic Authentication'''<br /> <br /> To require a password to access your site using '''.htaccess''' and '''.htpasswd''': [http://www.clockwatchers.com/htaccess_password.html Clockwatchers.com .htpasswd].<br /> <br /> Tools that help you create the files necessary to password protect your site: [http://www.clockwatchers.com/htaccess_tool.html Clockwatchers.com .htaccess And .htpasswd Tools]<br /> <br /> ''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.<br /> <br /> '''Windows IIS Basic Authentication'''<br /> <br /> To require a password if your site is hosted on IIS, you can deselect Allow Anonymous Access and select Basic Authentication. You'll also need to have a username with a password.<br /> <br /> ''Note:'' When your site is accessed the password is encoded weakly using Base64 and can be easily intercepted and decoded.<br /> <br /> See also:<br /> * [http://support.microsoft.com/default.aspx?scid=kb;en-us;310344 Microsoft Support - How To Configure IIS 5.0 Web Site Authentication]<br /> * [http://support.microsoft.com/kb/299970/EN-US/ Microsoft Support - How To Use NTFS Security to Protect a Web Page]<br /> * [http://support.microsoft.com/default.aspx?scid=kb;en-us;308160 Microsoft Support - HOW TO: Configure Internet Information Services Web Authentication]<br /> <br /> '''Search Engines: Spiders and Bots'''<br /> <br /> Search Engines will index your site and cache your content. If you do not want this to happen, use a file called '''robots.txt'''. More details can be found at [http://www.searchengineworld.com/robots/robots_tutorial.htm SearchEngineWorld.com]<br /> <br /> ===How can I solve login problems?===<br /> See also:<br /> * [[Login Trouble]]<br /> * [http://faq.wordpress.net/view.php?p=68 How I solve login problems after installation with version 1.2 ?]<br /> <br /> ===How can I get WordPress working when I'm behind a reverse proxy?===<br /> In some setups, it's necessary to use something other than the HTTP_HOST header to generate URLs. Reverse proxies take the original request and send it to one of a group of servers. To do so, it overwrites the HTTP_HOST with the internal server's domain. When that domain is not publicly accessible, at best your images might not load correctly, at worst, you'll be stuck in a redirect loop. To fix this, figure out which header has the right domain name and add a line to your wp-config.php file that overwrites HTTP_HOST with the correct hostname.<br /> <br /> If you need to use SERVER_NAME, add this line to wp-config.php:<br /> &lt;pre&gt;$_SERVER['HTTP_HOST'] = $_SERVER['SERVER_NAME'];&lt;/pre&gt;<br /> <br /> If you need to use HTTP_X_FORWARDED_HOST, add this line to wp-config.php:<br /> &lt;pre&gt;$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];&lt;/pre&gt;<br /> <br /> See: [http://old.nabble.com/When-HTTP_HOST-does-not-point-to-the-blog-td18097138.html this email thread] for more on this fix.<br /> <br /> ==FTP==<br /> ===How do I FTP?===<br /> See also:<br /> * [[Using FileZilla]] and [[FTP Clients]]<br /> <br /> ===How do I use Filezilla?===<br /> See also:<br /> * [[Using FileZilla]]<br /> <br /> ===How do I upload the files and folders?===<br /> See also:<br /> * [[Uploading WordPress to a remote host]]<br /> <br /> ===How do I CHMOD files?===<br /> See also:<br /> * [[Changing File Permissions]]<br /> <br /> ==MySQL==<br /> ===Do I really need MySQL?===<br /> You certainly need the [[Glossary#MySQL|MySQL]] database server to power your WordPress blog. In fact, WordPress only supports the [[Glossary#MySQL|MySQL]] database server. Listed are the PHP and MySQL requirements:<br /> <br /> {{Server requirements}}<br /> <br /> ===Can I use a database other than MySQL?===<br /> Other databases are not supported at the moment.<br /> <br /> There are several other excellent database storage engines, such as PostgreSQL and SQLite that WordPress is interested in supporting in the future. Supporting multiple databases is trickier than it sounds and is not under active development, although there are plenty of architectural discussions about the best approach to take. Approaches for increasing the number of supported databases are discussed at [[Using Alternative Databases]]. There is a PostgreSQL port of WordPress available called [http://wordpress-pg.sourceforge.net/ WordPress-Pg].<br /> <br /> ===Why does WordPress use MySQL?===<br /> [[Glossary#MySQL|MySQL]] is extremely fast. It is also the most widely available database server in the world. Open-source and free, [[Glossary#MySQL|MySQL]] is supported by thousands of low-cost [[Glossary#Linux|Linux]] (and Windows!) hosts, which means a very low barrier to entry for anyone wanting to start a WordPress (or database-driven) website. [http://www.mysql.com/documentation/ MySQL's documentation] is useful, cogent and thorough. (Note: it may be intimidating if you are new to all this.) Add to all that the fact that users are able to directly manipulate [[Glossary#MySQL|MySQL]] with [[phpMyAdmin]], developed expressly for that purpose, and it is obvious that [[Glossary#MySQL|MySQL]] is the best choice. Of course, WordPress insists on the best.<br /> <br /> == PHP ==<br /> ===What is phpMyAdmin?===<br /> phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. <br /> <br /> See also:<br /> * [[phpMyAdmin]]<br /> <br /> ===Do I need to know PHP to use WordPress ?===<br /> No. The only time you would modify your WordPress blog with [[Glossary#PHP|PHP]] would be when integrating some of the [[Plugins|plugins]]. In most cases clear instructions are given within a text file that accompanies the [[Plugins|plugin]]. Other than that, you would not be changing any of the PHP files. <br /> <br /> See also:<br /> * [http://faq.wordpress.net/view.php?p=31 Do I need to know PHP to use WordPress?]<br /> <br /> ===Will Wordpress run in PHP Safe Mode?===<br /> Most definitely! There are no known issues with any version of WordPress when [[Glossary#PHP|PHP]] is running in Safe Mode.<br /> <br /> ===Do I really need PHP?===<br /> You certainly need [[Glossary#PHP|PHP]] (version 4.1 or newer) to power your WordPress blog. [[Glossary#PHP|PHP]] is the scripting language that drives all of WordPress, and without [[Glossary#PHP|PHP]], your server will not be able to interpret the pages that create your weblog. <br /> <br /> ===How do I find out which version of PHP I have?===<br /> To get information about your server, you can use the [http://php.net/phpinfo ''phpinfo()''] function. This will also give you information about your [[Glossary#Apache|Apache]] and [[Glossary#PHP|PHP]] version and [[Glossary#mod_rewrite| mod_rewrite]].<br /> <br /> See also: <br /> * [[Finding Server Info]]<br /> <br /> == Importing ==<br /> ===How can I import posts from my current weblog which uses a different blogging tool?===<br /> See also:<br /> * [[Importing Content]]<br /> <br /> ===How do I import from b2?===<br /> See also:<br /> * [[Importing_Content#b2|Importing from b2]]<br /> <br /> ===How do I import from Movable Type MT?===<br /> See also:<br /> * [[Importing from Movable Type to WordPress]]<br /> <br /> ===How do I import from Blogger?===<br /> See also:<br /> * [[Importing_Content#Blogger|Importing from Blogger]]<br /> <br /> ===How do I import from Text Pattern?===<br /> See also:<br /> * [[Importing_Content#Textpattern|Importing from Text Pattern]]<br /> <br /> ===How do I import from a generic RSS Feed?===<br /> See also:<br /> * [[Importing_Content#Importing_from_an_RSS_feed|Importing from an RSS feed]]<br /> <br /> ===How do I import from other blogging software?===<br /> See also:<br /> * [[Importing Content]]<br /> <br /> ==Upgrading==<br /> <br /> ===What version of WordPress do I have?===<br /> <br /> There are several methods to find out what version of WordPress you are using:<br /> <br /> * In your &lt;tt&gt;wp-includes&lt;/tt&gt; folder of your WordPress installation, open the &lt;tt&gt;version.php&lt;/tt&gt; file with any [[Glossary#Text editor|text editor]]. It will tell you the version number of your installation.<br /> * In the WordPress [[Administration Panels]], on any panel look at the bottom of the screen and the version number will be visible.<br /> * Some Themes include the version number in the footer template. Or you can add it yourself:<br /> <br /> &lt;pre&gt;&lt;?php bloginfo('version'); ?&gt;&lt;/pre&gt;<br /> <br /> ===What should I do when I want to upgrade WordPress to the latest version?===<br /> <br /> See also:<br /> * [[Upgrading WordPress]]<br /> <br /> ===How do I back up my database?===<br /> See also:<br /> * [[Backing Up Your Database]]<br /> <br /> ===How do I restore my database?===<br /> See also:<br /> * [[Restoring Your Database From Backup]]<br /> <br /> ===After running upgrade.php get the message &quot;It doesn't look like you've installed WP yet. Try running install.php.&quot;===<br /> After running the [[Upgrading WordPress|WordPress Upgrade]], and clicking on the &quot;Have fun . .&quot; link, it says, &quot;It doesn't look like you've installed WP yet. Try running install.php.&quot; The problem may be that there is not a user with [[Roles_and_Capabilities#Administrator|administrative capabilities]]. <br /> <br /> To fix that, use [[phpMyAdmin]] to manually give a user those capabilities: <br /> # First find the ''ID'' of the user you want to make administrator by looking in the [[Database_Description#Table:_wp_user|wp_user table]]. <br /> #In the [[Database_Description#Table:_wp_usermeta|wp_usermeta table]], for that ''ID'', find the related ''user_id'', and where the ''meta_key'' is ''wp_capabilites'', change the ''meta_value'' to '''a:1:{s:13:&quot;administrator&quot;;b:1;}'''. <br /> #In that same table, for that ''user_id'', where the ''meta_key'' is ''wp_user_level'', change the ''meta_value'' to a '''10'''. <br /> <br /> Please note that the prefix on those tables and those two meta_keys utilize your database prefix. So if your database prefix is '''mywp_''' then the two tables will be '''mywp_user''' and '''mywp_usermeta''' and the the two meta_keys will be '''mywp_capabilities''' and '''mywp_user_level'''.<br /> <br /> See also:<br /> *[http://wordpress.org/support/topic/62694?replies=20 WordPress Support Forum Thread from March 2006]<br /> <br /> ===How do you force a database upgrade?===<br /> <br /> Under certain situations, it may be necessary to cause a database to pass through the upgrade process again. To do that, you need to lower the '''db_version''' value in the wp_options table that corresponds to the version you want to upgrade '''from'''. For instance, if you want to force the datebase upgrade that happens from 2.0.11 to 2.3 you would change your '''db_version''' to '''3441'''. To force an upgrade from 2.5 to 2.8, change that value to '''7558'''.<br /> <br /> &lt;pre&gt;<br /> '''db_version''' for WordPress releases:<br /> 3.2.1 = 18226<br /> 3.2 = 18226<br /> 3.1.4 = 17516<br /> 3.1.3 = 17516<br /> 3.1.2 = 17516<br /> 3.1.1 = 17516<br /> 3.1 = 17056<br /> 3.0.5 = 15477<br /> 3.0.4 = 15477<br /> 3.0.3 = 15477<br /> 3.0.2 = 15477<br /> 3.0.1 = 15477<br /> 3.0 = 15260<br /> 2.9.2 = 12329<br /> 2.9.1 = 12329<br /> 2.9 = 12329<br /> 2.8.6 = 11548<br /> 2.8.5 = 11548<br /> 2.8.4 = 11548<br /> 2.8.3 = 11548<br /> 2.8.2 = 11548<br /> 2.8.1 = 11548<br /> 2.8 = 11548<br /> 2.7.1 = 9872<br /> 2.7 = 9872<br /> 2.6.5 = 8204<br /> 2.6.3 = 8204<br /> 2.6.2 = 8204<br /> 2.6.1 = 8204<br /> 2.6 = 8201<br /> 2.5.1 = 7796<br /> 2.5 = 7558<br /> 2.3.3 = 6124<br /> 2.3.2 = 6124<br /> 2.3.1 = 6124<br /> 2.3 = 6124<br /> 2.2.3 = 5183<br /> 2.2.x = 5183<br /> 2.2 = 5183<br /> 2.1.3 = 4773<br /> 2.1.x = 4773<br /> 2.1 = 4772<br /> 2.0.11 = 3441<br /> 2.0.x = 3441<br /> 2.0 = 3441<br /> 1.5.x = 2541<br /> 1.x = 2540<br /> &lt;/pre&gt;<br /> <br /> Note: Use [[phpMyAdmin]] to change that value, or use ''wp-admin/options.php''.<br /> <br /> Once the '''db_version''' is changed, when logging into your blog a link to upgrade the database will be offered.<br /> <br /> ===Do I need to deactivate plugins before using the core update option?===<br /> In the past one of the upgrade procedures called for deactivating all plugins, but with the core upgrade process released with [[Version 2.7]] you do not need to deactive the plugins. Here's Ryan Boren's explanation as to why: <br /> <br /> ''During the upgrade, your blog is put in maintenance mode and loading is halted at the beginning of wp-settings.php. Nothing really runs, including plugins. The only thing allowed to run is the DB upgrade, which takes care of making sure plugins are not loaded. You don't need to deactivate plugins unless you like turning them back on one-by-one after upgrading to isolate any breakage they might cause.''<br /> <br /> ===The core upgrade is not working, what can I do?===<br /> If the core upgrade, for example upgrading from 2.7 to 2.71, is not working, one of these solutions might help:<br /> # If the upgrade seems in an endless loop and you are using Memcache object cache backend, upgrade Memcache (see [http://trac.wordpress.org/ticket/8407 Trac Ticket 8407]).<br /> # If upgrading fails due to a restrictive suexec (e.g. some Italian hosts) then try the [[Editing_wp-config.php#Override_of_default_file_permissions|FS_CHMOD_DIR and FS_CHMOD_FILE in wp-config.php]] see [http://trac.wordpress.org/ticket/8478 Trac Ticket 8478]).<br /> <br /> <br /> [[FAQ|Back to FAQ]]<br /> <br /> [[Category:Getting Started]]<br /> [[Category:Installation]]<br /> [[Category:Troubleshooting]]<br /> [[Category:WordPress Help]]</div> Thu, 13 Oct 2011 06:11:49 GMT Kazama http://codex.wordthai.com/%E0%B8%9E%E0%B8%B9%E0%B8%94%E0%B8%84%E0%B8%B8%E0%B8%A2:FAQ_Installation